b913a2bf90
Refs gitea:Adriano/AI-OS#310 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
14 lines
561 B
Markdown
14 lines
561 B
Markdown
### Task 9: Toggle "Mostra tag" — report
|
|
|
|
Status: fatto.
|
|
|
|
- Creato `src/pages/api/admin/showtags.ts` (POST, 403 se ruolo non superuser/admin, set/delete cookie `showtags`).
|
|
- Aggiornato `src/components/Header.astro`: `showTags` destrutturato dalle props, pulsante con `data-on` e testo dinamico, script che legge `dataset.on` e fa POST + reload.
|
|
|
|
Build: `npm run build` OK (nessun errore).
|
|
Test: `npm test` → 13 file, 64 test, tutti verdi.
|
|
|
|
Commit: 8423716 — "feat(showtags): endpoint cookie + toggle nel menu utente" (2 file, +34/-2).
|
|
|
|
Concern: nessuno.
|