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

refactor: command palette navigation #1661

Merged
merged 22 commits into from
Feb 24, 2025

Conversation

d-rita
Copy link
Contributor

@d-rita d-rita commented Feb 4, 2025


Description

This PR improves upon the implementation of the command palette navigation.

  • It abstracts part of the functionality in the general useNavigation hook into separate functions
  • It rebuilds the modal component with the dialog element.

It also adds a criterion for searchable actions, including logout.

Related PRs:

NB: The issues solved in these PRs are also fixed here with this update.


Checklist

  • API docs are generated
  • Tests were added
  • Storybook demos were added

@dhis2-bot
Copy link
Contributor

dhis2-bot commented Feb 4, 2025

🚀 Deployed on https://pr-1661--dhis2-ui.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify February 4, 2025 10:39 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 4, 2025 13:34 Inactive
@d-rita d-rita force-pushed the refactor/modal-navigation branch from ff61e51 to d3114bb Compare February 4, 2025 13:50
@dhis2-bot dhis2-bot temporarily deployed to netlify February 4, 2025 13:54 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 4, 2025 15:11 Inactive
@d-rita d-rita force-pushed the refactor/modal-navigation branch from 584ed09 to e2c13cd Compare February 4, 2025 15:26
@dhis2-bot dhis2-bot temporarily deployed to netlify February 4, 2025 15:30 Inactive
- remove functionality creating focus on 2 items at once by keyboard and hovering
- update test simulating focus by hovering over an item
@dhis2-bot dhis2-bot temporarily deployed to netlify February 4, 2025 19:36 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 5, 2025 00:41 Inactive
@d-rita d-rita requested review from amcgee and a team February 5, 2025 10:12
@dhis2-bot dhis2-bot temporarily deployed to netlify February 5, 2025 11:11 Inactive
@d-rita d-rita changed the title refactor: modal-navigation refactor: command palette navigation Feb 5, 2025
@dhis2-bot dhis2-bot temporarily deployed to netlify February 6, 2025 16:56 Inactive
@d-rita d-rita marked this pull request as ready for review February 6, 2025 17:56
@d-rita d-rita requested a review from a team as a code owner February 6, 2025 17:56
- add key press handlers for each arrow key
@dhis2-bot dhis2-bot temporarily deployed to netlify February 7, 2025 11:05 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 10, 2025 12:50 Inactive
- add test to search for logout on home view
- add filterable_action type
- add actions to all items that can be filtered via the useFilter hook
- remove setup for commands
@dhis2-bot dhis2-bot temporarily deployed to netlify February 10, 2025 17:09 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify February 13, 2025 10:20 Inactive
* feat: update esc, tab and backspace keydown logic

* feat: override default behaviour for cmd+k shortcut

* fix: input component import

* fix: open apps in same window
@dhis2-bot dhis2-bot temporarily deployed to netlify February 14, 2025 13:56 Inactive
@d-rita d-rita changed the base branch from DHIS2-18943/fix-apps-menu-redirect to feature-command-palette February 14, 2025 14:56
Copy link
Member

@amcgee amcgee left a comment

Choose a reason for hiding this comment

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

LGTM!

@dhis2-bot dhis2-bot temporarily deployed to netlify February 19, 2025 16:29 Inactive
@d-rita d-rita merged commit 1b089e2 into feature-command-palette Feb 24, 2025
18 checks passed
@d-rita d-rita deleted the refactor/modal-navigation branch February 24, 2025 15:12
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.

4 participants