mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
- v_theses_full: author_email→contact_interne, author_show_contact→contact_public - Updated schema.sql and live DB view - Renamed all PHP variables: currentAuthorEmail→contactInterne, currentAuthorShowContact→contactPublic - Restored contact_interne backoffice field with proper wiring (takes precedence over mail field) - Updated admin/add.php, admin/edit.php, partage/index.php, public/tfe.php templates
7.4 KiB
7.4 KiB
TODO
- Move default semantic form element styles (checkbox, radio, select) from admin.css/form.css into common.css
- Keep specific layouts/classes in form.css (admin-form grid, checkbox-group layout, etc.)
- Ensure selects, checkboxes, and radios are properly styled globally
- Converge towards the styled form appearance rather than unstyled
- Fix: replace mb_strlen/mb_substr/mb_strtolower with strlen/substr/strtolower (mbstring extension missing on server, caused fatal error on partage submit at ThesisCreateController line 511)
- Fix: annexes checkbox in partage form clears other file inputs — scoped HTMX swap to #annexes-input-block instead of replacing entire #format-fichiers-block
- Fix: website/video/audio inputs should be inline in Fichiers fieldset (not sub-fieldsets) — removed wrappers
- Fix: video/audio show direct upload input when PeerTube disabled — parallel inputs: PeerTube upload when enabled, direct
files[]upload when disabled - Fix: format checkboxes HTMX include missing has_annexes — added it so annexes state preserved across format changes
- Fix: format checkbox toggle clears file inputs — split into two blocks: #format-fichiers-block (stable: TFE/annexes/couverture/note) and #format-extras-block (swappable: website/video/audio extras)
- Fix: remove website label/legend input — website section now shows only URL field
- Fix: format-extras not appearing — moved #format-extras-block inside Fichiers fieldset (after annexes), uses hx-select to extract from response
- Remove duration_pages, duration_minutes, file_size_info entirely (form, schema, DB, views, controllers, tests, CSV export, email)
- Rename cc4r → cc2r everywhere (DB column, schema, PHP code) to fix pre-existing naming inconsistency
- Merge Publication fieldset's is_published checkbox into Backoffice fieldset
- Fix: PHP parse error in admin/index.php —
''escape in single-quoted string not valid in PHP 8.5 - Add explanation hint to is_published checkbox
- Admin index: use AP code instead of full name in list and filter dropdown
- Admin index: remove pagination, show all theses in table
- Admin index: HTMX column sorting (click header → reload table via HTMX)
- Admin index: prevent action buttons from stacking vertically
- Admin index: compact icon-only buttons (SVG) with tooltips replacing text labels
- Admin index: reduce status badge font size
- Admin index: change Voir icon to spectacles/circles SVG
- Admin index: split Statut column into Publié and Accès
- Admin index: tighten table cell padding to --space-3xs
- Admin index: remove main padding, add padding to .admin-list-toolbar and #admin-table-wrap
- Admin index: remove subtitles from Titre column
- Admin index: add alternating row background colors
- Admin index: remove #admin-table-container wrapper element, use #admin-table-wrap
- Admin index: rearrange toolbar — stats beside title, buttons in single row, search inline with selects on right
- Admin index: fix toolbar search inputs vertical stacking (add flex-direction: row)
- Admin index: stats as fieldsets with legend labels (Total/Publiés/Attente), centered content
- Admin index: remove horizontal padding from toolbar and table-wrap (keep bottom padding only)
- Admin index: make Filtrer/Réinitialiser buttons same size as inputs (add btn--sm)
- Admin index: rename Importer un CSV → Importer, merge Export CSV + Export fichiers → Exporter modal with checkboxes
- Create unified /admin/actions/export.php endpoint with ?csv=1&files=1&db=1 support
- Admin index: move export DB from parametres into exporter modal
- Admin index: color stats — green for Publiés, yellow for Attente
- Remove export-db fieldset and dialog from parametres.php
- Replace large JS script in admin index with minimal version (8 lines vs ~70)
- Bulk actions: form wraps all checkboxes, no dynamic DOM building in JS
- Replace emoji/text buttons in acces.php/acces-etudiante.php with Phosphor SVG icon buttons
- Replace text button in contenus.php with pencil SVG icon button
- Add Phosphor Icons credit to about page
- Add back-to-list arrow button to add/edit/recapitulatif/contenus-edit/tags page titles, make bigger (32px)
- Remove Voir button from admin index — row click navigates to recapitulatif
- Add hover highlight on clickable table rows
- AP column no-wrap, N/A values greyed
- Tags page: back button, admin-main--list, no padding, icon buttons, #admin-table-wrap
- Move #bulk-actions into fixed-height #bulk-meta-bar at top, prevent layout shift
- Credits: move Iconographie below Typographies
- Rename Accès étudiant·e → Liens étudiant·e
- Add 'name' column to share_links (schema + migration + model)
- Add edit dialog for share links (edit name, password, expiration)
- Row click opens link in new tab, remove Visiter button
- Add update action to acces-etudiante.php controller
- Add ShareLink::update() method
- Remove admin-bulk-meta__default (count bar), clean up layout
- Fix nested form issue: per-row publish/unpublish buttons now submit correctly
- Fix delete button: stopPropagation prevents row nav on confirm
- CSV import: set is_published=0 by default instead of 1
- Fix AP column wrapping: CSS selector main > table didn't match (table nested in div)
- Admin mobile block screen: fix inline style beating media query, use CSS default display:none instead
- Fix deploy: add missing 023b migration to rename cc4r→cc2r, make run.php skip 'no such column' errors
- Fix FK constraint violation on edit: pass null instead of 0 for absent orientation/ap/finality
- Mots-clés: interactive tag search with HTMX suggestions, pill display, round bin-icon remove buttons
- Mots-clés: lowercase enforcement, deduplication, absolute dropdown, keyboard arrows/enter/escape, blur hide, spacing + counter above input, CSV import lowercased, space-collapse normalization, minimum 3 keywords required
- ErrorHandler: shared static helper for structured error_log + user-friendly messages with precise FK field extraction from SQLite errors. Applied to 12 action files + 6 public controllers + 2 form controllers + partage. Covers FK, UNIQUE, NOT NULL constraint types.
- Fix: findOrCreateAuthor cannot clear email (empty string skips update, leaves old email)
- Fix: "NON" stored as literal email string in authors table (CSV import or old data)
- Fix: contact_interne field in edit form never saved — removed dead field from form and dead validation from create controller
- Fix: formulaire.php unconditionally suppresses display_errors even in dev mode
- Fix: access_type_id radio has no "none" option — added "— Non défini" radio for admin mode
- Fix: radio button checked detection broken (int vs string strict comparison in fieldset-licence-explanation.php)
- Rename author_email → contact_interne in v_theses_full view, controllers, forms, and templates
- Rename author_show_contact → contact_public in v_theses_full view
- Restore contact_interne backoffice field with proper variable name, wire to save (takes precedence over mail)
- Fix: htmlspecialchars(null) crash in old() on admin/add.php and admin/edit.php (null values in form data)
- Fix: jury-fieldset.php old() return type confusion (array vs string) for jury_lecteur:_interne:_externe keys