-
Notifications
You must be signed in to change notification settings - Fork 12
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: toolbar UI update with hoverable menu #1478
Conversation
eba691a
to
f3791b6
Compare
src/components/FileMenu/FileMenu.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The diff for this file looks more impressive than the changes I actually made. The component now make use of the new hover menu functionality, so it doesn't need to have an internal open-state, render a layer etc. Due to the removal of the Layer/Popper/etc the JSX nesting changed significantly and this is causing the diff to look big.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've switched to using @testing-library/react
because I was running into issues when opening poppers with enzyme. I also prefer this lib to Enzyme in general, but that's not why I started using it here.
273669e
to
c9a5e73
Compare
# [25.2.0](v25.1.22...v25.2.0) (2023-06-19) ### Features * toolbar UI update with hoverable menu ([#1478](#1478)) ([5526163](5526163))
This reverts commit 5526163.
This reverts commit 5526163.
BREAKING CHANGE The `FileMenu` is now using the new `HoverMenuBar` components which makes this version of the `FileMenu` incompatible with the previous version. Apps will be need to update their toolbar and file menu before using this version of analytics.
BREAKING CHANGE The `FileMenu` is now using the new `HoverMenuBar` components which makes this version of the `FileMenu` incompatible with the previous version. Apps will be need to update their toolbar and file menu before using this version of analytics.
BREAKING CHANGE The `FileMenu` is now using the new `HoverMenuBar` components which makes this version of the `FileMenu` incompatible with the previous version. Apps will be need to update their toolbar and file menu before using this version of analytics.
BREAKING CHANGE: The `FileMenu` is now using the new `HoverMenuBar` components which makes this version of the `FileMenu` incompatible with the previous version. Apps will be need to update their toolbar and file menu before using this version of analytics.
# [26.0.0](v25.2.3...v26.0.0) (2023-06-20) ### Features * toolbar UI update with hoverable menu ([#1478](#1478)) ([#1509](#1509)) ([0a51153](0a51153)) ### BREAKING CHANGES * The `FileMenu` is now using the new `HoverMenuBar` components which makes this version of the `FileMenu` incompatible with the previous version. Apps will be need to update their toolbar and file menu before using this version of analytics.
Implements DHIS2-15167
Relates to dhis2/line-listing-app#368 & dhis2/data-visualizer-app#2358
Key features
Toolbar
andToolbarSidebar
components to build the toolbar layoutHoverMenubar
and related components to build hoverable menu within the toolbarUpdateButton
andInterpretationsAndDetailsToggler
to be placed in the toolbarFileMenu
to be a hoverable dropdown menu, leveraging the new hover-menu-bar components.initiallyActiveTabKey
toVisualizationOptions
component so it can be opened at a specified tab.BREAKING CHANGE
The updated
FileMenu
is not compatible with the previous version. Apps will be required to update their toolbar before using this version of analytics.TODO
Screenshots
Not the most glamorous screenshot, but it works.