Repository navigation
Conversation
Delete the old_dashboard app route, all 13 component files, and their 3 unit tests — none were imported by any active code path. Also remove the 'old_dashboard' slug from the reserved-segments lists in proxy.ts and reserved-root-segments.ts, and drop the stale etta-panel mock from the authenticated-app-shell test. Co-Authored-By: AgenticDiego <noreply@carvallo.io>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📝 TLDR
Remove 15 orphaned source files and 3 stale test files in
old_dashboard/that are no longer imported anywhere in the active codebase.📝 Description
During a daily product improvement review, an audit identified two directories —
src/app/old_dashboard/andsrc/components/old_dashboard/— that are fully orphaned: no active page, component, or route imports from them. They represent an earlier iteration of the wedding website editor that was superseded by the currentwebsite/manager and Etta AI panel.Leaving dead code in place adds maintenance surface without benefit: it confuses contributors, inflates the codebase by ~1,700 lines, and the 3 unit tests for deleted components were running on every CI pass.
This Change
src/app/old_dashboard/layout.tsxandpage.tsx(the orphaned route)src/components/old_dashboard/(~62 KB)tests/unit/components/old_dashboard/that tested the deleted componentsjest.mock('@/components/old_dashboard/etta-panel', ...)fromtests/unit/components/layout/authenticated-app-shell.test.tsx'old_dashboard'fromRESERVED_ROOT_SEGMENTSinsrc/proxy.ts(no longer a live route to protect)'old_dashboard'fromRESERVED_WEBSITE_ROOT_SEGMENTSinsrc/lib/website/reserved-root-segments.tsJira Ticket(s): N/A — daily product improvement task
Daily Product Improvement
Summary
Removed 18 orphaned files (
old_dashboardapp route, 13 components, 3 tests) and cleaned up two reserved-slug lists and one stale mock, reducing the codebase by ~1,700 lines with zero functional impact.Recommendations Reviewed
Area:
src/app/old_dashboard/,src/components/old_dashboard/Issue: 15 source files fully unreferenced by any active code path. Running 3 unit tests against deleted components on every CI pass.
Recommendation: Delete both directories and their associated tests; clean up slug reservations.
Type: Frontend cleanup | Priority: Medium | Effort: Small
Area:
src/app/(authenicated)/settings/Issue: No
loading.tsxskeleton for the settings page, which makes two API calls at load time. Users may see a blank layout momentarily.Recommendation: Add a settings-page skeleton matching the card/form layout.
Type: UX/UI | Priority: Medium | Effort: Small
Area:
src/components/forms/event-form.tsx,question-form.tsx,delete-confirmation.tsxIssue: 5 occurrences of
text-pink-200/bg-pink-100hardcoded in active form processing/disabled states, inconsistent with the design token system being standardised across the codebase.Recommendation: Replace with appropriate semantic tokens (e.g.
text-muted-foreground,bg-muted).Type: Frontend cleanup | Priority: Medium | Effort: Small
Area:
src/components/vendor/vendor-status-select.tsxIssue: Three vendor status badge variants use hardcoded
yellow-,blue-,orange-Tailwind colors instead of design tokens, inconsistent with the in-progress token migration.Recommendation: Map to semantic tokens or CSS custom properties once the token palette is extended.
Type: Frontend cleanup | Priority: Low | Effort: Small
Area:
package.jsonIssue:
next-auth@^4.24.13is listed alongsidebetter-auth@^1.5.6. May be a migration artifact. If unused, it adds install weight and an unnecessary audit surface.Recommendation: Verify
next-authusage with a codebase grep and remove if truly unused.Type: Backend cleanup | Priority: Low | Effort: Small
Selected Improvement
Deleted the
old_dashboarddead code (18 files total across source + tests).Why This Was Selected
The orphaned directories were fully confirmed dead — zero imports outside themselves in the entire
src/andtests/tree. The cleanup is zero-risk, immediately verifiable by running the full test suite, and removes ~1,700 lines that were silently taxing CI and confusing contributors. It is the cleanest possible targeted improvement: bounded, complete, and instantly reviewable.Changes Made
src/app/old_dashboard/(2 files)src/components/old_dashboard/(13 files)tests/unit/components/old_dashboard/(3 files)jest.mockforold_dashboard/etta-panelinauthenticated-app-shell.test.tsx'old_dashboard'entry fromRESERVED_ROOT_SEGMENTSinsrc/proxy.ts'old_dashboard'entry fromRESERVED_WEBSITE_ROOT_SEGMENTSinsrc/lib/website/reserved-root-segments.tsFiles Changed
src/app/old_dashboard/layout.tsx— deletedsrc/app/old_dashboard/page.tsx— deletedsrc/components/old_dashboard/*.tsxand*.ts(13 files) — deletedtests/unit/components/old_dashboard/(3 test files) — deletedtests/unit/components/layout/authenticated-app-shell.test.tsx— stale mock removedsrc/proxy.ts—'old_dashboard'removed fromRESERVED_ROOT_SEGMENTSsrc/lib/website/reserved-root-segments.ts—'old_dashboard'removed fromRESERVED_WEBSITE_ROOT_SEGMENTSVerification
old_dashboardanywhere insrc/ortests/before and after deletionbiome lint— 0 errors, 17 pre-existing warnings (unchanged)Future Recommendations
Settings page loading skeleton
Priority: Medium | Effort: Small | Not included: different scope from dead-code removal, suits its own focused PR | Should become GitHub issue: No
Fix
text-pink-200/bg-pink-100in active form componentsPriority: Medium | Effort: Small | Not included: color-token migration is a separate concern | Should become GitHub issue: No
Vendor status badge hardcoded colors
Priority: Low | Effort: Small | Not included: low priority, part of broader token migration | Should become GitHub issue: No
Audit and remove
next-authdependency if unusedPriority: Low | Effort: Small | Not included: needs investigation before removal | Should become GitHub issue: No
GitHub Issues Created or Proposed
No GitHub issues created. All unimplemented recommendations are small, low-risk, and well-suited for future daily improvement runs without needing separate issue tracking.
Generated by Claude Code