Add drag and drop sorting for slides
CI / Deploy / test (push) Successful in 43s
CI / Deploy / deploy (push) Skipped

Slides can be reordered on the dashboard by dragging the handle (mouse,
touch and pen via Pointer Events) or with the arrow keys on the focused
handle. The new order is posted as ids[] to slides/reorder, which only
applies a complete, valid order of the poll's own slides. The up/down
buttons stay as no-JS fallback.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-07 14:44:10 +01:00
1 parent 50010484be
commit 9983d6c01b
8 files changed
+301 -8

No files matched your search

+2 -2
View File
@@ -55,7 +55,7 @@ src/
HomeController Startseite, Anlegen (/create), Bestätigung, Join, Recover
AdminAppController Basis für /admin/{token}: löst Poll über Token-Hash auf (404 sonst), setzt Privacy-Header
AdminController Dashboard, Settings, Present, State-JSON, Control, QR, CSV-Export, Token rotieren, Löschen
SlidesController Folien-CRUD, Sortieren, Antworten zurücksetzen
SlidesController Folien-CRUD, Sortieren (↑/↓ und Drag & Drop via `reorder`, JSON), Antworten zurücksetzen
ParticipateController /p/{code}: Ansicht, State-JSON, Abstimmen; anonymes Cookie plenario_pid
Mailer/ PollMailer (adminLink, recovery), Transport/FileTransport (lokal)
Model/ Polls → Slides → SlideOptions, Slides → Responses
@@ -66,7 +66,7 @@ src/
ThrottleService Rate-Limit pro IP (Cache 'throttle')
templates/ Deutsche UI, Layouts: default, present (Vollbild, dunkel), error, email
webroot/css/plenario.css Eigenes CSS, kein Framework
webroot/js/plenario.js Vanilla JS: Polling, Ergebnis-Rendering, Presenter-Steuerung
webroot/js/plenario.js Vanilla JS: Polling, Ergebnis-Rendering, Presenter-Steuerung, Folien-Sortierung (Pointer Events + Pfeiltasten)
tests/ PHPUnit; PlenarioTestTrait erzeugt Testdaten, Fixtures sind leer
```