# TODO ## Dev / Debug Fixes - [x] Fix `serve` recipe: show all PHP output (errors, logs) except static assets noise - [x] Fix `error_log` path in `formulaire.php` (was relative, now absolute) - [x] Fix CSRF debug: log both tokens on mismatch - [x] Fix undefined `$redirect` on success path in `formulaire.php` ## File Display in Forms & Recaps - [x] Add live file preview to `file-field.php` partial (`data-preview` attribute + `.file-preview-list` container) - [x] Write `file-preview.js` — renders thumbnails for images, emoji icons for PDFs/videos/zips, filename + size - [x] Load `file-preview.js` in `admin/add.php` via `$extraJs` - [x] Load `file-preview.js` in `admin/edit.php` via `$extraJs` - [x] Load `file-preview.js` in `partage/index.php` (self-contained HTML, direct `