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
Commit dd0f681
Browse filesBrowse the repository at this point in the historyBrowse files
fix(spec): alias visible/showWhen onto visibleWhen on page:tabs items and screen fields (#8415)
#7832 curated the visible/showWhen action-side spellings onto visibleWhen
across six shapes and pinned the inventory in
visible-when-alias-guidance.test.ts. Two more visibleWhen shapes were never
in that inventory: page:tabs items (ui/component.zod.ts) and the automation
screen node's ScreenFieldConfigSchema (builtin-node-config.zod.ts). Both are
hand-rolled strictObject calls with exactly one landing key and no boolean
sibling, so both get the simple alias-row treatment: visible -> visibleWhen,
showWhen -> visibleWhen. Acceptance is unchanged -- an alias row is a message
channel, not a parse-time rename.
The page:tabs item docblock also flags visibility/visibleOn (the ADR-0089
view/page spellings) as deliberately not accepted here; that is an
acceptance statement an alias row does not disturb, so both also get a
pointer at visibleWhen while staying rejected.
Adds a fifth section to visible-when-alias-guidance.test.ts pinning both
shapes' rename messages, canonical-still-parses, aliased-spellings-still-
rejected, and the visibility/visibleOn decision, per Fixes#8382.
Fixes#8382
Claude-Session: https://claude.ai/code/session_016YBUGvukaeVu9DjKdsHJa9
Co-authored-by: Claude <noreply@anthropic.com>
'Visibility predicate (CEL) — the whole tab (header + panel) is omitted when FALSE; the renderer falls back to the first visible tab when the active one is hidden. Binds `record`, `current_user`, `page.<var>`. ADR-0089 canonical name (`visibility`/`visibleOn` aliases are not accepted here).',
626
+
'Visibility predicate (CEL) — the whole tab (header + panel) is omitted when FALSE; the renderer falls back to the first visible tab when the active one is hidden. Binds `record`, `current_user`, `page.<var>`. ADR-0089 canonical name — `visible`/`showWhen`/`visibility`/`visibleOn` are all rejected here (not folded in), each with a pointer at this key.',
603
627
),
604
628
/**
605
629
* Stable URL token for this tab — the value `?tab=` carries and the
0 commit comments