Skip to content

Remove stale root-level files; make Sidebar self-contained via usePathname()#4

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/system-enhancements-review
Draft

Remove stale root-level files; make Sidebar self-contained via usePathname()#4
Copilot wants to merge 2 commits into
mainfrom
copilot/system-enhancements-review

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 22, 2026

18 duplicate/outdated files at the project root were polluting the TypeScript surface and creating confusion about which files are canonical. The Sidebar required every page to manually thread its own route path through AppShell down to the nav.

Changes

  • Deleted 18 stale root-level files (sidebar.tsx, store.ts, validators.ts, demo-db.json, app-shell.tsx, etc.) — all older copies of files now living under components/, lib/, app/, and data/

  • Sidebar"use client" with usePathname() — active nav item is now derived from the live URL instead of a hardcoded prop:

// Before: every page had to declare its own route
<AppShell pathname="/dashboard" title="Dashboard" ...>

// After: Sidebar reads the route itself, no prop needed
<AppShell title="Dashboard" ...>
  • Removed pathname prop from AppShell and all 11 page components

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 22, 2026

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

Project Deployment Actions Updated (UTC)
agent-empire Error Error Mar 22, 2026 3:23am

@netlify
Copy link
Copy Markdown

netlify Bot commented Mar 22, 2026

Deploy Preview for personalcommandcenter ready!

Name Link
🔨 Latest commit df75eb4
🔍 Latest deploy log https://app.netlify.com/projects/personalcommandcenter/deploys/69bf60985360e00008cb4d32
😎 Deploy Preview https://deploy-preview-4--personalcommandcenter.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI changed the title [WIP] Review system after recent enhancements Remove stale root-level files; make Sidebar self-contained via usePathname() Mar 22, 2026
Copilot AI requested a review from saifsoub March 22, 2026 03:23
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