diff --git a/apps/client/public/locales/de-DE/translation.json b/apps/client/public/locales/de-DE/translation.json index a023f6326..3b72cb8dd 100644 --- a/apps/client/public/locales/de-DE/translation.json +++ b/apps/client/public/locales/de-DE/translation.json @@ -1087,6 +1087,8 @@ "Create subpage of {{name}}": "Unterseite von {{name}} erstellen", "Apply": "Apply", "Cells that aren't already a page reference will be cleared.": "Cells that aren't already a page reference will be cleared.", + "Cells that aren't a valid URL will be cleared.": "Cells that aren't a valid URL will be cleared.", + "Cells that aren't a valid email address will be cleared.": "Cells that aren't a valid email address will be cleared.", "Cells that can't be parsed as a date will be cleared.": "Cells that can't be parsed as a date will be cleared.", "Cells that can't be parsed as a number will be cleared.": "Cells that can't be parsed as a number will be cleared.", "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).": "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).", diff --git a/apps/client/public/locales/en-US/translation.json b/apps/client/public/locales/en-US/translation.json index 04946e5c2..500548abb 100644 --- a/apps/client/public/locales/en-US/translation.json +++ b/apps/client/public/locales/en-US/translation.json @@ -1087,6 +1087,8 @@ "Create subpage of {{name}}": "Create subpage of {{name}}", "Apply": "Apply", "Cells that aren't already a page reference will be cleared.": "Cells that aren't already a page reference will be cleared.", + "Cells that aren't a valid URL will be cleared.": "Cells that aren't a valid URL will be cleared.", + "Cells that aren't a valid email address will be cleared.": "Cells that aren't a valid email address will be cleared.", "Cells that can't be parsed as a date will be cleared.": "Cells that can't be parsed as a date will be cleared.", "Cells that can't be parsed as a number will be cleared.": "Cells that can't be parsed as a number will be cleared.", "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).": "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).", diff --git a/apps/client/public/locales/es-ES/translation.json b/apps/client/public/locales/es-ES/translation.json index 88ce01b86..4deec9629 100644 --- a/apps/client/public/locales/es-ES/translation.json +++ b/apps/client/public/locales/es-ES/translation.json @@ -1087,6 +1087,8 @@ "Create subpage of {{name}}": "Crear subpágina de {{name}}", "Apply": "Apply", "Cells that aren't already a page reference will be cleared.": "Cells that aren't already a page reference will be cleared.", + "Cells that aren't a valid URL will be cleared.": "Cells that aren't a valid URL will be cleared.", + "Cells that aren't a valid email address will be cleared.": "Cells that aren't a valid email address will be cleared.", "Cells that can't be parsed as a date will be cleared.": "Cells that can't be parsed as a date will be cleared.", "Cells that can't be parsed as a number will be cleared.": "Cells that can't be parsed as a number will be cleared.", "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).": "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).", diff --git a/apps/client/public/locales/fr-FR/translation.json b/apps/client/public/locales/fr-FR/translation.json index d2a0e7c67..6b543e0e4 100644 --- a/apps/client/public/locales/fr-FR/translation.json +++ b/apps/client/public/locales/fr-FR/translation.json @@ -1087,6 +1087,8 @@ "Create subpage of {{name}}": "Créer une sous-page de {{name}}", "Apply": "Apply", "Cells that aren't already a page reference will be cleared.": "Cells that aren't already a page reference will be cleared.", + "Cells that aren't a valid URL will be cleared.": "Cells that aren't a valid URL will be cleared.", + "Cells that aren't a valid email address will be cleared.": "Cells that aren't a valid email address will be cleared.", "Cells that can't be parsed as a date will be cleared.": "Cells that can't be parsed as a date will be cleared.", "Cells that can't be parsed as a number will be cleared.": "Cells that can't be parsed as a number will be cleared.", "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).": "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).", diff --git a/apps/client/public/locales/it-IT/translation.json b/apps/client/public/locales/it-IT/translation.json index af331eb9b..9407bf1c1 100644 --- a/apps/client/public/locales/it-IT/translation.json +++ b/apps/client/public/locales/it-IT/translation.json @@ -1087,6 +1087,8 @@ "Create subpage of {{name}}": "Crea sottopagina di {{name}}", "Apply": "Apply", "Cells that aren't already a page reference will be cleared.": "Cells that aren't already a page reference will be cleared.", + "Cells that aren't a valid URL will be cleared.": "Cells that aren't a valid URL will be cleared.", + "Cells that aren't a valid email address will be cleared.": "Cells that aren't a valid email address will be cleared.", "Cells that can't be parsed as a date will be cleared.": "Cells that can't be parsed as a date will be cleared.", "Cells that can't be parsed as a number will be cleared.": "Cells that can't be parsed as a number will be cleared.", "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).": "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).", diff --git a/apps/client/public/locales/ja-JP/translation.json b/apps/client/public/locales/ja-JP/translation.json index 226d52f06..0e7cccbd3 100644 --- a/apps/client/public/locales/ja-JP/translation.json +++ b/apps/client/public/locales/ja-JP/translation.json @@ -1087,6 +1087,8 @@ "Create subpage of {{name}}": "{{name}} のサブページを作成", "Apply": "Apply", "Cells that aren't already a page reference will be cleared.": "Cells that aren't already a page reference will be cleared.", + "Cells that aren't a valid URL will be cleared.": "Cells that aren't a valid URL will be cleared.", + "Cells that aren't a valid email address will be cleared.": "Cells that aren't a valid email address will be cleared.", "Cells that can't be parsed as a date will be cleared.": "Cells that can't be parsed as a date will be cleared.", "Cells that can't be parsed as a number will be cleared.": "Cells that can't be parsed as a number will be cleared.", "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).": "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).", diff --git a/apps/client/public/locales/ko-KR/translation.json b/apps/client/public/locales/ko-KR/translation.json index 93d218ab9..ac0000e34 100644 --- a/apps/client/public/locales/ko-KR/translation.json +++ b/apps/client/public/locales/ko-KR/translation.json @@ -1087,6 +1087,8 @@ "Create subpage of {{name}}": "{{name}}의 하위 페이지 만들기", "Apply": "Apply", "Cells that aren't already a page reference will be cleared.": "Cells that aren't already a page reference will be cleared.", + "Cells that aren't a valid URL will be cleared.": "Cells that aren't a valid URL will be cleared.", + "Cells that aren't a valid email address will be cleared.": "Cells that aren't a valid email address will be cleared.", "Cells that can't be parsed as a date will be cleared.": "Cells that can't be parsed as a date will be cleared.", "Cells that can't be parsed as a number will be cleared.": "Cells that can't be parsed as a number will be cleared.", "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).": "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).", diff --git a/apps/client/public/locales/nl-NL/translation.json b/apps/client/public/locales/nl-NL/translation.json index a7a16cc1c..810c95a81 100644 --- a/apps/client/public/locales/nl-NL/translation.json +++ b/apps/client/public/locales/nl-NL/translation.json @@ -1087,6 +1087,8 @@ "Create subpage of {{name}}": "Subpagina van {{name}} maken", "Apply": "Apply", "Cells that aren't already a page reference will be cleared.": "Cells that aren't already a page reference will be cleared.", + "Cells that aren't a valid URL will be cleared.": "Cells that aren't a valid URL will be cleared.", + "Cells that aren't a valid email address will be cleared.": "Cells that aren't a valid email address will be cleared.", "Cells that can't be parsed as a date will be cleared.": "Cells that can't be parsed as a date will be cleared.", "Cells that can't be parsed as a number will be cleared.": "Cells that can't be parsed as a number will be cleared.", "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).": "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).", diff --git a/apps/client/public/locales/pt-BR/translation.json b/apps/client/public/locales/pt-BR/translation.json index 9841a1771..79137d237 100644 --- a/apps/client/public/locales/pt-BR/translation.json +++ b/apps/client/public/locales/pt-BR/translation.json @@ -1087,6 +1087,8 @@ "Create subpage of {{name}}": "Criar subpágina de {{name}}", "Apply": "Apply", "Cells that aren't already a page reference will be cleared.": "Cells that aren't already a page reference will be cleared.", + "Cells that aren't a valid URL will be cleared.": "Cells that aren't a valid URL will be cleared.", + "Cells that aren't a valid email address will be cleared.": "Cells that aren't a valid email address will be cleared.", "Cells that can't be parsed as a date will be cleared.": "Cells that can't be parsed as a date will be cleared.", "Cells that can't be parsed as a number will be cleared.": "Cells that can't be parsed as a number will be cleared.", "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).": "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).", diff --git a/apps/client/public/locales/ru-RU/translation.json b/apps/client/public/locales/ru-RU/translation.json index b8a4cbd47..c15e27086 100644 --- a/apps/client/public/locales/ru-RU/translation.json +++ b/apps/client/public/locales/ru-RU/translation.json @@ -1087,6 +1087,8 @@ "Create subpage of {{name}}": "Создать подстраницу для {{name}}", "Apply": "Apply", "Cells that aren't already a page reference will be cleared.": "Cells that aren't already a page reference will be cleared.", + "Cells that aren't a valid URL will be cleared.": "Cells that aren't a valid URL will be cleared.", + "Cells that aren't a valid email address will be cleared.": "Cells that aren't a valid email address will be cleared.", "Cells that can't be parsed as a date will be cleared.": "Cells that can't be parsed as a date will be cleared.", "Cells that can't be parsed as a number will be cleared.": "Cells that can't be parsed as a number will be cleared.", "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).": "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).", diff --git a/apps/client/public/locales/uk-UA/translation.json b/apps/client/public/locales/uk-UA/translation.json index 207e24ce7..59a3a8022 100644 --- a/apps/client/public/locales/uk-UA/translation.json +++ b/apps/client/public/locales/uk-UA/translation.json @@ -1087,6 +1087,8 @@ "Create subpage of {{name}}": "Створити підсторінку для {{name}}", "Apply": "Apply", "Cells that aren't already a page reference will be cleared.": "Cells that aren't already a page reference will be cleared.", + "Cells that aren't a valid URL will be cleared.": "Cells that aren't a valid URL will be cleared.", + "Cells that aren't a valid email address will be cleared.": "Cells that aren't a valid email address will be cleared.", "Cells that can't be parsed as a date will be cleared.": "Cells that can't be parsed as a date will be cleared.", "Cells that can't be parsed as a number will be cleared.": "Cells that can't be parsed as a number will be cleared.", "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).": "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).", diff --git a/apps/client/public/locales/zh-CN/translation.json b/apps/client/public/locales/zh-CN/translation.json index 52153ace8..b5f5c8b0b 100644 --- a/apps/client/public/locales/zh-CN/translation.json +++ b/apps/client/public/locales/zh-CN/translation.json @@ -1087,6 +1087,8 @@ "Create subpage of {{name}}": "创建 {{name}} 的子页面", "Apply": "Apply", "Cells that aren't already a page reference will be cleared.": "Cells that aren't already a page reference will be cleared.", + "Cells that aren't a valid URL will be cleared.": "Cells that aren't a valid URL will be cleared.", + "Cells that aren't a valid email address will be cleared.": "Cells that aren't a valid email address will be cleared.", "Cells that can't be parsed as a date will be cleared.": "Cells that can't be parsed as a date will be cleared.", "Cells that can't be parsed as a number will be cleared.": "Cells that can't be parsed as a number will be cleared.", "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).": "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared).", diff --git a/apps/client/src/features/base/components/property/__tests__/conversion-warning.spec.ts b/apps/client/src/features/base/components/property/__tests__/conversion-warning.spec.ts index 2db7945ca..4efcffc50 100644 --- a/apps/client/src/features/base/components/property/__tests__/conversion-warning.spec.ts +++ b/apps/client/src/features/base/components/property/__tests__/conversion-warning.spec.ts @@ -79,9 +79,15 @@ describe("conversionWarning", () => { ); }); - it("returns the default safe copy for text → url", () => { + it("returns url-cleared copy when target is url", () => { expect(conversionWarning("text", "url")).toBe( - "Cells will be reinterpreted under the new type.", + "Cells that aren't a valid URL will be cleared.", + ); + }); + + it("returns email-cleared copy when target is email", () => { + expect(conversionWarning("text", "email")).toBe( + "Cells that aren't a valid email address will be cleared.", ); }); diff --git a/apps/client/src/features/base/components/property/conversion-warning.ts b/apps/client/src/features/base/components/property/conversion-warning.ts index 9bc795414..e9fd3cbf6 100644 --- a/apps/client/src/features/base/components/property/conversion-warning.ts +++ b/apps/client/src/features/base/components/property/conversion-warning.ts @@ -61,5 +61,11 @@ export function conversionWarning( return "Cells will be coerced (yes/true/1 become checked; everything else becomes unchecked or cleared)."; } + if ((to === "url" || to === "email") && from !== to) { + return to === "url" + ? "Cells that aren't a valid URL will be cleared." + : "Cells that aren't a valid email address will be cleared."; + } + return "Cells will be reinterpreted under the new type."; }