-
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
[Discover] Custom grid toolbar #166744
[Discover] Custom grid toolbar #166744
Conversation
…sign-grid-toolbar
Pinging @elastic/kibana-data-discovery (Team:DataDiscovery) |
yes, about the counter, this is one of the next steps and included in: #167427 |
@kertal Oh when I said "counter" I was referring to the counters inside the buttons like |
I think this would work! I prefer |
@jughosta Where do these buttons go on small screens? I can't seem to find them Update: It seems like we don't show those buttons on small screens already so not something introduced by this PR. |
} | ||
|
||
.dscGridToolbar .euiTabs { | ||
transform: translateY(9px); |
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.
Reduce to 8px and use EUI variable.
transform: translateY(9px); | |
transform: translateY($euiSize); |
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.
@andreadelrio If we change to 8 then the blue border would be further from the gray border:
9px
seems to be working better to align both tabs borders visually.
… as well as other touchups
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.
The latest changes look great! And I like the look of bringing the tabs into the table header, although I was personally more of a fan of the borderless version tbh. I think going with borderless tabs could help us get closer to the mockups by replacing the histogram resize handle with a solid border, and it wouldn't look busy with too many borders IMO.
I pulled the branch and made some changes to show what I was thinking, and also opened a PR here with the changes if we like them: jughosta#7. @andreadelrio wdyt?
And the same screenshot before the changes for reference:
Also the shortened "Selected" label looks better to me as well. @amyjtechwriter does it seem fine for us to shorten this button label from "Selected documents" to "Selected" for extra space in the UI? A screenshot for reference:
packages/kbn-unified-data-table/src/components/data_table_document_selection.tsx
Show resolved
Hide resolved
Thanks @davismcphee, this looks very nice! When we remove the resizable icon and add a line it makes a lot of sense to get rid of the line below the tabs. I've put your branch with our mocks side by side and my only comment is: can we add a bit more space between the toolbar and the table's headings? I'm thinking something between 4px and 8px should do it. |
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.
@andreadelrio great! In that case we should be good to merge my changes into this branch and include them with this PR.
And sure we can add some extra padding below the toolbar. I tried it out with both 4px and 8px and I'm happy with either, so whichever you prefer works for me.
Thanks for providing the screenshots! Let's go with 4px. |
Replace resize handle with border, and small UI touchups
# Conflicts: # packages/kbn-unified-data-table/src/components/data_table.tsx # src/plugins/discover/public/application/main/components/layout/discover_documents.tsx # test/functional/apps/discover/group3/index.ts
…sign-grid-toolbar
💚 Build Succeeded
Metrics [docs]Module Count
Public APIs missing comments
Async chunks
History
To update your PR or re-run it, just comment with: cc @jughosta |
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.
Did one final round of testing after the latest changes, and it's still working well! This a great improvement that brings us very close to our mockups, and especially improves the look and usability of the saved search embeddable. Awesome work, LGTM 👍
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.
Amazing job on this team! LGTM.
Summary
This PR customizes the grid toolbar for Discover. The controls will have the "ToolbarButton" look.
Checklist