refactor: rename files to PascalCase components and kebab-case APIs (Task 4.4)

- Rename all component files to PascalCase matching exported names
- Move components into feature directories (git/, session/, project/, terminal/, workspace/, ui/, layout/)
- Rename all page files to PascalCase with Page suffix
- Rename all API files to kebab-case
- Update all imports across codebase with corrected relative depths
- Preserve git history via git mv

Quality gates: tsc (pass), eslint (pass), 66/74 tests pass (8 pre-existing failures)
Refs: repo-restructure Task 4.4
This commit is contained in:
Developer
2026-06-02 22:58:10 +00:00
parent 3f5159fb8a
commit e434c439c9
66 changed files with 627 additions and 359 deletions
+4 -36
View File
@@ -1,42 +1,10 @@
# Progress
## Status
In Progress — Tasks 1.1 through 4.3 complete
In Progress
## Completed Tasks
## Tasks
| Task | Description | Status |
|------|-------------|--------|
| 1.1 | Centralize types and extract seed data | ✅ Complete |
| 1.2 | Extract FileBrowser and shared UI primitives | ✅ Complete |
| 2.1 | Extract global styles and tokens | ✅ Complete |
| 2.2 | Extract CSS modules (terminal + git) | ✅ Complete |
| 2.3 | Extract CSS modules (session/settings) + delete styles.css | ✅ Complete |
| 3.1 | Extract shared auth dependencies | ✅ Complete |
| 3.2 | Create Pydantic schemas directory | ✅ Complete |
| 3.3 | Split services/docker.py | ✅ Complete |
| 3.4 | Slim tool_instances router | ✅ Complete |
| 3.5 | Slim git_repositories and config_profiles routers | ✅ Complete |
| 4.1 | Split tool-workshop page into tabs | ✅ Complete |
| 4.2 | Extract sessions page components | ✅ Complete |
| 4.3 | Extract dashboard and workspace components | ✅ Complete |
## Files Changed
## Remaining Tasks
| Task | Description |
|------|-------------|
| 4.4 | Rename all files to naming convention |
| 5.1 | Add tests for extracted components |
| 5.2 | Documentation and cleanup |
## Key Metrics
- `styles.css`: 2,844 lines → DELETED
- `tool_instances.py`: 1,412 → 284 lines (-80%)
- `git_repositories.py`: 1,050 → 276 lines (-74%)
- `config_profiles.py`: 765 → 299 lines (-61%)
- `dashboard.tsx`: 480 → 110 lines (-77%)
- `tool-types.tsx`: 409 → 135 lines (-67%)
- `tool-configs.tsx`: 391 → 178 lines (-54%)
- `tool-workshop.tsx`: 700 → 77 lines (-89%)
- `sessions.tsx`: 668 → 156 lines (-77%)
## Notes