fix(apps/ensadmin): use next/link for client-side navigation in breadcrumbs#1853
fix(apps/ensadmin): use next/link for client-side navigation in breadcrumbs#1853
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughReplaced direct Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
Greptile SummaryThis PR performs a mechanical, consistent improvement across 6 breadcrumb page components in Key changes:
Confidence Score: 5/5Safe to merge — purely mechanical improvement with no logic changes and correct use of the established asChild pattern. All 6 files apply the exact same well-understood pattern. BreadcrumbLink already supports asChild via Radix UI Slot, next/link is the idiomatic Next.js client navigation primitive, and prop-merging works correctly. No P1/P0 findings. No files require special attention. Important Files Changed
Reviews (1): Last reviewed commit: "use next/link for client-side navigation..." | Re-trigger Greptile |
There was a problem hiding this comment.
Pull request overview
Updates ENSAdmin breadcrumb links to use Next.js client-side navigation by composing BreadcrumbLink with next/link via the asChild pattern, avoiding full page reloads when navigating through breadcrumbs.
Changes:
- Add
next/linkto breadcrumb pages. - Replace
<BreadcrumbLink href=...>with<BreadcrumbLink asChild><Link href=... /></BreadcrumbLink>on affected routes.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| apps/ensadmin/src/app/@breadcrumbs/name/page.tsx | Switch breadcrumb “Names” link to next/link via asChild. |
| apps/ensadmin/src/app/@breadcrumbs/mock/relative-time/page.tsx | Switch “UI Mocks” breadcrumb link to next/link via asChild. |
| apps/ensadmin/src/app/@breadcrumbs/mock/registrar-actions/page.tsx | Switch “UI Mocks” breadcrumb link to next/link via asChild. |
| apps/ensadmin/src/app/@breadcrumbs/mock/indexing-stats/page.tsx | Switch “UI Mocks” breadcrumb link to next/link via asChild. |
| apps/ensadmin/src/app/@breadcrumbs/mock/display-identity/page.tsx | Switch “UI Mocks” breadcrumb link to next/link via asChild. |
| apps/ensadmin/src/app/@breadcrumbs/mock/config-info/page.tsx | Switch “UI Mocks” breadcrumb link to next/link via asChild. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
lightwalker-eth
left a comment
There was a problem hiding this comment.
@notrab Looks good. 1 small comment please take the lead to merge when ready 👍
Lite PR
Tip: Review docs on the ENSNode PR process
Summary
BreadcrumbLink href=withnext/linkviaasChildcomposition in all breadcrumb pages for client-side navigation.Why
renders a plain` tag by default, causing full-page reloads on navigation.next/linkwith theasChildpattern enables client-side routing, preserving app state and improving navigation performance.Testing
Notes for Reviewer (Optional)
import Link from "next/link", swap<BreadcrumbLink href={...}>to<BreadcrumbLink asChild><Link href={...}>.Pre-Review Checklist (Blocking)