Skip to content

Conversation

@justinkambic
Copy link
Contributor

@justinkambic justinkambic commented Oct 25, 2019

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

  1. Configure several Heartbeat monitors and navigate to the Uptime app in Kibana
  2. Go to the Overview page
  3. Navigate to the Monitor page for one of your monitors
  4. Use the breadcrumb to navigate back. The path should reflect the home page.

Also be sure to test with base paths.

Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@justinkambic justinkambic added bug Fixes for quality problems that affect the customer experience release_note:fix v8.0.0 Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.5.0 v7.6.0 labels Oct 25, 2019
@justinkambic justinkambic self-assigned this Oct 25, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@justinkambic justinkambic changed the title Update breadcrumb generator for monitor -> overview. [Uptime] Update breadcrumb generator for monitor -> overview. Oct 27, 2019
name: string,
search?: string,
basepath?: string
): ChromeBreadcrumb[] => [makeOverviewBreadcrumb(search, basepath), { text: name }];
Copy link
Contributor

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?

Copy link
Contributor Author

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', {
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@justinkambic justinkambic requested a review from andrewvc October 29, 2019 20:21
@justinkambic
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@justinkambic
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@justinkambic
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@justinkambic
Copy link
Contributor Author

Closing this in favor of #50095.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience release_note:fix Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v7.5.0 v7.6.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Uptime] Breadcrumb composition on monitor page is creating bad links

3 participants