1
Let apps mark a pinned command menu item as the primary action
Source: twentyhq/twenty#26261 · opened by @admin-laicadev
An app can pin a command menu item (isPinned: true). The item then shows as a button in the record page header. We use this for the main action on a record (for example "Send invitation" on a meeting). But app buttons always use the secondary style. Only three built-in actions can be primary. In PinnedCommandMenuItemButtons.tsx the primary style is hardcoded: CommandMenuItemManifest has no property for this. Describe the solution you'd like An optional property on the command menu item, for example: PinnedCommandMenuItemButtons would then use item.isPrimaryAction || <the current engine key check>. Describe alternatives you've considered • A conditionalPrimaryExpression, the same as conditionalPinnedExpression. Then an action can be primary only in some states (for example only while the invitation is not sent yet. Once it has been sent, the secondary buttons is fine). • Our own button in a front component widget (not tried). The action …
No pledges yet. Be the first to back this.
Comments
Similar requests
Hide Command Menu items
1 vote · 0 comments
Hard Delete Option in Command Menu
1 vote · 0 comments
Add "Copy cell content" option to table cell context menu
2 votes · 0 comments
Add conditional field formatting for numeric table and record fields
3 votes · 0 comments
Allow Apps to Extend the Message Threads Timeline
1 vote · 0 comments
No comments yet.