-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Uptime] Update breadcrumb generator for monitor -> overview. #49428
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
[Uptime] Update breadcrumb generator for monitor -> overview. #49428
Conversation
|
Pinging @elastic/uptime (Team:uptime) |
💚 Build Succeeded |
| name: string, | ||
| search?: string, | ||
| basepath?: string | ||
| ): ChromeBreadcrumb[] => [makeOverviewBreadcrumb(search, basepath), { text: name }]; |
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.
does it make sense to have href for monitor page breadcrumb as well?
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.
Well I think at this time that the monitor page can only be a "leaf" in the navigation, so if you're on a monitor page there's nowhere further down to drill. We could add an href but as far as I understand it, we'd only link people back to the page they're already on.
|
|
||
| const makeOverviewBreadcrumb = (search?: string): ChromeBreadcrumb => ({ | ||
| const makeOverviewBreadcrumb = (search?: string, basepath?: string): ChromeBreadcrumb => ({ | ||
| text: i18n.translate('xpack.uptime.breadcrumbs.overviewBreadcrumbText', { |
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.
Can you please follow camelCase for basePath?
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.
Please check 87c6572 for the update.
|
@elasticmachine merge upstream |
💚 Build Succeeded |
…kibana into uptime_overview-breadcrumb
💚 Build Succeeded |
|
@elasticmachine merge upstream |
💚 Build Succeeded |
|
@elasticmachine merge upstream |
💚 Build Succeeded |
|
Closing this in favor of #50095. |
Summary
Resolves #49391.
Updates the breadcrumb generator in the Uptime app to more accurately reflect the destination of someone returning to the Uptime home page.
Testing
Also be sure to test with base paths.
Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.For maintainers