-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
[Discover] Improve document explorer flyout #120116
[Discover] Improve document explorer flyout #120116
Conversation
src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.tsx
Outdated
Show resolved
Hide resolved
…-document-explorer-sidebar # Conflicts: # src/plugins/discover/public/services/doc_views/components/doc_viewer_table/legacy/table.test.tsx # src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.tsx # src/plugins/discover/public/services/doc_views/doc_views_types.ts
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
@dmitriynj I've been trying to get this running locally to review but no luck so far. Can you please post an image of how this menu looks when a field has been pinned and the user clicks on the menu? |
@elasticmachine merge upstream |
also the |
@andreadelrio @dmitriynj I like grouping of the actions, but I don't like the current icon - it feels like something is still loading and we're waiting on results. any chance we can choose a different icon? |
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.
src/plugins/discover/public/services/doc_views/components/doc_viewer_table/table.tsx
Outdated
Show resolved
Hide resolved
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
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.
While testing I noticed a strange behavior in Firefox: Pinning of field seems doesn't seem to be persisted? In Chrome and Safari it works great.
Screen.Recording.2021-12-20.at.12.27.50.PM.mp4
BTW: I'd suggest setting the title to [Discover] Improve document explorer flyout
and mention the performance improvements when having a large field number + search + pinning in the description.
this was returned and decoded as a string, that's why updating didn't work. I guess the implementation of the storage changed during the implementation? that's why it didn't work with 'legacy' stored value? |
@elasticmachine merge upstream |
1 similar comment
@elasticmachine merge upstream |
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.
LGTM, tested again, works as expected, even with invalid data in localStorage, great work 👍
Now you're Discover Claus this year, distributing this nice 🎁
Honored to be your reindeer!
💛 Build succeeded, but was flaky
Test Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsasync chunk count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @dmitriynj |
* [Discover] add initial table improvements * [Discover] add pinned fields implementation * [Discover] simplify the code, fix functional test, fix pagination * [Discover] fix mobile view * [Discover] fix unit tests * [Discover] fix interaction with local storage * [Discover] apply suggestions * [Discover] change field name * [Discover] do not show pinned fields on single doc view page * [Discover] apply suggestions * [Discover] adjust typings * [Discover] update by comments * [Discover] fix search text * [Discover] add validation for pinned fields Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
Closes #104339
This PR improves UI for document explorer and single doc view and adds:
Previous state of pinned fields will be persisted per each data view. On single document view pinned fields will not be displayed. Previous search text and page size setting will also be persisted.
From performance perspective, with this changes described above now it's much faster to navigate through a large number of fields using search, pagination. Pinned fields always visible on the top of the table.
Checklist