Skip to content

feat: route @lumyx/ui links through LumyxLinkProvider - #3

Open
FrekiManagarm wants to merge 1 commit into
mainfrom
feat/lumyx-link-provider
Open

FrekiManagarm wants to merge 1 commit into
mainfrom
feat/lumyx-link-provider

Conversation

@FrekiManagarm

Copy link
Copy Markdown
Contributor

Summary

@lumyx/ui no longer imports next/link or next/navigation (lumyx-dev/ui#1). The dashboard now passes them in through LumyxLinkProvider, so the sidebar keeps client-side navigation and highlights the active item.

  • Wrap DashboardChrome in LumyxLinkProvider with Next's Link and usePathname().
  • Fix the sidebar footer, which still said "MIT licensed": the dashboard is AGPL-3.0.

Test plan

  • bun install picks up the current @lumyx/ui main
  • bun run lint, bun run check-types, bun run verify:ds, bun run build
  • Sidebar links navigate client-side and the active item follows the route

@lumyx/ui 0.2.0 no longer imports next/link or next/navigation. Pass
them in from the chrome so the sidebar keeps client-side navigation and
its active item. Also fix the sidebar footer, which still said MIT.
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