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

Migrate right drawer record page to the command menu #9459

Merged
merged 23 commits into from
Jan 9, 2025

Conversation

bosiraphael
Copy link
Contributor

@bosiraphael bosiraphael commented Jan 8, 2025

Closes #9423

Enregistrement.de.l.ecran.2025-01-08.a.16.46.59.mov

@bosiraphael bosiraphael linked an issue Jan 8, 2025 that may be closed by this pull request
@bosiraphael bosiraphael marked this pull request as ready for review January 8, 2025 15:48
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 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 when IsCommandMenuV2Enabled 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 of RightDrawer when new flag is enabled

32 file(s) reviewed, 11 comment(s)
Edit PR Review Bot Settings | Greptile

@@ -0,0 +1,4 @@
export enum CommandMenuPages {
Root = 'root',
ViewRecord = 'view-record',
Copy link
Contributor

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?

Copy link
Contributor Author

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

@bosiraphael bosiraphael merged commit a2f2f41 into main Jan 9, 2025
23 checks passed
@bosiraphael bosiraphael deleted the r--merge-right-drawer-and-command-menu-step-1 branch January 9, 2025 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate Record page to Command menu
3 participants