-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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] Inline shard failures warnings #161271
Conversation
Thanks @andreadelrio! 1
Updated the positioning of the badge: 2
You mean to make it look like the following? Might be not enough contrast. Is there anything else we can use from eui for this case? It's when 3
Yes, they are grouped based on title and warnings content. The ones from the screenshot have the same title but different details inside. 4
This part I didn't touch in the PR. I guess the idea was to bring users attention to the fact that they reached the earliest or the latest document and there is nothing else to load. Would you suggest to change this callout? |
That's legacy. There could be an info icon + the matching color for that callout ... because I don't think this needs to be a kind of warning. |
…-error # Conflicts: # src/plugins/discover/public/embeddable/saved_search_embeddable.tsx # src/plugins/discover/tsconfig.json
Thanks @jughosta for making the updates. 2
Yes. I don't think the border does a lot to improve contrast tbh and no-border is the recommended pattern in EUI. See https://elastic.github.io/eui/#/display/empty-prompt/guidelines 3
Makes sense, thanks 4
Can you update following Matthias' suggestion and send a screenshot? So a callout in color primary. We also need a bit of spacing above this banner (so more spacing below the |
2
Thanks! Based on these guidelines, an icon should be at the top then, no? Should we also update the icon position for Discover error view? Currently it looks like this: 4
Updated the old callout: |
Updated: @davismcphee @andreadelrio It's ready for review. |
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.
Design changes LGTM. Thanks Julia!
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.
Tested locally again and the latest changes LGTM 👍 Thanks for updating the error callout too!
@andreadelrio I've got a theory why the bold was being used, maybe Harry Potter accidentally applied a spell creating a PR to Kibana and used a bolt similar to his scar to claim ownership? |
💚 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 |
* main: (108 commits) [Telemetry Schema Validation] Allow `null` on `string` (elastic#163499) [Search] Add Slack and Gmail connectors (elastic#163321) [ML] Provide hints for empty fields in dropdown options in Anomaly detection & Transform creation wizards, Change point detection view (elastic#163371) chore(slo): Add response required fields (elastic#163430) [AO] Fix add_to_case functional test (elastic#163155) unskip license type functional test (elastic#163199) fix(NA): yarn env vars for node_modules mirrors (elastic#163549) [Response Ops][Task Manager] Expose SLI metrics in HTTP API (elastic#162178) [Logs UI] Adapt test to ES highlighting changes and unskip (elastic#163592) [Infra UI] Implement Telemetry on 'Show' buttons within Inventory (elastic#163587) [Enterprise Search]Migrate all usages of EuiPage*_Deprecated (elastic#163482) fix(slo): settings and access for serverless (elastic#163514) [Infra UI] Implement telemetry for the asset details flyout (elastic#163078) [Fleet] Add a banner to the top of the Kafka Output UI to say that Elastic Defend integration is not supported (elastic#163579) [Fleet] Re-enable and fix Fleet policy secret integration tests (elastic#163428) [Fleet] add managed to imported saved object (elastic#163526) [Index Management] Disable index actions using contextRef (elastic#163475) [Discover] Inline shard failures warnings (elastic#161271) [Security Solution][Detection engine] skips geo_point non-ecs validation (elastic#163487) Update EUI layout components in bfetch example plugin (elastic#163490) ...
Summary
This PR replaces shard falures toasts with inline warnings in Discover.
Discover view with shard failures
Discover view with shard failures (and no results)
Dashboard view with shard failures
Surrounding documents view with shard failures
Discover view with timeouts
Dashboard view with timeouts
Surrounding documents view with timeouts
Testing
For testing please uncomment
kibana/src/plugins/data/common/search/search_source/search_source.ts
Line 922 in 3f102cf
kibana/src/plugins/data/common/search/search_source/search_source.ts
Line 547 in 3f102cf
kibana*
data view.Checklist
Delete any items that are not applicable to this PR.