Skip to content

chore: admin folder structure#8632

Merged
sriramveeraghanta merged 3 commits intopreviewfrom
chore-admin-folder-structure
Feb 13, 2026
Merged

chore: admin folder structure#8632
sriramveeraghanta merged 3 commits intopreviewfrom
chore-admin-folder-structure

Conversation

@sriramveeraghanta
Copy link
Member

@sriramveeraghanta sriramveeraghanta commented Feb 13, 2026

Description

  • Update the admin app folder structure to remove ce and ee folder split.

Type of Change

  • Code refactoring

Summary by CodeRabbit

  • Chores
    • Refactored internal code structure and module organization
    • Simplified TypeScript path mappings for improved maintainability
    • Consolidated store architecture for better code organization

Copilot AI review requested due to automatic review settings February 13, 2026 10:47
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 13, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

This PR refactors the store architecture by converting CoreRootStore from an abstract class to a concrete RootStore, removing the CE-specific root store subclass, simplifying tsconfig path mappings, and updating all dependent stores to reference the new unified RootStore type.

Changes

Cohort / File(s) Summary
Store Architecture & Root Store Refactoring
apps/admin/store/root.store.ts, apps/admin/ce/store/root.store.ts, apps/admin/ee/store/root.store.ts, apps/admin/providers/store.provider.tsx
Renames abstract CoreRootStore to concrete RootStore, removes CE-specific root store implementation and its re-export shim, updates provider to use relative import path for the new unified root store.
Store Dependencies
apps/admin/store/instance.store.ts, apps/admin/store/theme.store.ts, apps/admin/store/user.store.ts, apps/admin/store/workspace.store.ts
Updates all dependent stores to use RootStore instead of CoreRootStore in constructor parameters and type imports.
Import Path Consolidation
apps/admin/app/(all)/(dashboard)/layout.tsx, apps/admin/app/(all)/(home)/sign-in-form.tsx, apps/admin/components/common/header/index.tsx, apps/admin/components/instance/setup-form.tsx
Reorganizes import paths: some converted from absolute aliases to relative paths, others updated to use consolidated alias mappings.
Configuration
apps/admin/tsconfig.json
Simplifies TS path mappings by removing multiple specific aliases (@/app/*, @/plane-admin/*, @/ce/*, @/styles/*) and consolidating to a single @/*./* mapping.
File Headers
apps/api/plane/utils/csv_utils.py
Adds copyright notice and SPDX license header; no runtime logic changes.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 The stores reshape, from abstract to real,
No more CE subclasses—one store to feel!
Paths consolidate, imports align,
With tsconfig trimmed, the config's so fine! ✨

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore-admin-folder-structure

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@sriramveeraghanta sriramveeraghanta merged commit dfce8c6 into preview Feb 13, 2026
10 of 11 checks passed
@sriramveeraghanta sriramveeraghanta deleted the chore-admin-folder-structure branch February 13, 2026 10:59
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.

3 participants