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
feat(page-header): metadata-driven multi-button record header (#2361) (#2574)
The record detail page header hardcoded INLINE_MAX=1 — only one action
could ever render as an inline button; everything else collapsed into
the ⋯ overflow menu, so multi-action objects (Lead: Convert / Assign /
Return) could not surface their common operations side by side.
The header now renders up to maxVisible inline buttons (default 3
desktop / 1 mobile, overridable via maxVisible / mobileMaxVisible on
the page:header schema) and decides which actions claim the inline
slots from metadata, mirroring action:bar's #2339 contract:
- order ascending (unset = 0; lower = more prominent), stable sort
- variant: 'primary' as a tie-break within equal order (and mapped to
the Shadcn default Button variant instead of leaking through)
- component: 'action:menu' pins an action inside the ⋯ menu regardless
of the action count
The synthesized system actions declare their placement accordingly:
sys_edit gets order: 100 (behind every authored business action, still
inline when slots remain); sys_share / sys_delete are pinned into the
⋯ menu via component: 'action:menu' so Delete never surfaces as an
inline red button just because an object has few actions.
Closes#2361
Claude-Session: https://claude.ai/code/session_01AvDRpozQS6m3UaWpGBtdG2
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments