-
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
[Shared UX] Add <NotFound />
prompt
#145598
Conversation
loadImage(); | ||
}, [colorMode]); | ||
|
||
const icon = errorImage ? <EuiImage src={errorImage} alt="" /> : null; |
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 alt
attribute is empty on purpose since the image is decoration, not content.
Hi @afgomez we did this 404 work in the Cloud repo, so you should be able to copy that text. |
Thanks @kellyemurphy! I copied it from the EUI guidelines page. It would make sense to update the text there as well to prevent future confusion. I'll open a ticket later in their repo. |
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.
Where is this design coming from? Has anyone from design approved this?
Hi @majagrubic!
This comes from EUI. It has been implemented in cloud and I have a use case for it in kibana.
I assume so since there are already implementations (unless kibana and cloud follow different design guidelines). |
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.
I am ok with shipping this once the codeowners
file is updated. I will leave it without explicit approval in case @clintandrewhall still has something to add.
After initially speaking with the Shared UX team I spoke with @ryankeairns in our internal #platform-design channel on 2022-09-08 and he confirmed that we should follow the same design as we're using on cloud. |
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.
This is an awesome contribution, thank you!
A few requests:
- consider
shared-ux/prompt/not_found
as the path. - consider
NotFoundPrompt
as the component name.
@clintandrewhall I have addressed all feedback. I have also renamed the plugin name to reflect the new folder name. Let me know if something else is needed |
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Public APIs missing comments
Unknown metric groupsAPI count
ESLint disabled in files
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
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.
Great work. Thanks for your efforts (and patience) on this.
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
## Summary Closes #144366. This PR needs to wait for #145598 to use a shared `<NotFound />` component instead of creating its own. ### How to test - Visit a monitor page with a bogus ID, like `http://<kibana-base-path>/app/synthetics/monitor/i-dont-exist` Before: <img width="1276" alt="Screenshot 2022-11-17 at 15 07 51" src="https://user-images.githubusercontent.com/57448/202469421-3d065d43-740d-4878-9a64-504c711ddcf9.png"> After: <img width="1279" alt="Screenshot 2022-11-17 at 15 06 38" src="https://user-images.githubusercontent.com/57448/202469433-6a6d22e3-8b1a-48f1-9934-f5094b89bac1.png"> Co-authored-by: kibanamachine <[email protected]>
Summary
Creates a shared
<NotFound />
prompt to be used when any given consumer needs to show a 404 error.