-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Updates to K7 nav drawer and EUI to 9.4.0 #32864
Conversation
💔 Build Failed |
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.
So nice to see cleanup inside Kibana 😄
I had a couple suggestions around the code before I take a look in the browser.
src/legacy/ui/public/chrome/directives/header_global_nav/components/header.tsx
Outdated
Show resolved
Hide resolved
src/legacy/ui/public/chrome/directives/header_global_nav/components/header.tsx
Outdated
Show resolved
Hide resolved
src/legacy/ui/public/chrome/directives/header_global_nav/components/header.tsx
Outdated
Show resolved
Hide resolved
src/legacy/ui/public/chrome/directives/header_global_nav/components/header.tsx
Outdated
Show resolved
Hide resolved
src/legacy/ui/public/chrome/directives/header_global_nav/components/header.tsx
Outdated
Show resolved
Hide resolved
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
6e1259b
to
284bded
Compare
💔 Build Failed |
💔 Build Failed |
Can you update from master? The new EUI version is causing a SASS compile issue that was fixed in Kibana when 9.2.1 went it. |
💔 Build Failed |
- Removing aria-label if the same as label since the `EuiNavDrawerGroup` takes care of that - Truncating any recent items to just 64 characters and applying the `title` attribute to display the whole label.
Also comments out some logos that don’t exist that were throwing console errors
09df6f6
to
390dcaa
Compare
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.
Tested for functionality. Works as I'd expect. Saw one small typo.
src/legacy/ui/public/chrome/directives/header_global_nav/components/header.tsx
Outdated
Show resolved
Hide resolved
💔 Build Failed |
Also comments out some logos that don’t exist that were throwing console errors
ea976f4
to
8fcdd66
Compare
💔 Build Failed |
Updated to EUI 9.4.0
💔 Build Failed |
💔 Build Failed |
💚 Build Succeeded |
* update for new eui nav drawer * remove extraAction on flyout * fix mobile menu toggle * add i18n for recently reviewed nav link * progress on updating tests * replace EuiListGroup with EuiNavDrawerGroup * Quick label fixes - Removing aria-label if the same as label since the `EuiNavDrawerGroup` takes care of that - Truncating any recent items to just 64 characters and applying the `title` attribute to display the whole label. * Adding a truncation buffer * fix navDrawerRef * Update to EUI 9.3.0 Also comments out some logos that don’t exist that were throwing console errors * remove unused import * typo fix * One DTS too many in test * …all the small things… * Upgrade plugin dependencies and fix nav drawer test * update for new eui nav drawer * remove extraAction on flyout * fix mobile menu toggle * add i18n for recently reviewed nav link * progress on updating tests * replace EuiListGroup with EuiNavDrawerGroup * Quick label fixes - Removing aria-label if the same as label since the `EuiNavDrawerGroup` takes care of that - Truncating any recent items to just 64 characters and applying the `title` attribute to display the whole label. * Adding a truncation buffer * fix navDrawerRef * Update to EUI 9.3.0 Also comments out some logos that don’t exist that were throwing console errors * remove unused import * typo fix * One DTS too many in test * …all the small things… * Upgrade plugin dependencies and fix nav drawer test * Add support for normal image paths Updated to EUI 9.4.0 * update testing appMenu.clickLink selector * leave appsMenu closed while reading and clicking links * use saveVisualizationExpectSuccess to ensure modal is closed before continuing # Conflicts: # yarn.lock
* update for new eui nav drawer * remove extraAction on flyout * fix mobile menu toggle * add i18n for recently reviewed nav link * progress on updating tests * replace EuiListGroup with EuiNavDrawerGroup * Quick label fixes - Removing aria-label if the same as label since the `EuiNavDrawerGroup` takes care of that - Truncating any recent items to just 64 characters and applying the `title` attribute to display the whole label. * Adding a truncation buffer * fix navDrawerRef * Update to EUI 9.3.0 Also comments out some logos that don’t exist that were throwing console errors * remove unused import * typo fix * One DTS too many in test * …all the small things… * Upgrade plugin dependencies and fix nav drawer test * update for new eui nav drawer * remove extraAction on flyout * fix mobile menu toggle * add i18n for recently reviewed nav link * progress on updating tests * replace EuiListGroup with EuiNavDrawerGroup * Quick label fixes - Removing aria-label if the same as label since the `EuiNavDrawerGroup` takes care of that - Truncating any recent items to just 64 characters and applying the `title` attribute to display the whole label. * Adding a truncation buffer * fix navDrawerRef * Update to EUI 9.3.0 Also comments out some logos that don’t exist that were throwing console errors * remove unused import * typo fix * One DTS too many in test * …all the small things… * Upgrade plugin dependencies and fix nav drawer test * Add support for normal image paths Updated to EUI 9.4.0 * update testing appMenu.clickLink selector * leave appsMenu closed while reading and clicking links * use saveVisualizationExpectSuccess to ensure modal is closed before continuing
Thanks @cchaos and @thompsongl for seeing this through! |
Summary
Updates Kibana to work with the latest version of the
EUINavDrawer
component which incorporates feedback from K7 users and reduces the implementation surface area. Changes include:To-do
data-test-subj
names (see feedback below)app_menu.ts
. They previously relied upon an expanded:collapsed flag that is now baked into EuiNavDrawer. I'm adding adata-test-subj
to theEuiNavDrawer
expand button.ref
; this is needed to reference the toggleOpen function that lives in EuiNavDrawer)Preview
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers