You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Notification template form: a preview pane that renders the saved template through the real renderer with sample values #39569
Card 2 of 4 from the ruling below: the Setup notification template form gets the preview an administrator needs before the first real send; today the form has none (git grep -n -i "sys_notification_template" origin/main -- ui/packages/app-shell/src/views/metadata-admin/previews → 0 hits).
Ruling: #39412 item 2 = B (record 7405856818; Tesla tapped 2026-12-04T08:21:28Z 「真实渲染加示例值预览」), analysis 7404430158 (Served-tier: CONTRACT_REVIEW_TIER), section "Post-ruling execution · If B". No fallback to option A if a pin cannot be met: report a fork.
Request: triage (first-touch audit and domain:*; filed by the lane seat as one of four execution cards of that ruling).
On the notification template form (Setup, nav_notification_templates): placeholders found in the saved row become sample-value inputs (topics declare no variables, so the template text is the only source); the subject and body are shown as the door from the blocking card renders them; refusals are shown as text. The preview refreshes on save, not per keystroke.
Nearest precedent: PR #31069 (a custom widget on the same Setup form).
Triage: lands in area:ux · Feature · p2 · pm:blocked · size S, touched 2026-12-04T09:21Z. Rationale: the filer's area, grade and blocker (#39565) stand. It adds a preview pane on the notification template form through the real renderer. Issue type set to Feature.
Claim: PM loop round 1 · 2026-12-04T11:59Z · card 2 of 4 under ruling 7405856818 (#39412 item 2 = B); blocker #39565 closed (PR #39622 merged)
Session: session_01L9qibyrf8y7cWLVu7DMgBN
Account: os-tesla
Area: ot-ux2
Branch: claude/issue-39569-wip
Worktree: objectstack-issue-39569
Domain: domain:ui
Seat: repo:objectstack@os-tesla
File surface: a new widget ui/packages/fields/src/widgets/NotificationTemplatePreviewField.tsx (sample-value inputs from the saved row's placeholders; subject and body as the #39565 door renders them; refusals as text; refreshes on save, not per keystroke) and its tests under ui/packages/fields/src/widgets/__tests__/, its registration in ui/packages/fields/src/index.tsx and ui/packages/fields/src/FieldEditWidget.tsx (as PR #31069 did), the widget lists ui/packages/cli/src/utils/known-schema-types.ts and ui/packages/plugin-detail/src/__tests__/inlineEditTypeCoverage.test.tsx if the gates ask, the widget hint on packages/services/service-messaging/src/objects/notification-template.object.ts (SERIAL: edited only after PR #39608, which edits the same file and is in the merge queue, merges and main is merged in), UI text in a new or existing ui/packages/i18n/src/namespaces/ namespace (⛔ not ui/packages/i18n/src/locales/*.ts, held by #39439 and #39419), one changeset. ⛔ Not ui/packages/fields/src/widgets/RegistryRefField.tsx (#39560). Stop on breach; explain in the report.
Container & model: M (new ui widget consuming the #39565 door), mode:subagent, model: default (dispatch-gates --tier: "no path-derived mandate"), effort: high (os-dev subagent, opus + high passed explicitly, as the seat ruled for this zone)
Clause-②: no (ui widget on an open widget string; no spec key, no new served member)
Metadata-protocol: none
Responsibility: n/a — not a defect card
Thread-read: 7407225719
Premise: holds (git grep -n -i "sys_notification_template" origin/main -- ui/packages/app-shell/src/views/metadata-admin/previews → 0 hits; the door POST at NOTIFICATION_TEMPLATE_PREVIEW_ROUTE in packages/services/service-messaging/src/notification-template-preview-routes.ts is on main via #39622)
Pre-claim lane: domain:ui by file; stays in this seat.
Pre-claim deps: #39565 closed.
Prior rulings read: 7405856818 on #39412 (B; no fallback to A, report a fork), analysis 7404430158 "Post-ruling execution · If B" (saved template only; no record, no recipient lookup, no delivery, no row; gate = may read the template); check-prior-rulings named ADR-0045/0050/0014/0022/0032/0037/0041 sections — ADR-0014 ("same renderer") is the one that bears, and it is what B executes.
Serial constraints cleared: check-handover.mjs --inflight: #39641 (claim 7410635282, ot-p1) holds packages/services/service-messaging/src/ only for "one new registry module and its tests"; its named files are preference-options*, messaging-service.ts and index.ts, disjoint from notification-template.object.ts. #39412 (this zone, claim 7406868561) holds notification-template.object.ts through PR #39608, which is in the merge queue, so that file is serial as above. Locales are avoided (#39439, #39419).
Claim amendment: 2026-12-04T12:10Z · amends claim 7410835379 · Area: ot-ux2 · NARROWS the i18n entry
File surface: the UI-text entry now reads "a NEW namespace directory under ui/packages/i18n/src/namespaces/ for the notification-template preview, named by the dev in its report". It does not cover any existing namespace directory: ⛔ not marketplace/, ⛔ not studio/. Every other entry is unchanged. The object file's serial constraint is cleared, because PR #39608 merged.
{
"issue": 39569,
"status": "blocked",
"branch": "claude/issue-39569-wip",
"head": "f5fc4e3ba",
"pr": null,
"session": "session_01L9qibyrf8y7cWLVu7DMgBN",
"premise_still_valid": true,
"summary": "Built and pushed, inside the claim's file surface: the pane (ui/packages/fields/src/widgets/NotificationTemplatePreviewField.tsx), its registration in ui/packages/fields/src/index.tsx, its pins, and the widget hint on the body of sys_notification_template (PR #39608 merged at 12:06Z; origin/main merged first with os-regen-merge.sh). Placement: the pane is the READ face of the hint 'notification-template-preview' on the body field. On the record page it draws under the body. That is the place where the saved row is drawn, and the page reads the row again after a save. The edit modal closes on save, so a pane there would never show a saved render. Under the hint the edit form keeps the markdown editor, because the spec says an unregistered field widget falls back to the type editor. So there are no fieldWidgetMap, FieldEditWidget, known-schema-types or inlineEditTypeCoverage edits. The pane posts the saved row's id and the typed sample payload to the #39565 door and shows the answer as it came back: html through the package sanitizer, text as plain text, a refusal as its message and code. The inputs are the placeholders in the saved subject and body, found with the renderer's grammar and mapped onto the payload. The topic placeholder is not an input. Typing asks nothing. The pane asks again when the saved row's updated_at moves or when the admin presses the button. A grid cell draws the body alone. STOPPED on a surface breach: two things outside the surface are needed before the work is green. (1) A home for the UI text. The 12 keys fields.notificationTemplatePreview.* are each red in check-i18n-call-site-keys as missing-key. A new pack-shaped namespace under ui/packages/i18n/src/namespaces/ cannot be self-contained. It also needs: ui/packages/i18n/package.json exports, PACK_NAMESPACE_FRAMES in ui/scripts/check-i18n-call-site-keys.mjs, ui/packages/i18n/src/locales/index.ts (the all-packs door), the i18n-ns chunk rows in ui/apps/console/vite.config.ts, ui/packages/i18n/scripts/zh-hant.mjs, and a namespace shape test under ui/packages/i18n/src/__tests__/. The other route is the pack's fields group in locales/*.ts, which #39439 holds. (2) Registering a new read face reds two registry censuses that need one row each for the new key: ui/packages/fields/src/__tests__/cellRenderers.objectLiteral-8596.test.tsx (4 tests) and ui/packages/plugin-detail/src/__tests__/summaryChip.badgeFitCensus-8464.test.tsx (3 tests, plus possibly CHIP_UNFIT_RENDERER_TYPES in plugin-detail source). The edit-face route would breach the same way: it needs rows in widget-dom-leak-e2e and widget-aria-invalid-registry-e2e as PR #31069 added. Not blocked and can be done now: everything above, which is pushed. Still owed after the surface is widened: those rows, the text home, one changeset (Clause-2: no, Metadata-protocol: none), the draft PR, and a browser check on the real record page.",
"tests": "Red first at c6e437cc9 (test only, on main's tree): vitest run packages/fields/src/widgets/__tests__/NotificationTemplatePreviewField-39569.test.tsx gave 'Failed to resolve import ../NotificationTemplatePreviewField', Test Files 1 failed, VERDICT command-exit 1. Green at efb16d839: the same file, Tests 19 passed (19), VERDICT command-exit 0. Ablation (on disk, restored with git checkout HEAD; git status clean after): with the markdown promotion turned off in resolveCellRendererType, 2 failed | 17 passed. The failing tests were 'a markdown field declaring the hint resolves to its read face' and 'on the record page the face draws the body and the preview under it'. service-messaging at f5fc4e3ba: vitest run src/objects/, Test Files 15 passed, Tests 132 passed, VERDICT command-exit 0. Census sweep over 12 registry and coverage test files: Tests 7 failed | 517 passed. All 7 failures are in the two out-of-surface census files named in the summary.",
"gates": "Local, at f5fc4e3ba, exit code captured before any pipe: check:nul-bytes 0; check:issue-citations 0; check:doc-authoring 0; check:cross-package-test-inputs 0; check:gitlink-declared 0. check:i18n exit 3 = NOT MEASURED (prerequisite: the CLI build is missing). ui/scripts/check-i18n-call-site-keys.mjs exit 1 with 12 missing-key fields.notificationTemplatePreview.* = the named text-home gap. NOT MEASURED: @object-ui/fields type-check. Reason: TS2307 on every @object-ui/* import because the ui closure is not built; this was not run before stopping. The other dispatch-gates --commands families (60 lines, derived at f5fc4e3ba) were not run because the round stopped on the breach. No PR, so there are no check-runs.",
"mcp_calls": "0",
"api_writes": "1 - POST issues/39569/comments (this os-dev-report, via post-stamped.mjs). git push x3 to claude/issue-39569-wip (not REST).",
"classifier_refusals": [],
"deviations": "No PR opened: the dispatch said to stop on a breach and explain, which takes precedence over the os-dev rule to open a draft PR once there is something to show. The test file is named NotificationTemplatePreviewField-39569.test.tsx under widgets/__tests__/, which is inside the surface. Implementation route: the read face instead of the edit face that PR #31069 used; the reason is in the summary. Strings use t() with an inline English defaultValue only as a placeholder until the text home is decided. ui/AGENTS.md rule 2 (docs-driven: the package README and content/docs/frontend) is also outside the surface and not done.",
"files": [
"ui/packages/fields/src/widgets/NotificationTemplatePreviewField.tsx",
"ui/packages/fields/src/index.tsx",
"ui/packages/fields/src/widgets/__tests__/NotificationTemplatePreviewField-39569.test.tsx",
"packages/services/service-messaging/src/objects/notification-template.object.ts"
],
"ci": "none - no PR",
"open_questions": [
{
"question": "Where does the pane's UI text live, given that locales/*.ts are held and a namespace needs wiring outside the surface?",
"options": [
"A: widen the surface to the 6 namespace wiring files and add a lazy namespace (the pane is already lazy, so the namespace frame wraps only the widget file)",
"B: wait for the holders of locales/*.ts, then add a fields.notificationTemplatePreview group to the 11 packs; the call sites stay as they are"
],
"recommendation": "B if #39439 releases locales soon, because the key paths are already pack-shaped and the change is only the 11 pack files. Otherwise A."
},
{
"question": "May the round add one row each to the two registry census tests (fields cellRenderers.objectLiteral-8596, plugin-detail summaryChip.badgeFitCensus-8464)?",
"options": [
"A: yes, widen the surface to those two files (and CHIP_UNFIT_RENDERER_TYPES if the chip census marks the face unfit)",
"B: no; the pane cannot register a read face"
],
"recommendation": "A: every read face registered so far adds these rows, and the census exists to force that."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none - the pane finds placeholders with a copy of the renderer's hole grammar (TOKEN in service-messaging template-renderer.ts). A cross-package drift pin would need a turbo.json and cross-package-test-inputs declaration, so it is not pinned. Noted for Acceptance notes, not filed."
]
}
Claim amendment: 2026-12-04T12:48Z · amends claim 7410835379 (and 7411091576) · Area: ot-ux2 · after os-dev report 7411906399 (branch claude/issue-39569-wip at f5fc4e3ba, no PR yet)
File surface: adds ui/packages/fields/src/__tests__/cellRenderers.objectLiteral-8596.test.tsx and ui/packages/plugin-detail/src/__tests__/summaryChip.badgeFitCensus-8464.test.tsx (one census row each for the new read face notification-template-preview). It also adds CHIP_UNFIT_RENDERER_TYPES in its plugin-detail source file, only if the chip census marks the face unfit, and the dev names that file in its report.
UI text home (report's question 1): option B, a fields.notificationTemplatePreview group in ui/packages/i18n/src/locales/*.ts, the 11 packs. SERIAL behind #39439 (claim 7407971474, ot-ai), which holds locales/*.ts. Those packs are edited only after #39439 releases them or narrows its locale entry. The new-namespace route (A) is withdrawn: its wiring also needs locales/index.ts, which is held the same way, plus five shared build files. The earlier "new namespace" entry (7411091576) is dropped.
Read-face route: accepted as reported. The pane is the read face of the hint on body, and the edit form keeps its editor. No FieldEditWidget.tsx, known-schema-types.ts or inlineEditTypeCoverage edits are needed.
Claim amendment: 2026-12-04T12:49Z · amends claim 7410835379 (and 7411957389) · Area: ot-ux2
Serial constraints cleared: ui/packages/i18n/src/locales/*.ts is no longer serial behind #39439. ot-ai confirmed that #39439's only locale edit (its PR 3, amendment 7411077484) appends movedToRecycleBinNamed and movedToRecycleBin to the existing objectActions group. It creates no group and changes no other group. This card adds only a fields.notificationTemplatePreview group (12 keys) to the 11 packs, on different lines. Whichever lands second merges main.
{
"issue": 39569,
"status": "done",
"branch": "claude/issue-39569-wip",
"head": "8aae95de8cd6eefed627b7980ef131a1a3cc85a0",
"pr": "https://github.com/objectstack-ai/objectstack/pull/39707",
"session": "session_01L9qibyrf8y7cWLVu7DMgBN",
"premise_still_valid": true,
"summary": "Built per ruling 7405856818 = B. On a notification template's record page, a Preview pane under the body posts the saved row's id and a sample payload to POST /api/v1/messaging/notification-templates/ID/preview and shows the subject and body as the server answers. html and mjml answers go through the package sanitizer; markdown and text answers show as plain text. A refusal shows its message and code. There is no browser-side render. Each placeholder in the saved subject and body becomes one sample input; amount and payload.amount share one input, and topic gets none. Typing asks nothing. The pane asks again when the saved row's updated_at moves, or when Preview with these values is pressed. The pane is the read face of the widget hint notification-template-preview on sys_notification_template.body; the edit form keeps its markdown editor. Round 2 added: the 12-key fields.notificationTemplatePreview group in all 11 locale packs, with real translations and nothing else in those files; the inline English defaults replaced by real keys; one census row each in the two registry censuses (the chip census marks the face fit, so CHIP_UNFIT_RENDERER_TYPES is unchanged); one changeset. The draft PR #39707 is open, assigned to os-tesla.",
"tests": "Red first at c6e437cc9: the widget test on main's tree failed to resolve the widget module (VERDICT command-exit 1). At 8aae95d: the widget test file has 21 tests, all green. Scoped sweep: Test Files 116 passed (116), Tests 1987 passed and 13 skipped (2000), VERDICT command-exit 0. The sweep covered the widget test, the registry and coverage censuses, the i18n pack tests and the service-messaging objects. ui scripts suite under the lock (vitest run scripts/ --maxWorkers=2): Tests 5161 passed and 2 skipped, VERDICT command-exit 0; a first unlocked attempt was SIGKILLed (OOM). Type-check exit 0 for @object-ui/fields, @object-ui/plugin-detail, @object-ui/i18n and @objectstack/service-messaging, with the ui closure built first. Ablation, done on disk with 19 tests (before the two words tests were added): with the markdown promotion removed from resolveCellRendererType, 2 failed and 17 passed; the resolver pin and the record-page face pin went red. It was then restored, and git status was clean.",
"gates": "Local at 8aae95d. Every exit code was captured before any pipe. dispatch-gates.mjs --commands derived 76 families; the --ran reconciliation shows 76 run and 0 missing. All exit 0, with these exceptions: check:dual-build-cjs-loads exited 3 (PREREQUISITE NOT MET, needs a full pnpm build) and is NOT MEASURED locally, left to CI. check:i18n first exited 3 (CLI not built) and exited 0 after the CLI closure was built. check-i18n-call-site-keys (ui pnpm check:i18n-keys) exited 0. check:generated: all 14 artifacts are up to date. The ratchets (type-check-coverage, type-check-debt), nul-bytes and the changeset gates exited 0. PR #39707 check-runs on head 8aae95d at report time: 25 total, 18 in_progress, 7 skipped, 0 concluded red. I am not waiting for CI convergence, per the contract.",
"browser_check": "CRM example backend (fresh) plus the Console dev server. I created a template through the API; the served object metadata carries the widget hint on body. At /apps/com.objectstack.setup/sys_notification_template/record/ID the pane drew under Body with the inputs number, customer.name and amount. The first render read Subject 'Invoice paid' and Body 'Hi , we received for (invoice.paid).'. After typing INV-7 / Ada / $120 and pressing the button, it read Subject 'Invoice INV-7 paid' and Body 'Hi Ada, we received $120 for INV-7 (invoice.paid).'. The console showed one 401 and one 404 from pre-login probes and none from the pane. Both servers were stopped and the ports were free afterwards.",
"files": [
"ui/packages/fields/src/widgets/NotificationTemplatePreviewField.tsx",
"ui/packages/fields/src/index.tsx",
"ui/packages/fields/src/widgets/__tests__/NotificationTemplatePreviewField-39569.test.tsx",
"ui/packages/fields/src/__tests__/cellRenderers.objectLiteral-8596.test.tsx",
"ui/packages/plugin-detail/src/__tests__/summaryChip.badgeFitCensus-8464.test.tsx",
"ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans,zh-Hant}.ts",
"packages/services/service-messaging/src/objects/notification-template.object.ts",
".changeset/39569-notification-template-preview-pane.md"
],
"mcp_calls": "0",
"api_writes": "3 relay strokes. (1) Round 1: POST issues/39569/comments, comment 7411906399, via post-stamped. (2) pr_create via fleet-write dispatch: POST pulls, creating #39707 as a draft, plus the leg POST issues/39707/assignees for os-tesla. The read-back says the body is byte-identical, the assignee is listed and no labels were sent. (3) This report: POST issues/39569/comments via post-stamped. git push to claude/issue-39569-wip is not REST.",
"classifier_refusals": [],
"deviations": "Round 1 opened no PR: the dispatch said to stop on a surface breach. The breach was answered by amendments 7411957389 and 7411979862. Placement: the read face on the record page instead of the edit face precedent #31069 used, because the edit modal closes on save; the coordinator accepted this. CHIP_UNFIT_RENDERER_TYPES is unchanged because the face is fit. No skip-changeset label, because a changeset exists. The SessionStart attribution note asked for a review request after creation. It was not sent: os-dev rule 2 says the seat owns the hand-off and the seat's own account is never requested as a reviewer. The assignee rode the pr_create.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none - the pane finds placeholders with a copy of the renderer's hole grammar (TOKEN in service-messaging template-renderer.ts). A cross-package drift pin would need turbo and cross-package-test-inputs declarations. Noted in Acceptance notes, not filed.",
"carrier: none - ui/AGENTS.md rule 2 docs (package README, content/docs/frontend) are outside the claim surface. Noted in Acceptance notes."
]
}
Done · 2026-12-04T16:00Z · zone ot-ux2 · PR #39707 merged (347998b, Fixes #39569): the notification template form previews the saved template through the real renderer, in all 11 locale packs. pm:dispatched removed with this comment by the seat (the zone stood down).
Activity
objectstack-fleet commentedon Dec 4, 2026
triage@hotlong · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:ux · Feature · p2 · pm:blocked · size S, touched 2026-12-04T09:21Z. Rationale: the filer's area, grade and blocker (#39565) stand. It adds a preview pane on the notification template form through the real renderer. Issue type set to Feature.
objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibyrf8y7cWLVu7DMgBN
Claim: PM loop round 1 · 2026-12-04T11:59Z · card 2 of 4 under ruling 7405856818 (#39412 item 2 = B); blocker #39565 closed (PR #39622 merged)
Session:
session_01L9qibyrf8y7cWLVu7DMgBNAccount:
os-teslaArea: ot-ux2
Branch:
claude/issue-39569-wipWorktree:
objectstack-issue-39569Domain:
domain:uiSeat:
repo:objectstack@os-teslaFile surface: a new widget
ui/packages/fields/src/widgets/NotificationTemplatePreviewField.tsx(sample-value inputs from the saved row's placeholders; subject and body as the #39565 door renders them; refusals as text; refreshes on save, not per keystroke) and its tests underui/packages/fields/src/widgets/__tests__/, its registration inui/packages/fields/src/index.tsxandui/packages/fields/src/FieldEditWidget.tsx(as PR #31069 did), the widget listsui/packages/cli/src/utils/known-schema-types.tsandui/packages/plugin-detail/src/__tests__/inlineEditTypeCoverage.test.tsxif the gates ask, thewidgethint onpackages/services/service-messaging/src/objects/notification-template.object.ts(SERIAL: edited only after PR #39608, which edits the same file and is in the merge queue, merges and main is merged in), UI text in a new or existingui/packages/i18n/src/namespaces/namespace (⛔ notui/packages/i18n/src/locales/*.ts, held by #39439 and #39419), one changeset. ⛔ Notui/packages/fields/src/widgets/RegistryRefField.tsx(#39560). Stop on breach; explain in the report.Container & model:
M (new ui widget consuming the #39565 door),mode:subagent,model: default (dispatch-gates --tier: "no path-derived mandate"),effort: high(os-dev subagent, opus + high passed explicitly, as the seat ruled for this zone)Clause-②: no (ui widget on an open
widgetstring; no spec key, no new served member)Metadata-protocol: none
Responsibility:
n/a — not a defect cardThread-read: 7407225719
Premise: holds (
git grep -n -i "sys_notification_template" origin/main -- ui/packages/app-shell/src/views/metadata-admin/previews→ 0 hits; the doorPOSTatNOTIFICATION_TEMPLATE_PREVIEW_ROUTEinpackages/services/service-messaging/src/notification-template-preview-routes.tsis on main via #39622)Pre-claim lane:
domain:uiby file; stays in this seat.Pre-claim deps: #39565 closed.
Prior rulings read: 7405856818 on #39412 (B; no fallback to A, report a fork), analysis 7404430158 "Post-ruling execution · If B" (saved template only; no record, no recipient lookup, no delivery, no row; gate = may read the template);
check-prior-rulingsnamed ADR-0045/0050/0014/0022/0032/0037/0041 sections — ADR-0014 ("same renderer") is the one that bears, and it is what B executes.Serial constraints cleared:
check-handover.mjs --inflight: #39641 (claim 7410635282, ot-p1) holdspackages/services/service-messaging/src/only for "one new registry module and its tests"; its named files are preference-options*, messaging-service.ts and index.ts, disjoint fromnotification-template.object.ts. #39412 (this zone, claim 7406868561) holdsnotification-template.object.tsthrough PR #39608, which is in the merge queue, so that file is serial as above. Locales are avoided (#39439, #39419).objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibyrf8y7cWLVu7DMgBN
Claim amendment: 2026-12-04T12:10Z · amends claim 7410835379 · Area: ot-ux2 · NARROWS the i18n entry
File surface: the UI-text entry now reads "a NEW namespace directory under
ui/packages/i18n/src/namespaces/for the notification-template preview, named by the dev in its report". It does not cover any existing namespace directory: ⛔ notmarketplace/, ⛔ notstudio/. Every other entry is unchanged. The object file's serial constraint is cleared, because PR #39608 merged.objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibyrf8y7cWLVu7DMgBN
os-dev-report
{ "issue": 39569, "status": "blocked", "branch": "claude/issue-39569-wip", "head": "f5fc4e3ba", "pr": null, "session": "session_01L9qibyrf8y7cWLVu7DMgBN", "premise_still_valid": true, "summary": "Built and pushed, inside the claim's file surface: the pane (ui/packages/fields/src/widgets/NotificationTemplatePreviewField.tsx), its registration in ui/packages/fields/src/index.tsx, its pins, and the widget hint on the body of sys_notification_template (PR #39608 merged at 12:06Z; origin/main merged first with os-regen-merge.sh). Placement: the pane is the READ face of the hint 'notification-template-preview' on the body field. On the record page it draws under the body. That is the place where the saved row is drawn, and the page reads the row again after a save. The edit modal closes on save, so a pane there would never show a saved render. Under the hint the edit form keeps the markdown editor, because the spec says an unregistered field widget falls back to the type editor. So there are no fieldWidgetMap, FieldEditWidget, known-schema-types or inlineEditTypeCoverage edits. The pane posts the saved row's id and the typed sample payload to the #39565 door and shows the answer as it came back: html through the package sanitizer, text as plain text, a refusal as its message and code. The inputs are the placeholders in the saved subject and body, found with the renderer's grammar and mapped onto the payload. The topic placeholder is not an input. Typing asks nothing. The pane asks again when the saved row's updated_at moves or when the admin presses the button. A grid cell draws the body alone. STOPPED on a surface breach: two things outside the surface are needed before the work is green. (1) A home for the UI text. The 12 keys fields.notificationTemplatePreview.* are each red in check-i18n-call-site-keys as missing-key. A new pack-shaped namespace under ui/packages/i18n/src/namespaces/ cannot be self-contained. It also needs: ui/packages/i18n/package.json exports, PACK_NAMESPACE_FRAMES in ui/scripts/check-i18n-call-site-keys.mjs, ui/packages/i18n/src/locales/index.ts (the all-packs door), the i18n-ns chunk rows in ui/apps/console/vite.config.ts, ui/packages/i18n/scripts/zh-hant.mjs, and a namespace shape test under ui/packages/i18n/src/__tests__/. The other route is the pack's fields group in locales/*.ts, which #39439 holds. (2) Registering a new read face reds two registry censuses that need one row each for the new key: ui/packages/fields/src/__tests__/cellRenderers.objectLiteral-8596.test.tsx (4 tests) and ui/packages/plugin-detail/src/__tests__/summaryChip.badgeFitCensus-8464.test.tsx (3 tests, plus possibly CHIP_UNFIT_RENDERER_TYPES in plugin-detail source). The edit-face route would breach the same way: it needs rows in widget-dom-leak-e2e and widget-aria-invalid-registry-e2e as PR #31069 added. Not blocked and can be done now: everything above, which is pushed. Still owed after the surface is widened: those rows, the text home, one changeset (Clause-2: no, Metadata-protocol: none), the draft PR, and a browser check on the real record page.", "tests": "Red first at c6e437cc9 (test only, on main's tree): vitest run packages/fields/src/widgets/__tests__/NotificationTemplatePreviewField-39569.test.tsx gave 'Failed to resolve import ../NotificationTemplatePreviewField', Test Files 1 failed, VERDICT command-exit 1. Green at efb16d839: the same file, Tests 19 passed (19), VERDICT command-exit 0. Ablation (on disk, restored with git checkout HEAD; git status clean after): with the markdown promotion turned off in resolveCellRendererType, 2 failed | 17 passed. The failing tests were 'a markdown field declaring the hint resolves to its read face' and 'on the record page the face draws the body and the preview under it'. service-messaging at f5fc4e3ba: vitest run src/objects/, Test Files 15 passed, Tests 132 passed, VERDICT command-exit 0. Census sweep over 12 registry and coverage test files: Tests 7 failed | 517 passed. All 7 failures are in the two out-of-surface census files named in the summary.", "gates": "Local, at f5fc4e3ba, exit code captured before any pipe: check:nul-bytes 0; check:issue-citations 0; check:doc-authoring 0; check:cross-package-test-inputs 0; check:gitlink-declared 0. check:i18n exit 3 = NOT MEASURED (prerequisite: the CLI build is missing). ui/scripts/check-i18n-call-site-keys.mjs exit 1 with 12 missing-key fields.notificationTemplatePreview.* = the named text-home gap. NOT MEASURED: @object-ui/fields type-check. Reason: TS2307 on every @object-ui/* import because the ui closure is not built; this was not run before stopping. The other dispatch-gates --commands families (60 lines, derived at f5fc4e3ba) were not run because the round stopped on the breach. No PR, so there are no check-runs.", "mcp_calls": "0", "api_writes": "1 - POST issues/39569/comments (this os-dev-report, via post-stamped.mjs). git push x3 to claude/issue-39569-wip (not REST).", "classifier_refusals": [], "deviations": "No PR opened: the dispatch said to stop on a breach and explain, which takes precedence over the os-dev rule to open a draft PR once there is something to show. The test file is named NotificationTemplatePreviewField-39569.test.tsx under widgets/__tests__/, which is inside the surface. Implementation route: the read face instead of the edit face that PR #31069 used; the reason is in the summary. Strings use t() with an inline English defaultValue only as a placeholder until the text home is decided. ui/AGENTS.md rule 2 (docs-driven: the package README and content/docs/frontend) is also outside the surface and not done.", "files": [ "ui/packages/fields/src/widgets/NotificationTemplatePreviewField.tsx", "ui/packages/fields/src/index.tsx", "ui/packages/fields/src/widgets/__tests__/NotificationTemplatePreviewField-39569.test.tsx", "packages/services/service-messaging/src/objects/notification-template.object.ts" ], "ci": "none - no PR", "open_questions": [ { "question": "Where does the pane's UI text live, given that locales/*.ts are held and a namespace needs wiring outside the surface?", "options": [ "A: widen the surface to the 6 namespace wiring files and add a lazy namespace (the pane is already lazy, so the namespace frame wraps only the widget file)", "B: wait for the holders of locales/*.ts, then add a fields.notificationTemplatePreview group to the 11 packs; the call sites stay as they are" ], "recommendation": "B if #39439 releases locales soon, because the key paths are already pack-shaped and the change is only the 11 pack files. Otherwise A." }, { "question": "May the round add one row each to the two registry census tests (fields cellRenderers.objectLiteral-8596, plugin-detail summaryChip.badgeFitCensus-8464)?", "options": [ "A: yes, widen the surface to those two files (and CHIP_UNFIT_RENDERER_TYPES if the chip census marks the face unfit)", "B: no; the pane cannot register a read face" ], "recommendation": "A: every read face registered so far adds these rows, and the census exists to force that." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none - the pane finds placeholders with a copy of the renderer's hole grammar (TOKEN in service-messaging template-renderer.ts). A cross-package drift pin would need a turbo.json and cross-package-test-inputs declaration, so it is not pinned. Noted for Acceptance notes, not filed." ] }objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibyrf8y7cWLVu7DMgBN
Claim amendment: 2026-12-04T12:48Z · amends claim 7410835379 (and 7411091576) · Area: ot-ux2 · after os-dev report 7411906399 (branch
claude/issue-39569-wipatf5fc4e3ba, no PR yet)File surface: adds
ui/packages/fields/src/__tests__/cellRenderers.objectLiteral-8596.test.tsxandui/packages/plugin-detail/src/__tests__/summaryChip.badgeFitCensus-8464.test.tsx(one census row each for the new read facenotification-template-preview). It also addsCHIP_UNFIT_RENDERER_TYPESin its plugin-detail source file, only if the chip census marks the face unfit, and the dev names that file in its report.UI text home (report's question 1): option B, a
fields.notificationTemplatePreviewgroup inui/packages/i18n/src/locales/*.ts, the 11 packs. SERIAL behind #39439 (claim 7407971474, ot-ai), which holdslocales/*.ts. Those packs are edited only after #39439 releases them or narrows its locale entry. The new-namespace route (A) is withdrawn: its wiring also needslocales/index.ts, which is held the same way, plus five shared build files. The earlier "new namespace" entry (7411091576) is dropped.Read-face route: accepted as reported. The pane is the read face of the hint on
body, and the edit form keeps its editor. NoFieldEditWidget.tsx,known-schema-types.tsorinlineEditTypeCoverageedits are needed.objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibyrf8y7cWLVu7DMgBN
Claim amendment: 2026-12-04T12:49Z · amends claim 7410835379 (and 7411957389) · Area: ot-ux2
Serial constraints cleared:
ui/packages/i18n/src/locales/*.tsis no longer serial behind #39439. ot-ai confirmed that #39439's only locale edit (its PR 3, amendment 7411077484) appendsmovedToRecycleBinNamedandmovedToRecycleBinto the existingobjectActionsgroup. It creates no group and changes no other group. This card adds only afields.notificationTemplatePreviewgroup (12 keys) to the 11 packs, on different lines. Whichever lands second merges main.objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibyrf8y7cWLVu7DMgBN
os-dev-report
{ "issue": 39569, "status": "done", "branch": "claude/issue-39569-wip", "head": "8aae95de8cd6eefed627b7980ef131a1a3cc85a0", "pr": "https://github.com/objectstack-ai/objectstack/pull/39707", "session": "session_01L9qibyrf8y7cWLVu7DMgBN", "premise_still_valid": true, "summary": "Built per ruling 7405856818 = B. On a notification template's record page, a Preview pane under the body posts the saved row's id and a sample payload to POST /api/v1/messaging/notification-templates/ID/preview and shows the subject and body as the server answers. html and mjml answers go through the package sanitizer; markdown and text answers show as plain text. A refusal shows its message and code. There is no browser-side render. Each placeholder in the saved subject and body becomes one sample input; amount and payload.amount share one input, and topic gets none. Typing asks nothing. The pane asks again when the saved row's updated_at moves, or when Preview with these values is pressed. The pane is the read face of the widget hint notification-template-preview on sys_notification_template.body; the edit form keeps its markdown editor. Round 2 added: the 12-key fields.notificationTemplatePreview group in all 11 locale packs, with real translations and nothing else in those files; the inline English defaults replaced by real keys; one census row each in the two registry censuses (the chip census marks the face fit, so CHIP_UNFIT_RENDERER_TYPES is unchanged); one changeset. The draft PR #39707 is open, assigned to os-tesla.", "tests": "Red first at c6e437cc9: the widget test on main's tree failed to resolve the widget module (VERDICT command-exit 1). At 8aae95d: the widget test file has 21 tests, all green. Scoped sweep: Test Files 116 passed (116), Tests 1987 passed and 13 skipped (2000), VERDICT command-exit 0. The sweep covered the widget test, the registry and coverage censuses, the i18n pack tests and the service-messaging objects. ui scripts suite under the lock (vitest run scripts/ --maxWorkers=2): Tests 5161 passed and 2 skipped, VERDICT command-exit 0; a first unlocked attempt was SIGKILLed (OOM). Type-check exit 0 for @object-ui/fields, @object-ui/plugin-detail, @object-ui/i18n and @objectstack/service-messaging, with the ui closure built first. Ablation, done on disk with 19 tests (before the two words tests were added): with the markdown promotion removed from resolveCellRendererType, 2 failed and 17 passed; the resolver pin and the record-page face pin went red. It was then restored, and git status was clean.", "gates": "Local at 8aae95d. Every exit code was captured before any pipe. dispatch-gates.mjs --commands derived 76 families; the --ran reconciliation shows 76 run and 0 missing. All exit 0, with these exceptions: check:dual-build-cjs-loads exited 3 (PREREQUISITE NOT MET, needs a full pnpm build) and is NOT MEASURED locally, left to CI. check:i18n first exited 3 (CLI not built) and exited 0 after the CLI closure was built. check-i18n-call-site-keys (ui pnpm check:i18n-keys) exited 0. check:generated: all 14 artifacts are up to date. The ratchets (type-check-coverage, type-check-debt), nul-bytes and the changeset gates exited 0. PR #39707 check-runs on head 8aae95d at report time: 25 total, 18 in_progress, 7 skipped, 0 concluded red. I am not waiting for CI convergence, per the contract.", "browser_check": "CRM example backend (fresh) plus the Console dev server. I created a template through the API; the served object metadata carries the widget hint on body. At /apps/com.objectstack.setup/sys_notification_template/record/ID the pane drew under Body with the inputs number, customer.name and amount. The first render read Subject 'Invoice paid' and Body 'Hi , we received for (invoice.paid).'. After typing INV-7 / Ada / $120 and pressing the button, it read Subject 'Invoice INV-7 paid' and Body 'Hi Ada, we received $120 for INV-7 (invoice.paid).'. The console showed one 401 and one 404 from pre-login probes and none from the pane. Both servers were stopped and the ports were free afterwards.", "files": [ "ui/packages/fields/src/widgets/NotificationTemplatePreviewField.tsx", "ui/packages/fields/src/index.tsx", "ui/packages/fields/src/widgets/__tests__/NotificationTemplatePreviewField-39569.test.tsx", "ui/packages/fields/src/__tests__/cellRenderers.objectLiteral-8596.test.tsx", "ui/packages/plugin-detail/src/__tests__/summaryChip.badgeFitCensus-8464.test.tsx", "ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans,zh-Hant}.ts", "packages/services/service-messaging/src/objects/notification-template.object.ts", ".changeset/39569-notification-template-preview-pane.md" ], "mcp_calls": "0", "api_writes": "3 relay strokes. (1) Round 1: POST issues/39569/comments, comment 7411906399, via post-stamped. (2) pr_create via fleet-write dispatch: POST pulls, creating #39707 as a draft, plus the leg POST issues/39707/assignees for os-tesla. The read-back says the body is byte-identical, the assignee is listed and no labels were sent. (3) This report: POST issues/39569/comments via post-stamped. git push to claude/issue-39569-wip is not REST.", "classifier_refusals": [], "deviations": "Round 1 opened no PR: the dispatch said to stop on a surface breach. The breach was answered by amendments 7411957389 and 7411979862. Placement: the read face on the record page instead of the edit face precedent #31069 used, because the edit modal closes on save; the coordinator accepted this. CHIP_UNFIT_RENDERER_TYPES is unchanged because the face is fit. No skip-changeset label, because a changeset exists. The SessionStart attribution note asked for a review request after creation. It was not sent: os-dev rule 2 says the seat owns the hand-off and the seat's own account is never requested as a reviewer. The assignee rode the pr_create.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none - the pane finds placeholders with a copy of the renderer's hole grammar (TOKEN in service-messaging template-renderer.ts). A cross-package drift pin would need turbo and cross-package-test-inputs declarations. Noted in Acceptance notes, not filed.", "carrier: none - ui/AGENTS.md rule 2 docs (package README, content/docs/frontend) are outside the claim surface. Noted in Acceptance notes." ] }objectstack-fleet commentedon Dec 4, 2026
repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB
Done · 2026-12-04T16:00Z · zone ot-ux2 · PR #39707 merged (347998b,
Fixes #39569): the notification template form previews the saved template through the real renderer, in all 11 locale packs.pm:dispatchedremoved with this comment by the seat (the zone stood down).