chore: admin folder structure#8632
Conversation
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis PR refactors the store architecture by converting Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This pull request restructures the admin app folder organization by removing the CE (Community Edition) and EE (Enterprise Edition) folder split, consolidating all code into a unified structure. This is a code refactoring effort that simplifies the codebase architecture by eliminating the previous multi-tier folder hierarchy (ce/ee folders) and moving files directly to the root level of the admin app.
Changes:
- Updated TypeScript path aliases in tsconfig.json from multiple specific paths (@/ce/, @/plane-admin/, etc.) to a single simplified alias (@/*)
- Migrated store files (instance, user, workspace, theme) from nested folder structure to root-level store directory
- Removed abstract CoreRootStore class and consolidated into a single RootStore class
- Moved provider components, hooks, components, and helper utilities to root-level directories
- Deleted ce/ and ee/ folders after migrating their contents
Reviewed changes
Copilot reviewed 11 out of 61 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| apps/admin/tsconfig.json | Simplified path aliases from multiple specific mappings to single @/* alias |
| apps/admin/store/root.store.ts | Changed from abstract CoreRootStore to concrete RootStore class |
| apps/admin/store/theme.store.ts | Updated import to use RootStore instead of CoreRootStore |
| apps/admin/store/instance.store.ts | New file migrated from ce/core folder with instance management logic |
| apps/admin/store/user.store.ts | New file migrated from ce/core folder with user management logic |
| apps/admin/store/workspace.store.ts | New file migrated from ce/core folder with workspace management logic |
| apps/admin/providers/*.tsx | New provider files migrated to root-level providers directory |
| apps/admin/hooks/store/*.tsx | New hook files for accessing store contexts |
| apps/admin/hooks/oauth/*.tsx | New authentication mode hooks and configuration |
| apps/admin/hooks/use-sidebar-menu/*.ts | New sidebar menu hook implementation |
| apps/admin/components/common/*.tsx | Common UI components migrated to root-level |
| apps/admin/components/instance/*.tsx | Instance setup and management components |
| apps/admin/components/workspace/*.tsx | Workspace list components |
| apps/admin/components/authentication/*.tsx | Authentication configuration components |
| apps/admin/helpers/authentication.ts | Authentication helper functions |
| apps/admin/lib/b-progress/*.tsx | Progress bar component library |
| apps/admin/utils/public-asset.ts | Empty utility file placeholder |
| apps/admin/ce/store/root.store.ts | Deleted CE-specific root store |
| apps/admin/ee/store/root.store.ts | Deleted EE-specific root store |
| apps/admin/components/instance/setup-form.tsx | Updated imports to use new path structure |
| apps/admin/components/common/header/index.tsx | Updated relative import paths |
| apps/admin/app/(all)/(home)/sign-in-form.tsx | Updated import path for FormHeader component |
| apps/admin/app/(all)/(dashboard)/layout.tsx | Updated import path for NewUserPopup component |
| apps/admin/providers/store.provider.tsx | Updated RootStore import to use relative path |
Description
Type of Change
Summary by CodeRabbit