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

8978 add navigation inside the command menu for showpage #9103

Merged

Conversation

bosiraphael
Copy link
Contributor

Closes #8978

  • Added new options in the actions config files: shortLabel, availableOn
  • Added two actions: Navigate to previous records and Navigate to next records
  • Modified useRecordShowPagePagination to loop on records when we are on first record and we hit previous or when we are on last record and we hit next
  • Introduced a new component state contextStoreCurrentViewTypeComponentState

@bosiraphael bosiraphael linked an issue Dec 17, 2024 that may be closed by this pull request
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 adds record navigation capabilities to the command menu for show pages, with significant architectural changes to support contextual actions.

  • Added new navigation hooks useNavigateToNextRecordSingleRecordAction and useNavigateToPreviousRecordSingleRecordAction with looping behavior when reaching first/last records
  • Introduced ContextStoreViewType enum and contextStoreCurrentViewTypeComponentState to control action visibility based on current view (Table/Kanban/ShowPage)
  • Added shortLabel and availableOn properties to ActionMenuEntry type for better control over action display and context-specific visibility
  • Removed pagination buttons from PageHeader, moving navigation entirely to command menu with new chevron icons
  • Modified action configs (V1, V2, Workflow) to support view-specific actions through ActionAvailableOn enum

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

@bosiraphael bosiraphael enabled auto-merge (squash) December 17, 2024 16:38
@bosiraphael bosiraphael merged commit b033a50 into main Dec 17, 2024
22 checks passed
@bosiraphael bosiraphael deleted the 8978-add-navigation-inside-the-command-menu-for-showpage branch December 17, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add navigation inside the command menu for showpage
2 participants