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
fix(action): honor the spec disabled predicate on every action-rendering surface (#1885 follow-through) (#2863)
Spec Action field is `disabled` (boolean | CEL, disabled when TRUE); the
schema has no `enabled` key. #1885 wired action:button only. Browser
dogfooding found five more surfaces where an authored `disabled` silently
did nothing:
- components: action:group leaves (inline + dropdown), action:icon,
action:menu read the legacy non-spec `enabled` only. `disabled` is now
primary (same evaluation scope as `visible`), `enabled` stays as a
deprecated fallback.
- app-shell: DeclaredActionsBar read neither; gains `disabled` (no legacy
fallback -- declared actions are spec-shaped).
- plugin-detail: record:quick_actions HAD a disabled implementation but its
`typeof === 'string'` split dropped the {dialect:'cel', source} envelope
the server compiles authored CEL into (#2661), so it never fired on real
metadata. Now feeds toPredicateInput's result to useCondition whole.
Pinned by new DropdownActionItem tests (4 cases); browser-verified against
the showcase showcase_archive_task specimen: greyed on an in-progress task,
clickable on a done one.
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
0 commit comments