-
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
[Synthetics UI] Render a 404 error if a monitor doesn't exist #145569
Conversation
Pinging @elastic/uptime (Team:uptime) |
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.
if (colorMode === 'DARK') { | ||
const { default: imgSrc } = await import(`./assets/404_astronaut_dark.png`); | ||
setImageSrc(imgSrc); | ||
} else { | ||
const { default: imgSrc } = await import(`./assets/404_astronaut_light.png`); | ||
setImageSrc(imgSrc); | ||
} |
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.
@elastic/kibana-global-experience Kibana's optimizer needs static paths in all import statements so I need to deduplicate this.
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.
shared-ux changes look good
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Unknown metric groupsasync chunk count
ESLint disabled in files
ESLint disabled line counts
miscellaneous assets size
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: |
Summary
Closes #144366.
This PR needs to wait for #145598 to use a shared
<NotFound />
component instead of creating its own.How to test
http://<kibana-base-path>/app/synthetics/monitor/i-dont-exist
Before:
After: