Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@GabrielBianconi
Copy link
Member

@GabrielBianconi GabrielBianconi commented Dec 11, 2025

We need to refactor this whole breadcrumb thing later, it's bad.


Important

Fixes breadcrumb link bug by adding noLink property to control link generation in use-breadcrumbs.ts.

  • Behavior:
    • Fixes breadcrumb link generation in useBreadcrumbs() in use-breadcrumbs.ts by adding a check for noLink property.
    • Breadcrumbs with noLink: true do not generate a link, even if they are the last segment.
  • Routes:
    • Updates Datapoints breadcrumb in layout.tsx to use noLink: true.
  • Types:
    • Adds noLink property to CrumbItem interface in breadcrumbs.ts.

This description was created by Ellipsis for d05c7e6. You can customize this summary. It will automatically update as commits are pushed.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a breadcrumb link bug by adding support for routes that have no index page. It introduces a noLink flag to prevent generating invalid links for breadcrumbs when the route only serves as a layout container without its own content page.

  • Adds a noLink optional property to the CrumbItem interface
  • Updates breadcrumb link generation logic to respect the noLink flag
  • Applies the fix to the Datapoints route which has no index page

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
ui/app/types/breadcrumbs.ts Adds optional noLink property to CrumbItem interface
ui/app/hooks/use-breadcrumbs.ts Updates link generation logic to skip creating links when noLink is true
ui/app/routes/datapoints/layout.tsx Marks "Datapoints" breadcrumb as non-linkable since there's no index route

Copy link
Member

@shuyangli shuyangli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

jesus

@GabrielBianconi GabrielBianconi added this pull request to the merge queue Dec 11, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Dec 11, 2025
@GabrielBianconi GabrielBianconi added this pull request to the merge queue Dec 11, 2025
Merged via the queue into main with commit e25f9b2 Dec 11, 2025
61 checks passed
@GabrielBianconi GabrielBianconi deleted the gb/fix-breadcrumb branch December 11, 2025 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants