refactor: reorganize component imports and update file structure for …#23
Conversation
…better modularity - Moved shared components to a dedicated 'shared' directory. - Updated import paths in various dashboard layout files to reflect the new structure. - Refactored calendar, chats, dashboard, mail, payment transactions, and settings pages to use the new import paths. - Introduced new components for sidebar and header layout, enhancing the overall UI structure.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @itsnyein's task in 3m 23s —— View job Code Review: refactor: reorganize component imports and update file structure for better modularitySummaryThis PR is a well-scoped structural refactoring that correctly moves layout components to Critical Issues1. Accidental deletion of
|
… refactor/folder-structure
|
Claude finished @itsnyein's task in 2m 54s —— View job Code Review: refactor: reorganize component imports and update file structure for better modularitySummaryThis is a well-executed structural refactoring: 143 import paths updated correctly, feature data collocated under Note: The previous review flagged Medium Issues1. Relative imports in
|
- Replace relative ./elements/ imports in ai-chat.tsx with @/features/ai-chat/components/elements/ - Replace relative ../ui/ imports in components/layout/ with @/components/ui/ - Remove stale comment and multi-line docstrings in features/calendar/data.ts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Claude finished @itsnyein's task in 3m 0s —— View job Code Review: refactor: reorganize component imports and update file structure for better modularitySummaryWell-executed structural refactoring: 143 import paths updated correctly with no dangling references, feature data collocated under Note: The import changes in Medium Issues1. Mixed import style in
|
…stubs - Replace relative ./nav-group, ./nav-user, ./team-switcher imports in app-sidebar.tsx with @/components/layout/ aliases - Remove console.log placeholder statements and stale comments from use-calendar.ts - Remove self-documenting inline comments from features/calendar/data.ts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Extract shared logout logic (state, handler, AlertDialog) into useLogout hook at components/layout/hooks/use-logout.ts - Replace duplicated handleLogout in nav-user.tsx and profile-dropdown.tsx with the hook - Replace unsafe `as Calendar[]` cast in calendar/data.ts with runtime narrowing via CALENDAR_TYPES guard; same for event.type field - Replace placeholder href="#" links in profile-dropdown with /settings/account and /settings Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…Lint Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Claude finished @itsnyein's task in 2m 42s —— View job Code Review: refactor: reorganize component imports and update file structure for better modularitySummaryThis is a well-executed structural refactoring that correctly moves 145 files into their canonical locations, updates all import paths without leaving dangling references, and ships the Medium Issues1. Import declarations after const variables in
|
…ix billing route - Hoist JSON imports above const declarations to fix import/first violation - Route Billing item to /settings/billing instead of duplicating /settings Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Claude finished @itsnyein's task in 2m 5s —— View job Code Review: refactor: reorganize component imports and update file structure for better modularitySummaryThis synchronization addresses several items from prior reviews: import ordering in Medium Issues1. Billing links to
|
…lint config - Create app/(dashboard)/settings/billing/page.tsx so /settings/billing resolves - Implement handleSaveEvent (add/update) and handleDeleteEvent (filter) in useCalendar; expose setEvents - Remove project-wide argsIgnorePattern ESLint rule — no longer needed now stubs are implemented - Add // TODO comment to handleNewCalendar stub - Replace relative ./types and ../types imports with @/features/calendar/types alias - Move React import before @/ aliases in app-sidebar.tsx Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Claude finished @itsnyein's task in 3m 19s —— View job Code Review: refactor: reorganize component imports and update file structure for better modularitySummaryThis is a well-executed structural refactoring that has progressively addressed each issue raised in prior reviews: Medium Issues1. Billing link in
|
…better modularity