refactor: Admin index — replace emoji buttons with Phosphor SVG icons, add back buttons + row click navigation, minimal JS, move export DB to Exporter modal, color stats, bulk bar anti-shift, credits reorder, tags icons

This commit is contained in:
Pontoporeia
2026-05-09 19:11:42 +02:00
parent dc3191f458
commit 7711557d08
19 changed files with 708 additions and 372 deletions

38
TODO.md
View File

@@ -14,3 +14,41 @@
- [x] Fix: format-extras not appearing — moved #format-extras-block inside Fichiers fieldset (after annexes), uses hx-select to extract from response
- [x] Remove duration_pages, duration_minutes, file_size_info entirely (form, schema, DB, views, controllers, tests, CSV export, email)
- [x] Rename cc4r → cc2r everywhere (DB column, schema, PHP code) to fix pre-existing naming inconsistency
- [x] Merge Publication fieldset's is_published checkbox into Backoffice fieldset
- [x] Fix: PHP parse error in admin/index.php — `''` escape in single-quoted string not valid in PHP 8.5
- [x] Add explanation hint to is_published checkbox
- [x] Admin index: use AP code instead of full name in list and filter dropdown
- [x] Admin index: remove pagination, show all theses in table
- [x] Admin index: HTMX column sorting (click header → reload table via HTMX)
- [x] Admin index: prevent action buttons from stacking vertically
- [x] Admin index: compact icon-only buttons (SVG) with tooltips replacing text labels
- [x] Admin index: reduce status badge font size
- [x] Admin index: change Voir icon to spectacles/circles SVG
- [x] Admin index: split Statut column into Publié and Accès
- [x] Admin index: tighten table cell padding to --space-3xs
- [x] Admin index: remove main padding, add padding to .admin-list-toolbar and #admin-table-wrap
- [x] Admin index: remove subtitles from Titre column
- [x] Admin index: add alternating row background colors
- [x] Admin index: remove #admin-table-container wrapper element, use #admin-table-wrap
- [x] Admin index: rearrange toolbar — stats beside title, buttons in single row, search inline with selects on right
- [x] Admin index: fix toolbar search inputs vertical stacking (add flex-direction: row)
- [x] Admin index: stats as fieldsets with legend labels (Total/Publiés/Attente), centered content
- [x] Admin index: remove horizontal padding from toolbar and table-wrap (keep bottom padding only)
- [x] Admin index: make Filtrer/Réinitialiser buttons same size as inputs (add btn--sm)
- [x] Admin index: rename Importer un CSV → Importer, merge Export CSV + Export fichiers → Exporter modal with checkboxes
- [x] Create unified /admin/actions/export.php endpoint with ?csv=1&files=1&db=1 support
- [x] Admin index: move export DB from parametres into exporter modal
- [x] Admin index: color stats — green for Publiés, yellow for Attente
- [x] Remove export-db fieldset and dialog from parametres.php
- [x] Replace large JS script in admin index with minimal version (8 lines vs ~70)
- [x] Bulk actions: form wraps all checkboxes, no dynamic DOM building in JS
- [x] Replace emoji/text buttons in acces.php/acces-etudiante.php with Phosphor SVG icon buttons
- [x] Replace text button in contenus.php with pencil SVG icon button
- [x] Add Phosphor Icons credit to about page
- [x] Add back-to-list arrow button to add/edit/recapitulatif/contenus-edit/tags page titles, make bigger (32px)
- [x] Remove Voir button from admin index — row click navigates to recapitulatif
- [x] Add hover highlight on clickable table rows
- [x] AP column no-wrap, N/A values greyed
- [x] Tags page: back button, admin-main--list, no padding, icon buttons, #admin-table-wrap
- [x] Move #bulk-actions into fixed-height #bulk-meta-bar at top, prevent layout shift
- [x] Credits: move Iconographie below Typographies