Skip to content

Commit a3b0809

Browse files
committed
chore(dogfood): keep the tracker id out of the ledger's string prose
Claude-Session: https://claude.ai/code/session_0148U1UfHrMrKAyJbiSs1ZYr Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5a6ed48 commit a3b0809

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/qa/dogfood/test/expression-conformance.ledger.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ export const EXPRESSION_SURFACE: ExprSurface[] = [
646646
summary: 'action confirm sentence (Action.confirmText, and the page action rows\' `confirmText`) — `{{ record.* }}` holes, and `{{ params.* }}` beside static values',
647647
dialect: 'template', mode: 'interpret', state: 'enforced', failPolicy: 'fail-soft-log',
648648
enforcement:
649-
'PARSE, measured here: `ui/action-copy-template.ts` `actionCopyTemplateSlot` around `templateExpressionInput`, built at each declaring file, normalizes a bare string to `{dialect:"template",source}`, keeps a blank string as written and (on `Action`) the inline locale map. BUILD-TIME GATE, measured here: lint/validate-action-copy-templates.ts `actionCopyTemplateIssues`, run by `validateStackExpressions` at `objectstack validate` / `compile` and the publish gate (`action`, `object` and `page` writes), judges each sentence with `closedScopeTemplateRefusal` over `actionConfirmTemplateRoots(action)` and then `validateExpression(\'template\', …)` — every finding an ERROR (the publish gate answers 422), a `${…}` token in a sentence with no `{{ }}` hole included (#25709). EVALUATOR: console (objectui) `ActionRunner.confirmMessage` → `fillTemplateHoles` → @objectstack/formula `templateEngine.evaluate` over `record` (the dispatched row, else the context record) and `params` (the static values), read in the `ui/` tree (`ui/packages/core/src/actions/ActionRunner.ts`); a sentence the engine refuses is shown as written, an unbound hole prints empty, and a sentence with no `{{ }}` hole is shown as written, a `${…}` token in it included',
649+
'PARSE, measured here: `ui/action-copy-template.ts` `actionCopyTemplateSlot` around `templateExpressionInput`, built at each declaring file, normalizes a bare string to `{dialect:"template",source}`, keeps a blank string as written and (on `Action`) the inline locale map. BUILD-TIME GATE, measured here: lint/validate-action-copy-templates.ts `actionCopyTemplateIssues`, run by `validateStackExpressions` at `objectstack validate` / `compile` and the publish gate (`action`, `object` and `page` writes), judges each sentence with `closedScopeTemplateRefusal` over `actionConfirmTemplateRoots(action)` and then `validateExpression(\'template\', …)` — every finding an ERROR (the publish gate answers 422), a `${…}` token in a sentence with no `{{ }}` hole included. EVALUATOR: console (objectui) `ActionRunner.confirmMessage` → `fillTemplateHoles` → @objectstack/formula `templateEngine.evaluate` over `record` (the dispatched row, else the context record) and `params` (the static values), read in the `ui/` tree (`ui/packages/core/src/actions/ActionRunner.ts`); a sentence the engine refuses is shown as written, an unbound hole prints empty, and a sentence with no `{{ }}` hole is shown as written, a `${…}` token in it included',
650650
covers: [
651651
'ui/action.zod.ts:actionObject.confirmText',
652652
'ui/component.zod.ts:ActionButtonPropsSchema.confirmText',

0 commit comments

Comments
 (0)