-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Migrate right drawer record page to the command menu #9459
Migrate right drawer record page to the command menu #9459
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 migrates the right drawer record page functionality into the command menu system, replacing the page header V2 feature flag with a new command menu V2 flag across the codebase.
- Added new
CommandMenuRouter
and pages configuration to handle record views within command menu instead of right drawer - Modified
useRightDrawer
hook to open command menu instead of drawer whenIsCommandMenuV2Enabled
flag is true - Added
CommandMenuPages
enum and state management for routing between root and view-record pages - Refactored
CommandMenuContainer
to use children pattern and handle click-outside behavior - Updated hotkey scopes across activity components to use
CommandMenuOpen
instead ofRightDrawer
when new flag is enabled
32 file(s) reviewed, 11 comment(s)
Edit PR Review Bot Settings | Greptile
packages/twenty-front/src/modules/action-menu/components/RecordIndexActionMenu.tsx
Show resolved
Hide resolved
packages/twenty-front/src/modules/command-menu/components/CommandMenu.tsx
Show resolved
Hide resolved
packages/twenty-front/src/modules/command-menu/components/CommandMenuContainer.tsx
Show resolved
Hide resolved
packages/twenty-front/src/modules/command-menu/constants/CommandMenuPagesConfig.tsx
Show resolved
Hide resolved
packages/twenty-front/src/modules/command-menu/components/CommandMenuRouter.tsx
Show resolved
Hide resolved
.../twenty-front/src/modules/object-record/record-right-drawer/components/RightDrawerRecord.tsx
Outdated
Show resolved
Hide resolved
packages/twenty-front/src/modules/ui/layout/right-drawer/hooks/useRightDrawer.ts
Show resolved
Hide resolved
packages/twenty-front/src/modules/ui/layout/show-page/components/ShowPageAddButton.tsx
Show resolved
Hide resolved
@@ -0,0 +1,4 @@ | |||
export enum CommandMenuPages { | |||
Root = 'root', | |||
ViewRecord = 'view-record', |
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.
is it a global name for record details on right drawer?
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.
Yes, I took the same terminology as in the RightDrawerPages
Closes #9423
Enregistrement.de.l.ecran.2025-01-08.a.16.46.59.mov