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

Open
wants to merge 14 commits into
base: DHIS2-18943/fix-apps-menu-redirect
Choose a base branch
from

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 support for the logout command, making it searchable.

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

- use native dialog element for modal container
- separate modal logic to a useModal hook
- add a constants file for commonly used strings
@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
Copy link

sonarqubecloud bot commented Feb 7, 2025

@dhis2-bot dhis2-bot temporarily deployed to netlify February 7, 2025 11:05 Inactive
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.

2 participants