docs(35): diagnose UAT gaps G-35-1 and G-35-8
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
status: complete
|
||||
status: diagnosed
|
||||
phase: 35-mail-templates-and-layouts-editor
|
||||
source: [35-VERIFICATION.md]
|
||||
started: 2026-11-13T13:46:04.193Z
|
||||
@@ -74,8 +74,23 @@ blocked: 0
|
||||
reason: "User reported: fact that each locale is a separate entry in backend is absolute disaster, why was it planned like that? imagine site with 50 locales."
|
||||
severity: major
|
||||
test: 1
|
||||
artifacts: []
|
||||
missing: []
|
||||
root_cause: "Design decision D-05 (35-CONTEXT.md): locale variants stay separate templates. postcard.SyncIndex writes one summer_mail_templates row per file (activate.htm, activate-en.htm), with TemplateLocale parsed from the name suffix; cabana's MailTemplate list shows each row with a locale column and filter. There is no grouping key (base code) and no per-locale editing inside one record, so N locales produce N list rows per template."
|
||||
artifacts:
|
||||
- path: "modules/postcard/store.go"
|
||||
issue: "SyncIndex/templates table keyed by full code incl. locale suffix; no base-code column to group variants"
|
||||
- path: "modules/postcard/templates.go"
|
||||
issue: "TemplateLocale only derives a label; variants are not linked to their base template"
|
||||
- path: "modules/cabana/mail_admin.go"
|
||||
issue: "MailTemplate list/filter/locale column expose one row per variant; form edits a single variant"
|
||||
- path: "admin/src (mail template form)"
|
||||
issue: "No locale switcher/tabs within a template record"
|
||||
missing:
|
||||
- "Supersede D-05 with a decision note: one entry per template (base code), locale variants edited via a locale switcher/tabs inside it"
|
||||
- "Store a base code (or group by stripped suffix) so the list shows one row per template, with a count/indicator of customized locales"
|
||||
- "Template form: locale switcher listing app locales; a locale without a file or override falls back to the default-locale content and can be customized per locale"
|
||||
- "Reset/drift/customized status per locale within the one record"
|
||||
- "Sending keeps resolving code-<locale> overrides first, so no change for plugins (non-breaking for user/paymentgateway)"
|
||||
debug_session: ""
|
||||
|
||||
- gap_id: G-35-8
|
||||
truth: "Mail preview renders the template inside a polished, working layout out of the box: branding logo shows, call-to-action links (e.g. 'Aktywuj konto' in activate) render as styled buttons, and every shipped layout (system and plugin layouts such as user, paymentgateway) looks finished."
|
||||
@@ -83,5 +98,36 @@ blocked: 0
|
||||
reason: "User reported: logo doesn't appear, only kind of proper layout is System layout (logo doesn't show, Aktywuj konto on activate email doesn't seem to be a button, totally unstyled), other layouts sucks, I expect beautiful and working out of box layouts after this phase."
|
||||
severity: major
|
||||
test: 8
|
||||
artifacts: []
|
||||
missing: []
|
||||
root_cause: "Phase 35 features work (logo URL built and passed as logoUrl, brand CSS applied, button partial renders) but nothing shipped uses them: (1) no layout (postcard default/system/minimal, plugin user/paymentgateway) prints logoUrl and there is no header partial; (2) sm-user-plugin and sm-paymentgateway-plugin templates use Markdown links instead of the button partial, and both plugins require framework v0.6.0 which has no partial func; (3) default.htm and the plugin layouts are bare stubs (no wrapper, card, header, footer; .layout-user/.layout-paymentgateway/.content-body unstyled), system.htm lacks header/footer and side padding; (4) CSS is only in a <style> block, never inlined, so real mail clients will still render unstyled (UI-SPEC and D-10 wrongly claim inlining)."
|
||||
artifacts:
|
||||
- path: "modules/postcard/assets/default.htm"
|
||||
issue: "bare content-body, no logo/header/card/footer (35-01 gate kept it unchanged)"
|
||||
- path: "modules/postcard/assets/system.htm"
|
||||
issue: "no header/logo/footer, content cell has zero side padding"
|
||||
- path: "modules/postcard/assets/minimal.htm"
|
||||
issue: "no logo"
|
||||
- path: "modules/postcard/templates.go"
|
||||
issue: "built-in partials lack header/footer; layouts get no display name"
|
||||
- path: "modules/postcard/assets/brand.css.tmpl"
|
||||
issue: "no logo rule; content-body/layout-user/layout-paymentgateway unstyled"
|
||||
- path: "modules/postcard/mailer.go"
|
||||
issue: "CSS not inlined onto elements"
|
||||
- path: "../sm-user-plugin/views/mail/layouts/user.htm"
|
||||
issue: "stub layout; odd text wrapper"
|
||||
- path: "../sm-user-plugin/views/mail/{activate,restore,invite}{,-en}.htm"
|
||||
issue: "Markdown-link CTA instead of button partial"
|
||||
- path: "../sm-paymentgateway-plugin/views/mail/layouts/paymentgateway.htm"
|
||||
issue: "stub layout"
|
||||
- path: "../sm-paymentgateway-plugin/views/mail/order/*.htm"
|
||||
issue: "Markdown-link CTA plus duplicated URL"
|
||||
- path: "../sm-user-plugin/go.mod, ../sm-paymentgateway-plugin/go.mod"
|
||||
issue: "require framework v0.6.0 without partial func"
|
||||
missing:
|
||||
- "Port WinterCMS default layout (wrapper, header with logo or name fallback, white card, footer) to default.htm and text wrapper; header/logo/footer and padding in system.htm; logo in minimal.htm"
|
||||
- "Built-in header and footer partials; display-name variable for header/footer (Branding field or layout var; app.name is a slug)"
|
||||
- "brand.css.tmpl: logo rule, footer/padding checks, drop unstyled content-body"
|
||||
- "Inline CSS at render with per-layout opt-out (dependency decision or in-house inliner)"
|
||||
- "Render tests: logo img in default/system, button partial output; README, docs/services/mail.md, UI-SPEC inlining text updated; decision note superseding 35-01 'default.htm untouched'"
|
||||
- "Plugins after framework tag: bump framework requirement; user templates use button partial; paymentgateway order templates use button partial, drop duplicate URL; replace user/paymentgateway layout contents keeping their names; fix user.htm text wrapper"
|
||||
- "Demo: reset UAT overrides of golem15.user::mail.layouts.user and golem15.user::mail.activate before re-checking"
|
||||
debug_session: ".planning/debug/mail-layouts-unstyled.md"
|
||||
|
||||
Reference in New Issue
Block a user