feat: complete Phase 2 of service refactoring

- Marked tasks in `TODO.md` as completed for moving analytics-related files to the `analytics` directory and correcting imports across the codebase.
- Updated imports in `src/actions/analytics.ts`, `src/actions/metrics.ts`, and various components to reflect the new structure.
- Removed unused `analytics.ts`, `manager-summary.ts`, and `metrics.ts` files to streamline the codebase.
This commit is contained in:
Julien Froidefond
2025-09-23 10:15:13 +02:00
parent f88954bf81
commit ed16e2bb80
16 changed files with 23 additions and 22 deletions

15
TODO.md
View File

@@ -109,13 +109,14 @@ src/services/
- [x] Corriger 13 imports externes (actions, API routes, pages)
- [x] Corriger 3 imports internes entre services
### Phase 2: Analytics & Métriques
- [ ] **Déplacer `analytics.ts`**`analytics/analytics.ts`
- [ ] Corriger imports dans hooks/components analytics
- [ ] **Déplacer `metrics.ts`**`analytics/metrics.ts`
- [ ] Corriger import dans `actions/metrics.ts`
- [ ] **Déplacer `manager-summary.ts`**`analytics/manager-summary.ts`
- [ ] Corriger imports dans components dashboard
### Phase 2: Analytics & Métriques
- [x] **Déplacer `analytics.ts`**`analytics/analytics.ts`
- [x] Corriger 2 imports externes (actions, components)
- [x] **Déplacer `metrics.ts`**`analytics/metrics.ts`
- [x] Corriger 7 imports externes (actions, hooks, components)
- [x] **Déplacer `manager-summary.ts`**`analytics/manager-summary.ts`
- [x] Corriger 3 imports externes (components, pages)
- [x] Corriger imports database vers ../core/database
### Phase 3: Data Management
- [ ] **Déplacer `backup.ts`**`data-management/backup.ts`