38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
TRASH EXPLORER - RÉSUMÉ TECHNIQUE (≤200 mots)
|
|
|
|
PROBLÈME:
|
|
Section Trash affichait une liste vide (items fantômes, badges "0").
|
|
Clic sur dossier trash ne chargeait pas les notes dans Notes-liste.
|
|
|
|
ROOT CAUSE:
|
|
1. TrashExplorerComponent.onFolderClick() ne propageait PAS l'événement folderSelected
|
|
2. Bouton accordion Trash émettait incorrectement '.trash' au toggle
|
|
|
|
CORRECTIFS:
|
|
[src/app/layout/sidebar/trash/trash-explorer.component.ts:91-94]
|
|
- Ajout: this.folderSelected.emit(folder.path) dans onFolderClick()
|
|
|
|
[src/app/features/sidebar/nimbus-sidebar.component.ts:90]
|
|
- Retrait: folderSelected.emit('.trash') du bouton accordion
|
|
|
|
FLUX CORRIGÉ:
|
|
Clic dossier → TrashExplorer émet path → NimbusSidebar propage → AppShellNimbus
|
|
définit folderFilter → NotesListComponent filtre notes → affichage
|
|
|
|
ARCHITECTURE VALIDÉE:
|
|
✅ VaultService.buildTrashTree() construit arborescence correctement
|
|
✅ calculateTrashFolderCounts() calcule badges récursifs
|
|
✅ .trash exclu de Folders via sortAndCleanFolderChildren()
|
|
✅ NotesListComponent.filtered() compatible chemins trash
|
|
✅ Backend /api/vault charge .trash sans filtrage
|
|
|
|
TESTS:
|
|
- 4 fichiers test créés dans vault/.trash/
|
|
- Backend + frontend lancés (ports 4000, 3001)
|
|
- Checklist complète: docs/TRASH_ACCEPTANCE_CHECKLIST.md
|
|
- Détails: docs/TRASH_FIX_SUMMARY.md
|
|
|
|
RÉSULTAT:
|
|
Trash affiche arborescence réelle, clic charge notes, badges corrects, .trash absent
|
|
de Folders, dark mode OK, empty-state géré.
|