feat(cabana): mail templates list grouped by template with per-locale status

Gap G-35-1 (supersedes D-05; D-06 reset and D-07 drift per locale):
- the templates list keeps one row per template (the base row, or the
  lowest variant when only variants ship) with a Customized locales
  column (Default, then locale codes, at most three then +N);
- row states and the status filter aggregate over the template's
  locale versions; the locale filter is removed;
- a not-customized locale without a file shows the base row's current
  subject, body and layout; its info partial says so, its file version
  compares with the base file, and Reset returns it to the base file
  (postcard.ResetOverride accepts a fallback-locale code);
- copy: mail.template.customized_locales, mail.info_locale_default,
  mail.info_locale_fallback (en/pl);
- tests: TestMailScreensSmoke/locales_list, templates and drift updated,
  TestMailDrift on the grouped row, TestMailTemplateFilterScopes.
This commit is contained in:
Jakub Zych
2026-11-13 20:39:45 +01:00
parent 52c9c7eb18
commit 67f7164302
14 changed files with 460 additions and 118 deletions

View File

@@ -624,6 +624,8 @@ mail:
info_custom_layout: "Custom layout. It exists only in the database and can be deleted."
info_variables: "Variables with sample values:"
info_no_samples: "This file declares no sample values. Variables show as [name] in the preview."
info_locale_default: "Default version: sent for every locale that has neither its own file nor a customized version."
info_locale_fallback: "Locale :locale has no file of its own. Until you customize it, the default version is sent."
info_partial_usage: "Use it in a template or layout with:"
drift_title: "The file changed after this was customized"
drift_text: "A plugin update changed the file. Your version is still sent. Compare both on the File version tab, then save your version again to mark the change as reviewed, or reset to the file version."
@@ -648,6 +650,7 @@ mail:
description: "Description"
locale: "Locale"
locale_default: "Default"
customized_locales: "Customized locales"
layout: "Layout"
layout_comment: "The layout wraps the message. Custom layouts are listed too."
body: "Message"

View File

@@ -660,6 +660,8 @@ mail:
info_custom_layout: "Układ własny. Istnieje tylko w bazie danych i można go usunąć."
info_variables: "Zmienne z przykładowymi wartościami:"
info_no_samples: "Ten plik nie deklaruje przykładowych wartości. W podglądzie zmienne są pokazane jako [nazwa]."
info_locale_default: "Wersja domyślna: wysyłana dla każdego języka, który nie ma własnego pliku ani dostosowanej wersji."
info_locale_fallback: "Język :locale nie ma własnego pliku. Dopóki go nie dostosujesz, wysyłana jest wersja domyślna."
info_partial_usage: "Użyj go w szablonie lub układzie tak:"
drift_title: "Plik zmienił się po dostosowaniu"
drift_text: "Aktualizacja wtyczki zmieniła plik. Nadal wysyłana jest Twoja wersja. Porównaj obie w zakładce Wersja z pliku, a potem zapisz swoją wersję ponownie, aby oznaczyć zmianę jako sprawdzoną, albo przywróć wersję z pliku."
@@ -684,6 +686,7 @@ mail:
description: "Opis"
locale: "Język"
locale_default: "Domyślny"
customized_locales: "Dostosowane języki"
layout: "Układ"
layout_comment: "Układ otacza wiadomość. Na liście są też układy własne."
body: "Treść"