Commit Graph
76 Commits
Author SHA1 Message Date
gnilebeinandClaude Sonnet 5.5 d6432911ed Add "Keine Angabe" to scales and an "Enthaltung" shortcut for choice slides
CI / Deploy / PHP 8.5 (push) Successful in 1m38s
CI / Deploy / PHP 8.4 (push) Successful in 1m39s
CI / Deploy / test (push) Successful in 2s
CI / Deploy / deploy (push) Skipped
Scales and star ratings get an optional "Keine Angabe" answer (setting
allow_skip). It counts as taking part but stays out of the average and
the distribution; the number is shown separately on stage, in the
evaluation and in the PDF. The choice form gets a button that appends an
"Enthaltung" option.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 12:39:44 +01:00
gnilebeinandClaude Sonnet 5.5 27771e7470 Add an optional countdown to every slide that collects answers
CI / Deploy / PHP 8.4 (push) Successful in 1m18s
CI / Deploy / PHP 8.5 (push) Successful in 1m29s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped
Choice, word cloud, open question, scale and ordering slides get a time
limit like the quiz. With a limit the slide waits ("ready") showing only
the question; next starts the countdown, the next one ends it, the third
moves on. Stage results and the ordering solution are withheld until the
countdown has started. The countdown music plays during any countdown.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 12:18:33 +01:00
gnilebeinandClaude Sonnet 5.5 2f7a401522 Add countdown audio per presentation
CI / Deploy / PHP 8.4 (push) Failing after 1m18s
CI / Deploy / PHP 8.5 (push) Failing after 2m4s
CI / Deploy / test (push) Failing after 1s
CI / Deploy / deploy (push) Skipped
One audio file per poll (MP3, M4A, OGG, WAV) is uploaded in the admin
settings and looped in the presenter view while a quiz runs. Format is
detected by magic bytes, files are served with a fixed content type,
copied with the poll and swept by images_cleanup.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 11:36:01 +01:00
gnilebein cad09163d9 Merge pull request 'Close an open ordering slide on "next" before moving on' (#116) from fix/order-next-reveals into main
CI / Deploy / PHP 8.4 (push) Successful in 1m14s
CI / Deploy / PHP 8.5 (push) Successful in 1m22s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Successful in 7s
Reviewed-on: #116
2026-11-21 09:24:32 +01:00
gnilebeinandClaude Sonnet 5.5 7fd4a0da8c Close an open ordering slide on "next" before moving on
CI / Deploy / PHP 8.4 (push) Successful in 1m15s
CI / Deploy / PHP 8.5 (push) Successful in 1m28s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped
Forward in the presenter view now reveals the solution first (like the
quiz build steps) instead of skipping straight to the next slide.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-21 09:21:54 +01:00
gnilebeinandClaude Sonnet 5.5 bd57f23be6 Add admin menu drawer and poll cloning, drop participant screen tools
CI / Deploy / PHP 8.5 (push) Successful in 1m51s
CI / Deploy / PHP 8.4 (push) Successful in 1m51s
CI / Deploy / test (push) Successful in 2s
CI / Deploy / deploy (push) Skipped
- Remove fullscreen and wake lock buttons from the participant view.
- Turn the admin sidebar into a drawer below 900px, opened from a header
  menu button next to the theme switch (progressive enhancement).
- Add "Umfrage kopieren": clone a poll with all slides, options and images
  but without responses, with its own join code and admin link.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-20 10:57:33 +01:00
gnilebeinandClaude Sonnet 5.5 bb2d1443cf Remove the "voting open" checkbox from the slide form
CI / Deploy / PHP 8.5 (push) Successful in 1m16s
CI / Deploy / PHP 8.4 (push) Successful in 1m19s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped
is_voting_open is presenter state (SlideControlService), so the form
never takes it over anymore, for all slide types instead of only quiz
and Q&A. New slides start open (quiz closed), as before.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 14:21:29 +01:00
gnilebeinandClaude Sonnet 5.5 83c76d72ec Rename "personal ranking" to "own assessment" in the UI
The label now says what participants do (sort by their own assessment,
e.g. by importance) instead of using the vague term "Rangfolge".

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 14:21:28 +01:00
gnilebeinandClaude Sonnet 5.5 c6a92e347f Redesign the image section of the slide form
Show a dropzone (with drag and drop) while a slide has no image and a
row with preview, replace and remove buttons otherwise. A newly chosen
file is previewed right away. Placement is picked from tiles with a
small sketch instead of long radio labels, technical details move into
a collapsible help. The section gets full-width dividers, and the modal
a slim scrollbar.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 14:21:27 +01:00
gnilebeinandClaude Sonnet 5.5 0aac113f30 Add personal ranking mode to order slides and show image placement only with an image
CI / Deploy / PHP 8.4 (push) Failing after 1m28s
CI / Deploy / PHP 8.5 (push) Failing after 1m31s
CI / Deploy / test (push) Failing after 2s
CI / Deploy / deploy (push) Skipped
Order slides get a "ranking" setting without a correct solution: the stage shows
the live average ranking, participants only get a confirmation. The image
placement question in the slide form is only shown for an existing image or a
chosen file.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 09:15:49 +01:00
gnilebeinandClaude Sonnet 5.5 66ed198f87 Add a speaker view with a next-slide preview and keep the live slide in view
CI / Deploy / PHP 8.4 (push) Successful in 1m11s
CI / Deploy / PHP 8.5 (push) Successful in 1m13s
CI / Deploy / test (push) Successful in 2s
CI / Deploy / deploy (push) Skipped
- New /admin/{token}/speaker page for a second window: current slide, preview of
  the next slide and the usual controls. It does not start the presentation.
- The presenter state gets `next` (labels only, no solutions).
- The dashboard scrolls the live slide into view when the presenter moves on.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 15:43:49 +01:00
gnilebeinandClaude Sonnet 5.5 82b352c053 Use the logo as favicon
CI / Deploy / PHP 8.5 (push) Successful in 1m5s
CI / Deploy / PHP 8.4 (push) Successful in 1m11s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped
favicon.svg, favicon.ico (16/32/48) and apple-touch-icon.png, generated
from the same geometry as .brand__mark (resources/favicon/generate.php).
Linked from all layouts via one element.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 14:02:21 +01:00
gnilebeinandClaude Sonnet 5.5 4caff47a09 Drop the image description field
CI / Deploy / PHP 8.5 (push) Successful in 1m24s
CI / Deploy / PHP 8.4 (push) Successful in 1m27s
CI / Deploy / test (push) Successful in 2s
CI / Deploy / deploy (push) Skipped
Slide images are shown on the presenter's screen, so a description for
screen readers is not asked for any more. The column stays (always empty).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 13:59:33 +01:00
gnilebeinandClaude Sonnet 5.5 33c75e504f Make the slide image description optional
CI / Deploy / PHP 8.4 (push) Successful in 1m12s
CI / Deploy / PHP 8.5 (push) Successful in 1m13s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped
A missing description rejected the whole save and dropped the selected
file, which cannot be refilled in the form. The description is now an
optional hint for screen readers; empty means alt="". The "decorative"
checkbox is gone, it meant the same.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 13:56:27 +01:00
gnilebeinandClaude Sonnet 5.5 a395b50894 Add optional images to slides
CI / Deploy / PHP 8.4 (push) Successful in 1m10s
CI / Deploy / PHP 8.5 (push) Successful in 1m16s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped
Slides (except YouTube) can carry one image. Uploads are validated, rotated
by EXIF orientation, scaled to 1600 px and stored as WebP outside webroot,
which also strips camera metadata. Images have an alt text (or are marked
decorative) and a layout: top, side or full screen (content slides).

Files are removed after the commit when a slide is deleted or its image is
replaced, with the poll, and `bin/cake images_cleanup` sweeps leftovers.
Duplicated slides get their own file. Docker image gains gd with WebP.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 23:17:37 +01:00
gnilebeinandClaude Sonnet 5.5 8c7818ee40 Let the dashboard follow the presenter
CI / Deploy / PHP 8.4 (push) Successful in 1m12s
CI / Deploy / PHP 8.5 (push) Successful in 1m13s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped
The live marker in the slide list stayed on the last known slide when the
presenter moved on in another window or with a clicker. The dashboard now
polls a cheap version fingerprint (admin:live) and reloads the lists when it
changes, but never under an open dialog, a pending request or a drag.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 12:19:12 +01:00
gnilebeinandClaude Sonnet 5.5 9c6a19f0de Offer reset when slides were touched, not only when answers exist
CI / Deploy / PHP 8.5 (push) Successful in 1m6s
CI / Deploy / PHP 8.4 (push) Successful in 1m7s
CI / Deploy / test (push) Successful in 2s
CI / Deploy / deploy (push) Skipped
The dashboard and per-slide reset buttons only checked for responses, so a
started quiz without votes, a closed slide or a running presentation could
not be reset. Check Slide::isFresh() and Poll::isStarted() as well.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 10:26:44 +01:00
gnilebeinandClaude Sonnet 5.5 0eb054ed29 Reset every slide to the state of a new slide
CI / Deploy / PHP 8.4 (push) Successful in 1m4s
CI / Deploy / PHP 8.5 (push) Successful in 1m7s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped
Resetting answers now reopens closed slides (and hides the solution of
ordering slides) instead of only restarting quiz and Q&A slides.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 10:19:17 +01:00
gnilebeinandClaude Sonnet 5.5 e4622b439e Step through quizzes with next on a clicker
Next on a quiz starts it, then ends it, and only then moves to the next
slide. Prev always goes to the previous slide and never touches the quiz.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 10:18:43 +01:00
gnilebein 3c66597696 Merge pull request 'Reset poll to "not started" and keep prepared Q&A questions' (#75) from feature/reset-not-started into main
CI / Deploy / PHP 8.5 (push) Successful in 1m4s
CI / Deploy / PHP 8.4 (push) Successful in 1m5s
CI / Deploy / test (push) Successful in 2s
CI / Deploy / deploy (push) Successful in 11s
Reviewed-on: #75
2026-11-13 10:03:49 +01:00
gnilebeinandClaude Sonnet 5.5 97a60290b4 Reset poll to "not started" and keep prepared Q&A questions
CI / Deploy / PHP 8.4 (push) Successful in 1m5s
CI / Deploy / PHP 8.5 (push) Successful in 1m7s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped
Resetting a poll now also clears the live/paused slide so the presentation
starts over. Questions entered beforehand on Q&A slides are kept by default
(only their upvotes are removed); the dashboard offers a checkbox to delete
them too. Resetting a single slide always keeps them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 09:52:26 +01:00
gnilebeinandClaude Sonnet 5.5 61718ed7c6 Add optional comment field to multiple choice slides
CI / Deploy / PHP 8.4 (push) Successful in 1m11s
CI / Deploy / PHP 8.5 (push) Successful in 1m11s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped
Participants can justify their choice; the comment is stored once in the
first response row, rotates on the stage like scale comments and is listed
in the admin area and the PDF export.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 09:29:25 +01:00
gnilebeinandClaude Sonnet 5.5 220227fa86 Stop FormHelper from emitting inline validity handlers
CI / Deploy / PHP 8.5 (push) Successful in 1m7s
CI / Deploy / PHP 8.4 (push) Successful in 1m7s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped
Required fields got generated oninvalid/oninput attributes, which the CSP
blocks and logs on every page and when parsing dashboard fragments.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 22:54:08 +01:00
gnilebeinandClaude Sonnet 5.5 4b5f9d92a1 Add prepared questions to Q&A slides
The slide form takes questions entered beforehand (e.g. received by mail),
one per line, while collecting. They are stored as regular questions with a
reserved participant hash, synced idempotently, and not counted as participants.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 22:34:12 +01:00
gnilebeinandClaude Sonnet 5.5 575fb8649d Make Q&A upvote budget a share of the questions
CI / Deploy / test (push) Successful in 58s
CI / Deploy / deploy (push) Skipped
The fixed number of votes per person does not fit varying question
counts. The budget is now `upvote_share` percent of the questions
(rounded up, at least one), so it grows with the number of questions.
A migration converts existing Q&A slides (no voting stays off, others
get 25 %).

On the stage the voting step no longer lists the questions but points
participants to their devices.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 23:53:32 +01:00
gnilebeinandClaude Sonnet 5.5 b643072c3c Update slide list and edit slide form without page reloads
CI / Deploy / test (push) Successful in 58s
CI / Deploy / deploy (push) Skipped
Slide list actions (hide, delete, reset, duplicate, go live, pause) now run
via fetch and refresh only the changed regions, keeping scroll position and
focus. Add/edit slide forms open in a dialog. Admin pages answer with a
slim fragment layout when the X-Fragment header is sent.

Replace postLink confirms (inline onclick, blocked by the CSP) with
postButton and data-confirm handled in plenario.js.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-11 20:28:03 +01:00
gnilebeinandClaude Opus 5.5 3c978e6f22 Add hiding slides from the presentation
CI / Deploy / test (push) Successful in 57s
CI / Deploy / deploy (push) Skipped
Hidden slides stay prepared in the dashboard but are skipped when
presenting (start, next/prev, goto), can not go live via embed and are
left out of the PDF export. Hiding the live or paused slide pauses the
poll like deleting it and resumes with the next visible slide.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:25:41 +01:00
gnilebeinandClaude Opus 5.5 e2f24877dd Add duplicating slides
Copies question, description, settings and options (incl. correct quiz
answers) directly behind the original, without responses. The copy starts
like a new slide (Slide::startFresh()) and opens in the edit form.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 15:18:10 +01:00
gnilebeinandClaude Opus 5.5 b3c80ab79f Show scale results as average next to a donut chart
CI / Deploy / test (push) Successful in 1m8s
CI / Deploy / deploy (push) Skipped
Average and distribution now sit side by side: a big average figure with
its gauge or stars, and the distribution as a donut (CSS conic-gradient,
shades of one colour, legend with percent and count). A single dropdown
setting scale_view (both, average only, chart only) replaces the two
checkboxes; a single part is centred.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:38:58 +01:00
gnilebeinandClaude Opus 5.5 bf16ac0d3b Let scale slides hide the average or the distribution on stage
The average is now the headline of a scale result and the distribution a
compact detail below it. Two new settings (show_average, show_distribution)
hide either part in the presentation; evaluation and PDF stay complete.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:29:35 +01:00
gnilebeinandClaude Opus 5.5 166cb475c6 Let each poll speed up or slow down the scale comments
CI / Deploy / test (push) Successful in 1m12s
CI / Deploy / deploy (push) Skipped
A new poll setting (polls.comment_speed, 50-200 %) scales the display
time of the rotating scale comments in the presentation and embed; the
duration still follows the text length.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:51:08 +01:00
gnilebeinandClaude Opus 5.5 c1f9be2eef Add a star rating style to scale slides
Scales can now be shown as stars (1 to n) instead of numbered steps:
participants tap stars, the stage shows the average as partly filled
stars and the distribution as bars from most to fewest stars, and the
evaluation page and PDF export print ratings as stars.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:46:33 +01:00
gnilebeinandClaude Opus 5.5 51d1be8695 Let participants edit their open answer while voting is open
CI / Deploy / test (push) Successful in 1m4s
CI / Deploy / deploy (push) Skipped
Generalises the comment edit to /p/{code}/edit: open answers can be
corrected (not emptied), scale comments as before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 11:59:54 +01:00
gnilebeinandClaude Opus 5.5 d518b7a37e Let participants edit their scale comment while voting is open
Participants can fix typos in, add or remove their own comment until the
voting closes. The rating itself stays unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 11:40:24 +01:00
gnilebein c6567b5e28 Merge pull request 'Drop the comment interval setting' (#40) from feature/comment-auto-interval into main
CI / Deploy / test (push) Successful in 55s
CI / Deploy / deploy (push) Successful in 7s
Reviewed-on: #40
2026-11-09 14:25:07 +01:00
gnilebeinandClaude Opus 5.5 8d128095ed Drop the comment interval setting
CI / Deploy / test (push) Successful in 52s
CI / Deploy / deploy (push) Skipped
Comments on the stage are always timed by their length now, so the
selectable interval and results.commentInterval are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 14:18:01 +01:00
gnilebein db22863608 Merge pull request 'Rotate scale comments by reading time' (#39) from feature/comment-auto-interval into main
CI / Deploy / test (push) Successful in 57s
CI / Deploy / deploy (push) Successful in 7s
Reviewed-on: #39
2026-11-09 14:11:23 +01:00
gnilebeinandClaude Opus 5.5 05ff5967e3 Rotate scale comments by reading time
CI / Deploy / test (push) Successful in 1m1s
CI / Deploy / deploy (push) Skipped
Add an automatic comment interval (now the default) that keeps each
comment on stage depending on its length: 2.5 s plus 15 characters per
second, between 5 and 30 seconds. Fixed intervals remain selectable.
Next, previous and resume give the current comment its full time again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 14:10:06 +01:00
gnilebein e9e1159ad9 Merge pull request 'Let the presenter resume a paused poll with the pause button' (#38) from fix/presenter-resume into main
CI / Deploy / test (push) Successful in 57s
CI / Deploy / deploy (push) Successful in 8s
Reviewed-on: #38
2026-11-09 10:51:57 +01:00
gnilebeinandClaude Opus 5.5 430a18865d Let the presenter resume a paused poll with the pause button
CI / Deploy / test (push) Successful in 1m0s
CI / Deploy / deploy (push) Skipped
The pause button was hidden while paused, so only the arrow keys could
continue. It now toggles between pause and resume (also via P), using an
explicit idempotent `resume` control action so double clicks never
pause again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 10:51:13 +01:00
gnilebeinandClaude Opus 5.5 bc86ec2db6 Allow Q&A rounds without upvotes and limit upvotes per question
CI / Deploy / test (push) Successful in 57s
CI / Deploy / deploy (push) Skipped
- max_upvotes = 0 disables upvoting: the voting stage is skipped
  (collect -> discuss), questions are discussed in submission order
- new setting max_upvotes_per_question caps a participant's upvotes
  on a single question (0 = no limit besides max_upvotes)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 08:36:02 +01:00
gnilebeinandClaude Opus 5.5 3e44ded107 Share repeated controller and service code
CI / Deploy / test (push) Successful in 53s
CI / Deploy / deploy (push) Skipped
- AppController: joinUrl(), adminUrlFor(), setPollInterval() and protect()
  instead of copies in Admin-, Home-, Participate- and EmbedController.
- PollMailer::sendSafely() replaces two try/catch blocks around mail sending.
- Slide::optionIds() replaces five identical array_map() calls.
- PollStateService: one pollPayload() for presenter and embed; the vote
  action passes the already loaded slide instead of loading it again.
- ResultsService::forSlide() takes the answer/comment limit and the rating
  flag, so ReportService no longer queries answers, comments and the scale
  distribution twice and the export loads the slides only once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 22:50:56 +01:00
gnilebeinandClaude Opus 5.5 2a53675ce5 Send a Content-Security-Policy and security headers on every response
CI / Deploy / test (push) Successful in 1m1s
CI / Deploy / deploy (push) Skipped
- New SecurityHeadersMiddleware (outermost): CSP with a per-request script
  nonce, framing (SAMEORIGIN, embeds via frame-ancestors), nosniff,
  Referrer- and Permissions-Policy. JSON, files and error pages are covered
  now, not only rendered HTML; headers set by controllers still win.
- The inline theme script carries the nonce; flash messages are dismissed
  via data-dismiss instead of inline onclick handlers, and the flash
  elements share one template.
- reCAPTCHA sources are only allowed when it is enabled.
- The embed CSRF exception and framing use the same isEmbed() check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 22:43:36 +01:00
gnilebein 6912d045cf Merge pull request 'Store answers atomically and limit word cloud input' (#31) from fix/atomic-votes into main
CI / Deploy / test (push) Successful in 52s
CI / Deploy / deploy (push) Successful in 4s
Reviewed-on: #31
2026-11-08 22:35:42 +01:00
gnilebein a62e13eeff Merge pull request 'Remove dead code and validate new polls only once' (#33) from chore/remove-dead-code into main
CI / Deploy / test (push) Successful in 52s
CI / Deploy / deploy (push) Successful in 5s
Reviewed-on: #33
2026-11-08 22:32:02 +01:00
gnilebein 5dcdfdb475 Merge pull request 'Pause instead of dangling when the live slide is deleted' (#32) from fix/slide-delete-pause into main
CI / Deploy / test (push) Successful in 55s
CI / Deploy / deploy (push) Successful in 5s
Reviewed-on: #32
2026-11-08 22:31:45 +01:00
gnilebeinandClaude Opus 5.5 121097f7a7 Remove dead code and validate new polls only once
CI / Deploy / test (push) Successful in 52s
CI / Deploy / deploy (push) Skipped
- Drop the unused polls.show_results_to_participants column (idempotent migration).
- Remove CaptchaInterface::getType(), the unused AjaxView with its layout,
  the empty cell template folder and a redundant setNew() call.
- PollsTable::newPoll() normalises and validates once; the create form used
  to validate the raw input first, so an e-mail address with surrounding
  spaces was rejected although it would have been trimmed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 22:12:35 +01:00
gnilebeinandClaude Opus 5.5 a7f9783a75 Pause instead of dangling when the live slide is deleted
CI / Deploy / test (push) Successful in 55s
CI / Deploy / deploy (push) Skipped
Deleting the live slide set current_slide_id directly, so participants saw
"not started", and deleting the paused slide left paused_slide_id pointing
to a slide that no longer exists. Poll::forgetSlide() now pauses and resumes
with the slide taking its place.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 22:02:58 +01:00
gnilebeinandClaude Opus 5.5 9c532d164f Store answers atomically and limit word cloud input
CI / Deploy / test (push) Successful in 51s
CI / Deploy / deploy (push) Skipped
- Run the checks and the insert of VoteService::submit() in one transaction
  with the slide row locked, so double clicks or retries cannot store a vote
  twice (also covers the Q&A upvote budget and word cloud duplicates).
- Limit word cloud terms per request and per participant, and throttle
  answers per IP and minute (THROTTLE_VOTES_PER_MINUTE, 429 with message).
- Treat array values in text fields as empty instead of storing "Array".
- Move the throttle helper to AppController for reuse.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 22:01:19 +01:00
gnilebeinandClaude Opus 5.5 0a4c9fad09 Delete options and responses together with their poll
CI / Deploy / test (push) Successful in 53s
CI / Deploy / deploy (push) Skipped
Deleting a poll removed its slides with a plain deleteAll and relied on
ON DELETE CASCADE for slide options and responses. SQLite does not enforce
foreign keys by default, so answers of deleted polls stayed in the database.
Cascade through the ORM instead and remove the rows left behind earlier.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 21:56:18 +01:00