Skip to content

feat: breadcrumbs and prev/next navigation on API pages#58

Merged
rsbh merged 1 commit into
mainfrom
feat/api-breadcrumbs-nav
May 13, 2026
Merged

feat: breadcrumbs and prev/next navigation on API pages#58
rsbh merged 1 commit into
mainfrom
feat/api-breadcrumbs-nav

Conversation

@rsbh
Copy link
Copy Markdown
Member

@rsbh rsbh commented May 13, 2026

Summary

  • Enable breadcrumbs on API pages using the API page tree (tag group > endpoint name)
  • Compute prev/next endpoints from flattened API tree for arrow button navigation
  • Arrow buttons navigate between API endpoints within the spec

Test plan

  • Navigate to API endpoint page — breadcrumbs show (e.g., "Project > List projects")
  • Click left/right arrows — navigates to adjacent endpoints
  • First endpoint has disabled prev, last has disabled next
  • Docs pages breadcrumbs and nav still work unchanged

🤖 Generated with Claude Code

- Show breadcrumbs on API routes using the API page tree
- Compute prev/next from flattened API tree for arrow navigation
- Prev/next buttons navigate between API endpoints within the spec

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
chronicle Ready Ready Preview, Comment May 13, 2026 4:18am

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 13, 2026

Warning

Rate limit exceeded

@rsbh has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 52 minutes and 50 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: e87b2bfa-d5d7-440a-be15-3f4a5d0b253b

📥 Commits

Reviewing files that changed from the base of the PR and between 4b4857e and 67a204d.

📒 Files selected for processing (1)
  • packages/chronicle/src/themes/default/Layout.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/api-breadcrumbs-nav

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

Comment @coderabbitai help to get the list of available commands and usage tips.

);
}

function getApiPrevNext(pathname: string, tree: Root): { prev: { url: string; title: string } | null; next: { url: string; title: string } | null } {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

do we need a type here?

@rsbh rsbh merged commit 7ab1885 into main May 13, 2026
4 checks passed
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.

2 participants