feat: complete daily checkbox actions and cleanup
- Marked all daily checkbox actions as complete in TODO.md. - Removed outdated mutation methods from `daily-client.ts`, now managed by server actions in `actions/daily.ts`. - Deleted unused API routes for checkbox management, streamlining the codebase. - Updated `useDaily.ts` to utilize server actions with `useTransition`, enhancing performance and user experience.
This commit is contained in:
20
TODO.md
20
TODO.md
@@ -176,16 +176,16 @@
|
||||
- [x] **Nettoyage** : Modifier `useTasks.ts` pour remplacer mutations par server actions
|
||||
|
||||
#### Actions Daily (Priorité 2)
|
||||
- [ ] Créer `actions/daily.ts` pour les checkboxes
|
||||
- [ ] `toggleCheckbox(checkboxId)` - Toggle état checkbox
|
||||
- [ ] `addCheckboxToDaily(dailyId, content)` - Ajouter checkbox
|
||||
- [ ] `updateCheckboxContent(checkboxId, content)` - Éditer contenu
|
||||
- [ ] `deleteCheckbox(checkboxId)` - Supprimer checkbox
|
||||
- [ ] `reorderCheckboxes(dailyId, checkboxIds)` - Réorganiser
|
||||
- [ ] Modifier les composants Daily pour utiliser server actions
|
||||
- [ ] **Nettoyage** : Supprimer routes `/api/daily/checkboxes` (POST, PATCH, DELETE)
|
||||
- [ ] **Nettoyage** : Simplifier `daily-client.ts` (garder GET uniquement)
|
||||
- [ ] **Nettoyage** : Modifier composants Daily pour `useTransition`
|
||||
- [x] Créer `actions/daily.ts` pour les checkboxes
|
||||
- [x] `toggleCheckbox(checkboxId)` - Toggle état checkbox
|
||||
- [x] `addCheckboxToDaily(dailyId, content)` - Ajouter checkbox
|
||||
- [x] `updateCheckboxContent(checkboxId, content)` - Éditer contenu
|
||||
- [x] `deleteCheckbox(checkboxId)` - Supprimer checkbox
|
||||
- [x] `reorderCheckboxes(dailyId, checkboxIds)` - Réorganiser
|
||||
- [x] Modifier les composants Daily pour utiliser server actions
|
||||
- [x] **Nettoyage** : Supprimer routes `/api/daily/checkboxes` (POST, PATCH, DELETE)
|
||||
- [x] **Nettoyage** : Simplifier `daily-client.ts` (garder GET uniquement)
|
||||
- [x] **Nettoyage** : Modifier hook `useDaily.ts` pour `useTransition`
|
||||
|
||||
#### Actions User Preferences (Priorité 3)
|
||||
- [x] Créer `actions/preferences.ts` pour les toggles
|
||||
|
||||
Reference in New Issue
Block a user