diff --git a/.gitignore b/.gitignore index 75692fe..a620e4b 100644 --- a/.gitignore +++ b/.gitignore @@ -40,3 +40,5 @@ yarn-error.log* # typescript *.tsbuildinfo next-env.d.ts + +certificates \ No newline at end of file diff --git a/BUGS.md b/BUGS.md index 5f43e16..e6f0b58 100644 --- a/BUGS.md +++ b/BUGS.md @@ -1,34 +1,17 @@ # Bugs & problèmes connus — visitapp-web -## Sections — données non récupérées +## Bugs fixés — suivi / actions restantes -> **Fix appliqué** : le backend retourne un JSON plat (toutes les DTOs héritent de SectionDTO), -> mais le TypeScript attendait une structure imbriquée (`section.map.points` etc.). -> `normalizeSectionDTO()` dans `client.ts` restructure la réponse. À valider en prod. +- [x] **manager-app — Sauvegarde section Event (500)** — `StartDate`/`EndDate` stockés comme `DateTime.MinValue` (0001-01-01), renvoyés à Flutter qui les convertissait en UTC année 0000, rejeté par Newtonsoft.Json. Fix : dates rendues nullable dans `SectionEvent` + `SectionEventDTO`, désérialisation tolérante, sanitisation côté Flutter dans `event_config.dart`. + - **⚠️ Migration encore à faire** : `dotnet ef migrations add MakeEventDatesNullable` dans `manager-service` -- [x] **Section Carte** — fix normalization + `CategorieDTO.label` (était `name`) -- [x] **Section Slider** — fix normalization -- [x] **Section Menu** — fix normalization (récursif pour les sous-sections) -- [x] **Section Quiz** — fix normalization -- [x] **Section Agenda** — fix normalization -- [x] **Section Météo** — fix normalization +## À implémenter plus tard -## Affichage +- [ ] **Section Event** — page de détail à créer dans visitapp-web (type `SectionType.Event`). Dispatcher par type dans `sections/[sectionId]/page.tsx` à brancher. Voir l'équivalent Flutter dans `mymuseum-visitapp`. -- [x] **Section Agenda — visuel des cartes** — liste horizontale minimaliste remplacée par une grille 2 colonnes avec image pleine largeur + badge date (calquée sur Flutter `event_list_item.dart`) -- [x] **Section PDF** — remplacé `