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

[App Search] Implement initial Engine routing/navigation #82549

Merged
merged 6 commits into from
Nov 5, 2020

Conversation

cee-chen
Copy link
Contributor

@cee-chen cee-chen commented Nov 4, 2020

Summary

This PR adds the engine sub-nav & routing to App Search, based on Davey's initial Figma mocks (there is some deviation and re-ordering from ent-search as a note.)

It adds two dummy "routes" (Engine Overview and Analytics), mostly to confirm that routing and breadcrumbs work. There are still a lot of TODOs in the code (mostly around EngineLogic).

I recommend following along by commit if possible.

Screencaps

screencap

Checklist

@cee-chen cee-chen added Feature:Plugins release_note:skip Skip the PR/issue when compiling release notes v7.11.0 labels Nov 4, 2020
@cee-chen cee-chen requested review from JasonStoltz and a team November 4, 2020 00:36
Comment on lines +12 to +14
export const ENGINES_TITLE = i18n.translate('xpack.enterpriseSearch.appSearch.engines.title', {
defaultMessage: 'Engines',
});
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This definitely probably doesn't belong in this file but I plan on moving it/DRYing out more i18n const's in a follow up PR here shortly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Follow up cleanup PR after this: cee-chen/kibana@engine-nav...consts-refactor

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

@kbn/optimizer bundle module count

id before after diff
enterpriseSearch 438 450 +12

async chunks size

id before after diff
enterpriseSearch 650.8KB 664.4KB +13.6KB

distributable file count

id before after diff
default 42719 42720 +1

History

  • 💚 Build #85715 succeeded 45736aacd65b679ce4cf65e395dd92ff3c464143

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Member

@JasonStoltz JasonStoltz left a comment

Choose a reason for hiding this comment

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

Great work, this LGTM.

@cee-chen cee-chen merged commit 074ef6f into elastic:master Nov 5, 2020
@cee-chen cee-chen deleted the engine-nav branch November 5, 2020 17:51
cee-chen pushed a commit that referenced this pull request Nov 5, 2020
…2758)

* [Setup] Update routes + role privileges

Routes: use generatePath to better match ent-search
Roles: We're using "Search UI" in the nav copy now, so we should update our vars accordingly

* Add new EngineNav and EngineRouter components

* Update existing components to use new EngineRouter/EngineNav

* Add App Search engine label & new SideNavItem component

* Add EngineRouter breadcrumbs

* [Refactor] DRY out i18n constants
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Plugins release_note:skip Skip the PR/issue when compiling release notes v7.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants