Review the component structure of this codebase and help me reorganize it following component library best practices.
Goals:
- Identify components that should be reusable patterns (layout/styling only, content via props)
- Identify components that are feature components (complex, stateful, business logic)
- Identify unused/orphaned components that can be deleted
- Identify duplicate patterns across page-specific components
Proposed Structure:
/ui - Primitives (button, input, card, etc.)
/patterns - Reusable layout patterns (heroes, section headers, grids, CTAs)
/features - Complex interactive components (forms, calculators, dialogs)
/[page] - Page-specific sections that compose patterns + features
Process:
- Explore the current component structure
- Identify patterns - Find repeated layouts across page-specific folders
- Check usage - Before migrating, verify components are actually used
- Create patterns - Extract common layouts into parameterized components
- Migrate - Update page components to use patterns
- Cleanup - Delete unused/orphaned components
Key Principles:
- Patterns should be content-agnostic (receive content via props)
- Feature components with business logic stay unique
- Don't lose functionality when consolidating
- Check if components are actually used before migrating
Exclude from review:
- [Add folders to exclude, e.g., unused or design you do not want to clean up]