-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix command menu context chip display on show page #10267
Fix command menu context chip display on show page #10267
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR improves the command menu context chip display for new and existing records, particularly focusing on show pages for Companies and Tasks.
- Added
isNewRecord
parameter inopenRecordInCommandMenu
to properly display "New" prefix in titles for newly created records - Modified
CommandMenuContextChipGroupsWithRecordSelection
to handle empty record selections without breaking the UI - Integrated dynamic icon handling based on object metadata for consistent record type visualization
- Improved state management between command menu and right drawer interactions for better UX
- Added i18n support for "New" record titles in the command menu
5 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
pageIcon: IconList, | ||
pageTitle: isNewRecord | ||
? t`New ${capitalizedObjectNameSingular}` | ||
: capitalizedObjectNameSingular, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
t here too ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that the objectNameSingular is already translated but I'm not sure
New Company
Before:
After:
Task
Before:
After: