# Track Plan: Dashboard Shell Redesign & Core CRUD Cleanup

**Track ID**: `redesign_crud_cleanup_20260311`
**Status**: In Progress

## Phase 1: Scouting & Scaffolding [Skills: Codebase-Investigator] [MCP: FileSystem]
- [ ] [Scout] Analyze `app/(private)/dashboard/layout.tsx` and current sidebar components.
- [ ] [Scout] Analyze `components/ui/` to see available `shadcn/ui` primitives.
- [ ] [Scout] Analyze `actions/catalog.ts` for Product CRUD patterns.
- [ ] [Scaffold] Initialize new `components/dashboard/Sidebar.tsx` and `Header.tsx` skeletons.

## Phase 2: UI Redesign (Uncodixfy) [Skills: Styling-UI-UX, Uncodixfy] [MCP: FileSystem]
- [ ] Implement new **Sidebar** with clean navigation, hover states, and premium aesthetics.
- [ ] Implement new **Header** with breadcrumbs, user menu, and global search.
- [ ] Update `app/(private)/dashboard/layout.tsx` to use the new shell.
- [ ] Verify responsiveness on mobile/desktop.

## Phase 3: Product CRUD Enhancement [Skills: Managing-Server-Actions, Managing-Schemas] [MCP: FileSystem]
- [ ] Update `lib/db/repositories/catalog.repository.ts` to ensure clean, type-safe UUID-based queries.
- [ ] Standardize `actions/catalog.ts` response handling and validation.
- [ ] Improve `components/dashboard/catalog/ProductForm.tsx` (Use `shadcn/ui` and clean Zod patterns).

## Phase 4: Anti-Mocking Verification [Skills: Testing-Code] [MCP: Shell]
- [ ] Create `tests/integration/catalog.repository.test.ts` for Product repository.
- [ ] Create `e2e/product-crud.spec.ts` for full flow verification.
- [ ] Verify 100% test success and zero build/TSC errors.

## Phase 5: Finalization [Skills: Authoring-Git-Commits] [MCP: Shell]
- [ ] Perform a final `pnpm build` and `pnpm lint`.
- [ ] Commit changes with `conductor(checkpoint): Dashboard Redesign & CRUD Improvement`.
