Skip to content
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

Merged
merged 4 commits into from
Feb 18, 2025

Conversation

bosiraphael
Copy link
Contributor

New Company

Before:

Capture d’écran 2025-02-17 à 16 47 54

After:

Capture d’écran 2025-02-17 à 16 46 24

Task

Before:

Capture d’écran 2025-02-17 à 16 47 35

After:

Capture d’écran 2025-02-17 à 16 47 03

Copy link
Contributor

@greptile-apps greptile-apps bot left a 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 in openRecordInCommandMenu 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

@Weiko Weiko merged commit 270744e into main Feb 18, 2025
45 of 47 checks passed
@Weiko Weiko deleted the r--fix-command-menu-context-chip-display-on-show-page branch February 18, 2025 08:52
pageIcon: IconList,
pageTitle: isNewRecord
? t`New ${capitalizedObjectNameSingular}`
: capitalizedObjectNameSingular,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

t here too ?

Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants