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

feat: view mode dashboards-bar design changes [DHIS2-18441] #3155

Open
wants to merge 106 commits into
base: master
Choose a base branch
from

Conversation

HendrikThePendric
Copy link
Contributor

@HendrikThePendric HendrikThePendric commented Nov 26, 2024

Implements DHIS2-18441 according to design doc


Key features

  1. New design
  2. New navigation menu
  3. New keyboard navigation

Description

Implements the new design according to the design doc


TODO

  • KFMT
  • Add e2e test for error state, i.e. dashboard items request returning a 500
  • [POTENTIALLY] Changes to the dashboard-item-grid

Known issues

  • Keyboard navigation inconsistencies: this PR includes a major version bump in @dhis2/ui which comes with some accessibility improvements including arrow-key keyboard navigation for menus. The navigation- and more-actions-menu in the new dashboards-bar are using these. But the filter-menu is using a custom menu-list and this can be used by keyboard by using the tab-key. This inconsistency will be tackled in a separate PR, see DHIS2-18537.

Screenshots

Screenshot 2024-12-10 at 16 55 19

@dhis2-bot
Copy link
Contributor

dhis2-bot commented Nov 26, 2024

🚀 Deployed on https://pr-3155.dashboard.netlify.dhis2.org

@dhis2-bot dhis2-bot temporarily deployed to netlify November 26, 2024 15:24 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 26, 2024 15:59 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 26, 2024 16:03 Inactive
@HendrikThePendric HendrikThePendric marked this pull request as draft November 26, 2024 16:27
@dhis2-bot dhis2-bot temporarily deployed to netlify November 26, 2024 16:49 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 28, 2024 08:59 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 28, 2024 11:24 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 28, 2024 14:36 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 28, 2024 14:56 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 28, 2024 15:00 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 28, 2024 15:33 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 28, 2024 15:37 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 28, 2024 15:45 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 28, 2024 16:17 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 28, 2024 16:21 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 28, 2024 16:27 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 28, 2024 21:35 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 28, 2024 21:49 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify December 2, 2024 16:44 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify December 2, 2024 16:50 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify December 3, 2024 11:49 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify December 3, 2024 14:53 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify December 3, 2024 16:42 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify December 10, 2024 15:47 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify December 10, 2024 15:55 Inactive
@HendrikThePendric HendrikThePendric changed the title feat: view mode dashboards-bar design changes feat: view mode dashboards-bar design changes [DHIS2-18441] Dec 10, 2024
@HendrikThePendric HendrikThePendric marked this pull request as ready for review December 10, 2024 16:10
@dhis2-bot dhis2-bot temporarily deployed to netlify December 11, 2024 10:03 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify December 11, 2024 10:49 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify December 11, 2024 15:28 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify December 11, 2024 16:02 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify December 12, 2024 10:14 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify December 12, 2024 13:12 Inactive
Copy link

sonarcloud bot commented Dec 12, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
14 New issues
11 New Code Smells (required ≤ 0)
3 New Bugs (required ≤ 0)
D Reliability Rating on New Code (required ≥ A)
1 New Critical Issues (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@dhis2-bot dhis2-bot temporarily deployed to netlify December 12, 2024 13:15 Inactive
@@ -47,6 +47,10 @@ const CategorizedMenuGroup = ({
onChangeItemsLimit(type)
}

const showHideMoreLabel = seeMore
Copy link
Collaborator

Choose a reason for hiding this comment

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

showFewerMoreLabel is a more accurate name

}, [url])

return (
<span
Copy link
Collaborator

Choose a reason for hiding this comment

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

Was this change to get rid of the invalid html warning?

const getFilterValuesText = (values) =>
values.length === 1
? values[0].name
: i18n.t('{{count}} selected', { count: values.length })
Copy link
Collaborator

@jenniferarnesen jenniferarnesen Dec 13, 2024

Choose a reason for hiding this comment

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

I wonder if we should handle plurals here, even though singular and plural are the same in this case in English. Might it be different in other languages?

@@ -10,6 +10,10 @@ export const acSetDashboardsFilter = (value) => ({
value,
})

/* TODO: Possibly this action can be removed if we keep a an input
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we go ahead with this?

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.

5 participants