Skip to content

Complete the Charts and Catalog breadcrumb hierarchy - #1467

Merged
tannerlinsley merged 6 commits into
mainfrom
taren/chart-catalog-breadcrumbs
Nov 1, 2026
Merged

tannerlinsley merged 6 commits into
mainfrom
taren/chart-catalog-breadcrumbs

Conversation

@tannerlinsley

@tannerlinsley tannerlinsley commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

The catalog root now has a Charts / Catalog trail. Collection and example trails reuse those ancestors, completing the chart hierarchy requested in #1151 while preserving search parameters on return links. The same items produce canonical BreadcrumbList data. Root schema is omitted when its loader fails.

The collection prerequisite #1466 is merged. Library landing pages are covered separately in #1468, and documentation coverage is still pending.

Validation: full pnpm test through normal hooks; hierarchy and canonical URL regression tests; installed Router/shared-component SSR, including the actual root head callback on success and not-found. The deployed preview was checked at desktop and 375px for the root and a four-item example trail, with no horizontal overflow, one current breadcrumb, and keyboard navigation preserving the theme query. Preview SSR emits canonical production URLs.

@changeset-bot

changeset-bot Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c70329b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai

coderabbitai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2a6066b5-1176-48ce-8143-c0a164ce5eea
Commits

Reviewing files that changed from the base of the PR and between e10317d and be612af.

Files selected for processing: 5
  • src/components/charts/ChartsCatalogPages.tsx
  • src/routes/_library/charts.catalog.collections.$collectionId.tsx
  • src/routes/_library/charts.catalog.index.tsx
  • src/utils/chart-breadcrumbs.ts
  • tests/chart-breadcrumbs.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

Walkthrough

The charts catalog now displays catalog and collection breadcrumbs. Shared helpers generate breadcrumb trails and JSON-LD for catalog, collection, and chart pages. Catalog and collection routes add breadcrumb JSON-LD to their head when loader data is available.

Changes: Charts catalog breadcrumbs

Layer / File(s) Summary
Breadcrumb trails and structured data
src/utils/chart-breadcrumbs.ts, tests/chart-breadcrumbs.test.ts
Shared helpers define catalog and collection breadcrumb trails and generate JSON-LD with numbered entries and canonical URLs. Tests cover the breadcrumb labels, links, and structured data.
Catalog page and route integration
src/components/charts/ChartsCatalogPages.tsx, src/routes/_library/charts.catalog.index.tsx, src/routes/_library/charts.catalog.collections.$collectionId.tsx
Catalog and collection pages display their breadcrumb trails. Catalog and collection route heads emit serialized breadcrumb JSON-LD when loader data exists.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Possibly related PRs

Merge Risk: Minimal · previous review be612

The catalog hierarchy and structured data can be merged with no new blocking issue identified.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: completing the Charts and Catalog breadcrumb hierarchy.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 2 functions across 5 files.

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

Finishing Touches
Generate docstrings
  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
tanstack-com c70329b Commit Preview URL

Branch Preview URL
Nov 01 2026, 02:58 AM

Base automatically changed from taren/chart-collection-breadcrumbs to main November 1, 2026 02:48
@tannerlinsley
tannerlinsley merged commit 9ef029b into main Nov 1, 2026
8 checks passed
@tannerlinsley
tannerlinsley deleted the taren/chart-catalog-breadcrumbs branch November 1, 2026 03:14
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.

1 participant