Skip to content

Conversation

@denniwang
Copy link
Collaborator

@denniwang denniwang commented Oct 14, 2025

This is what the new frontend folder looks like, primarily moved loose components and css.ts files into ui folder, categorized into atoms, media, molecules, and organisms. no visible performance benefits
NEW
Screenshot 2025-10-14 at 10 40 21 AM

OLD
Screenshot 2025-10-14 at 10 44 36 AM
Screenshot 2025-10-14 at 10 44 46 AM

- Create src/ui/ with atoms, molecules, and media folders
- Move button, link, subtle-button to src/ui/atoms/
- Move card, select, breadcrumbs, carousel to src/ui/molecules/
- Move audio-player to src/ui/media/
- Add barrel exports for easy importing
- Maintain tree-shaking with named exports only
- Create src/features/ with domain-specific folders
- Move auth components to src/features/auth/
- Move comment components/contexts to src/features/comments/
- Move document display components to src/features/documents/
- Move edit features to src/features/editor/
- Move audio editing to src/features/audio-edit/
- Move dashboard components to src/features/dashboard/
- Move glossary to src/features/glossary/
- Add barrel exports for each feature domain
- Maintain separation of concerns and feature boundaries
- Replace original component files with re-export shims
- Maintain existing import paths during migration
- Enable gradual import updates without breaking changes
- All shims point to new feature/ui locations
- TypeScript compilation passes with 0 errors
- Update all page components to import from src/ui for primitives
- Update all feature components to import from src/ui for primitives
- Maintain existing src/components imports for feature-specific components
- Update import paths throughout codebase to use new barrel exports
- All imports now follow consistent patterns:
  - UI primitives: import from 'src/ui'
  - Feature components: import from 'src/components' (for now)
  - Cross-feature: import from 'src/features/<name>'
- Remove all re-export shim files from old component locations
- Update all remaining imports to use new feature/ui structure
- Fix CSS imports to point to correct feature locations
- All imports now use consistent src/features/* and src/ui patterns
- Zero TypeScript compilation errors
- Clean codebase with no temporary migration artifacts
…; introduce layouts/default and update imports across pages; relocate associated css files; fix import paths; typecheck clean
…date all imports and fix related paths; typecheck clean
@netlify
Copy link

netlify bot commented Oct 14, 2025

Deploy Preview for dailp ready!

Name Link
🔨 Latest commit 0740a66
🔍 Latest deploy log https://app.netlify.com/projects/dailp/deploys/68ee6228af0f8800086a0cef
😎 Deploy Preview https://deploy-preview-503--dailp.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.

@denniwang denniwang requested review from GracefulLemming and removed request for GracefulLemming October 14, 2025 14:46
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