-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: toolbar UI update (DHIS2-15167) (#368)
* chore: allow styled-jsx in project * chore: move filemenu component to app * chore: stump out toolbar ui components * chore: implement toolbar styles * fix: adjust height to 32 px * fix: ensure flexbox children consume full height * feat: add InterpretationsAndDetailsToggler * feat: add app logo * feat: add update button * feat: add HoverMenuBar * chore: temporarily add analytics files needed by file menu * feat: port file-menu to new hoverable menubar * feat: migrate view-menu * feat: add disabled state to view menu * feat: migrate download menu wip * feat: add menu and menu items WIP * fix: let dropdown render children directly in popper * fix: trigger toggleSubMenu when on items without children so it closes * refactor: intergrate menu and context into a single file * feat: let download menu be clickable or hoverable * feat: implement download menu that can be hovered or clicked * feat: hoverable options menu * chore: cleanup files from old toolbar * chore: remove stray log statement * refactor: organise components for move to analytics * refactor: stop using namespaced components, switch to variable names * chore: remove analytics components and prepare the app for their release * fix: wrap action call in useCallback * fix: adjust import name * chore: upgrade @dhis2/analytics * chore: remove lint rule needed while building analytics components * chore: update .pot file * chore: adjust e2e selectors to updated components * chore: fix table e2e test * chore: appease the linter * chore: align remaining e2e failures * fix: remove unused import * fix: push app name 1px down to improve visual alignment * chore: upgrade @dhis2/analytics to get latest toolbar UI fixes * chore: fix file menu e2e test by closing the menu via a document click * chore: upgrade analytics to have decreased padding * fix: upgrade @dhis2/ui to get consistent menu section header styles * fix: ensure `MenuSectionHeader` is `dense` when in the `HoverMenuBar` --------- Co-authored-by: Jan Henrik Øverland <janhenrik.overland@gmail.com>
- Loading branch information
1 parent
ae83ae8
commit 6c54186
Showing
39 changed files
with
955 additions
and
1,716 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,35 @@ | ||
import { EXTENDED_TIMEOUT } from '../support/util.js' | ||
|
||
export const clickMenubarUpdateButton = () => | ||
cy.getBySel('menubar', EXTENDED_TIMEOUT).contains('Update').click() | ||
cy | ||
.getBySel('dhis2-analytics-toolbar', EXTENDED_TIMEOUT) | ||
.contains('Update') | ||
.click() | ||
|
||
export const clickMenubarViewButton = () => | ||
cy.getBySel('menubar', EXTENDED_TIMEOUT).contains('View').click() | ||
cy | ||
.getBySel('dhis2-analytics-hovermenubar', EXTENDED_TIMEOUT) | ||
.contains('View') | ||
.click() | ||
|
||
export const clickMenubarOptionsButton = () => | ||
cy.getBySel('menubar', EXTENDED_TIMEOUT).contains('Options').click() | ||
cy | ||
.getBySel('dhis2-analytics-hovermenubar', EXTENDED_TIMEOUT) | ||
.contains('Options') | ||
.click() | ||
|
||
export const openStyleOptionsModal = () => { | ||
clickMenubarOptionsButton() | ||
return cy.getBySel('options-menu-list').contains('Style').click() | ||
} | ||
|
||
export const openLegendOptionsModal = () => { | ||
clickMenubarOptionsButton() | ||
return cy.getBySel('options-menu-list').contains('Legend').click() | ||
} | ||
|
||
export const clickMenubarInterpretationsButton = () => | ||
cy.getBySel('menubar', EXTENDED_TIMEOUT).contains('Interpretations').click() | ||
cy | ||
.getBySel('dhis2-analytics-toolbar', EXTENDED_TIMEOUT) | ||
.contains('Interpretations') | ||
.click() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.