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

Updates to K7 nav drawer and EUI to 9.4.0 #32864

Merged
merged 36 commits into from
Mar 14, 2019

Conversation

ryankeairns
Copy link
Contributor

@ryankeairns ryankeairns commented Mar 10, 2019

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:

  • removes hover-to-expand interaction
  • only one menu is open at a time - either the main menu or the flyout sub menu
  • new fixed bottom for toggling open the side nav
  • nav is collapsed by default with new tooltips that appear on hover to see app name
  • menus are closed by clicking outside
  • removes pre-animation delays; speeds up the few remaining animations
  • menu and flyout now scroll separately

To-do

  • i18n for 'Recently viewed' button label and flyout title (tried using EuiI18n to no avail)
  • change data-test-subj names (see feedback below)
  • fix tests in app_menu.ts. They previously relied upon an expanded:collapsed flag that is now baked into EuiNavDrawer. I'm adding a data-test-subj to the EuiNavDrawer expand button.
  • build errors (mostly related to use of a ref; this is needed to reference the toggleOpen function that lives in EuiNavDrawer)

Preview

nd

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@ryankeairns ryankeairns requested review from snide and cchaos March 10, 2019 22:20
@elasticmachine
Copy link
Contributor

💔 Build Failed

Copy link
Contributor

@cchaos cchaos left a 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.

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@ryankeairns ryankeairns marked this pull request as ready for review March 11, 2019 17:51
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💔 Build Failed

@cchaos
Copy link
Contributor

cchaos commented Mar 12, 2019

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.

@cchaos
Copy link
Contributor

cchaos commented Mar 12, 2019

Pushed a quick fix in case recent item names are very long so that this:
Screen Shot 2019-03-11 at 22 44 24 PM

now renders as:
Screen Shot 2019-03-11 at 22 55 48 PM

@elasticmachine
Copy link
Contributor

💔 Build Failed

ryankeairns and others added 10 commits March 12, 2019 16:26
- 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
@cchaos cchaos force-pushed the rk/k7-nav-update branch from 09df6f6 to 390dcaa Compare March 12, 2019 20:47
@cchaos cchaos changed the title Updates to K7 nav drawer Updates to K7 nav drawer and EUI to 9.3.0 Mar 12, 2019
Copy link
Contributor

@snide snide left a 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.

@elasticmachine
Copy link
Contributor

💔 Build Failed

@cchaos cchaos force-pushed the rk/k7-nav-update branch from ea976f4 to 8fcdd66 Compare March 13, 2019 21:58
@elasticmachine
Copy link
Contributor

💔 Build Failed

@cchaos cchaos changed the title Updates to K7 nav drawer and EUI to 9.3.0 Updates to K7 nav drawer and EUI to 9.4.0 Mar 13, 2019
@elasticmachine
Copy link
Contributor

💔 Build Failed

@cchaos cchaos self-requested a review March 14, 2019 15:27
@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@cchaos cchaos merged commit e9885e2 into elastic:master Mar 14, 2019
@cchaos cchaos added the release_note:skip Skip the PR/issue when compiling release notes label Mar 14, 2019
cchaos pushed a commit to cchaos/kibana that referenced this pull request Mar 14, 2019
* 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
snide pushed a commit to snide/kibana that referenced this pull request Mar 14, 2019
* 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
snide added a commit that referenced this pull request Mar 15, 2019
Adds EUI bigfixes and backports the nav changes and dark mode changes. And includes backports for #32864 and #32728.
@ryankeairns
Copy link
Contributor Author

Thanks @cchaos and @thompsongl for seeing this through!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes v7.0.0 v7.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants