Improve Discover table preview usability. #9798
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
Goals
Caveats
☠️ I need to look through the source and make sure my changes don't adversely affect the UI anywhere else.
Screenshots
Before
After
Comments from UI Review
Highlighting
Searching for a value, e.g.
MX
, should pull the matching highlighted property to the beginning of the list, so the user doesn't need to scroll to it.Performance
_source
fields to be displayed. This will aid scanning for the things they are interested in.Reporting
Test it and make sure the PDF looks correct.
Scrolling
It's a big usability boost if the horizontal scroll is locked for all the documents, so you can scroll them together.
Performance test
I tested this with documents that have 2000 fields each. The initial load and render is slower (to be expected) but actual performance when scrolling vertically and horizontally seems fine. However, locking the horizontal scroll on all items will be tricky to implement. It's not immediately clear where is the best place to implement that. So for now, I've removed horizontal scrolling and truncated the content instead.