Commit Graph
204 Commits
Author SHA1 Message Date
gnilebein 8bc2723688 Merge pull request 'Give each value of the scale donut its own colour' (#47) from fix/scale-donut-colors into main
CI / Deploy / test (push) Successful in 54s
CI / Deploy / deploy (push) Successful in 4s
Reviewed-on: #47
2026-11-11 13:46:22 +01:00
gnilebeinandClaude Opus 5.5 14916f46fb Give each value of the scale donut its own colour
CI / Deploy / test (push) Successful in 57s
CI / Deploy / deploy (push) Skipped
Shades of one colour were too hard to tell apart on the projector. The
slices now use the theme colours in a fixed order along the scale, mixed
for scales with more values than colours.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:45:00 +01:00
gnilebein 2f6375cd6d Merge pull request 'Feature/star rating' (#46) from feature/star-rating into main
CI / Deploy / test (push) Successful in 1m3s
CI / Deploy / deploy (push) Successful in 7s
Reviewed-on: #46
2026-11-11 13:39:42 +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
gnilebein 09c50e3e59 Merge pull request 'Let the number of stars use the full width' (#45) from feature/star-rating into main
CI / Deploy / test (push) Successful in 1m1s
CI / Deploy / deploy (push) Successful in 8s
Reviewed-on: #45
2026-11-11 13:31:54 +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 239599e6a3 Let the number of stars use the full width
CI / Deploy / test (push) Successful in 56s
CI / Deploy / deploy (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:11:55 +01:00
gnilebein 7ed2ba2eea Merge pull request 'Keep scale labels in place when switching to stars' (#44) from feature/star-rating into main
CI / Deploy / test (push) Successful in 1m0s
CI / Deploy / deploy (push) Successful in 4s
Reviewed-on: #44
2026-11-11 13:10:15 +01:00
gnilebeinandClaude Opus 5.5 fa15a45eb2 Keep scale labels in place when switching to stars
CI / Deploy / test (push) Successful in 57s
CI / Deploy / deploy (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:08:37 +01:00
gnilebein 815b3ee7d7 Merge pull request 'Feature/star rating' (#43) from feature/star-rating into main
CI / Deploy / test (push) Successful in 1m2s
CI / Deploy / deploy (push) Successful in 6s
Reviewed-on: #43
2026-11-11 13:05:12 +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
gnilebein dd1bfbaa86 Merge pull request 'Feature/edit scale comment' (#42) from feature/edit-scale-comment into main
CI / Deploy / test (push) Successful in 56s
CI / Deploy / deploy (push) Successful in 7s
Reviewed-on: #42
2026-11-11 12:21:05 +01:00
gnilebeinandClaude Opus 5.5 1ee870d67c Always timestamp assets so deploys bust browser caches
CI / Deploy / test (push) Successful in 59s
CI / Deploy / deploy (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:20:07 +01:00
gnilebeinandClaude Opus 5.5 ad5223906c Let participants withdraw their own word cloud terms
CI / Deploy / test (push) Successful in 59s
CI / Deploy / deploy (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:07:44 +01:00
gnilebeinandClaude Opus 5.5 3a8962976e Let participants edit or delete their Q&A questions while collecting
CI / Deploy / test (push) Successful in 56s
CI / Deploy / deploy (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:02:59 +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 e6f52a0449 Show a progress bar until the next scale comment
CI / Deploy / test (push) Successful in 1m2s
CI / Deploy / deploy (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 11:40:24 +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 bd488e0b81 Merge pull request 'Show only the status above the question on stage' (#41) from fix/stage-without-type into main
CI / Deploy / test (push) Successful in 1m3s
CI / Deploy / deploy (push) Successful in 7s
Reviewed-on: #41
2026-11-09 15:01:26 +01:00
gnilebeinandClaude Opus 5.5 7b97ad0fca Show only the status above the question on stage
CI / Deploy / test (push) Successful in 52s
CI / Deploy / deploy (push) Skipped
The slide type above the question told the room nothing useful. The line
now shows only a status (quiz phase, Q&A stage, solution, voting closed,
pause) and is hidden otherwise. typeLabel is dropped from the state JSON.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 15:01:07 +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
gnilebein 3302982b81 Merge pull request 'Allow Q&A rounds without upvotes and limit upvotes per question' (#37) from feature/qa-upvote-limits into main
CI / Deploy / test (push) Successful in 1m5s
CI / Deploy / deploy (push) Successful in 6s
Reviewed-on: #37
2026-11-09 08:38:40 +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
gnilebein 9aff25465c Merge pull request 'Refactor/reuse' (#36) from refactor/reuse into main
CI / Deploy / test (push) Successful in 1m8s
CI / Deploy / deploy (push) Successful in 4s
Reviewed-on: #36
2026-11-08 22:59:20 +01:00
gnilebein d6ace26459 Merge pull request 'Send a Content-Security-Policy and security headers on every response' (#35) from feature/security-headers into main
CI / Deploy / test (push) Successful in 1m4s
CI / Deploy / deploy (push) Successful in 6s
Reviewed-on: #35
2026-11-08 22:59:06 +01:00
gnilebein 09d81465f0 Merge pull request 'Fix/atomic votes' (#34) from fix/atomic-votes into main
CI / Deploy / test (push) Successful in 1m2s
CI / Deploy / deploy (push) Successful in 8s
Reviewed-on: #34
2026-11-08 22:58:52 +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 ad537b9b34 Hash client IPs for rate limits with a keyed HMAC
A plain sha256 of an IPv4 address can be reversed by trying all addresses.

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 9d65e85c55 Merge remote-tracking branch 'origin/main' into fix/atomic-votes
CI / Deploy / test (push) Successful in 56s
CI / Deploy / deploy (push) Skipped
2026-11-08 22:35:38 +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
gnilebein f536ea89fc Merge pull request 'Delete options and responses together with their poll' (#30) from fix/poll-delete-cascade into main
CI / Deploy / test (push) Successful in 1m0s
CI / Deploy / deploy (push) Successful in 5s
Reviewed-on: #30
2026-11-08 22:31:14 +01:00
gnilebein 5dce584992 Merge pull request 'Redact admin tokens and embed keys in error logs' (#29) from fix/redact-tokens-in-logs into main
CI / Deploy / test (push) Successful in 52s
CI / Deploy / deploy (push) Successful in 4s
Reviewed-on: #29
2026-11-08 22:30:56 +01:00
gnilebein 66fc4dd95f Merge pull request 'Bring README and agent docs in line with the code' (#28) from docs/readme-update into main
CI / Deploy / test (push) Successful in 1m6s
CI / Deploy / deploy (push) Successful in 8s
Reviewed-on: #28
2026-11-08 22:30:39 +01:00
gnilebeinandClaude Opus 5.5 796daf79e3 Bring README and agent docs in line with the code
CI / Deploy / test (push) Successful in 51s
CI / Deploy / deploy (push) Skipped
- README: all slide types, embedding, results on stage only, all
  environment variables, Gitea deployment, actual PHP requirement (8.3+),
  third parties (reCAPTCHA, YouTube) in the privacy section.
- AGENTS.md and docblocks: participants never get scale results at all
  (participantResults() does not empty comments), list ErrorController and
  HostHeaderMiddleware.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 22:13:58 +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
gnilebeinandClaude Opus 5.5 0678d72eda Redact admin tokens and embed keys in error logs
CI / Deploy / test (push) Successful in 54s
CI / Deploy / deploy (push) Skipped
CakePHP's error logger writes the request URL, the referer and exception
messages (e.g. missing routes) to the log, which leaked the secret admin
token and embed key into logs/error.log.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 21:53:30 +01:00
gnilebein 8b0e82d806 Merge pull request 'Make the poll reset only delete responses' (#27) from feature/poll-reset into main
CI / Deploy / test (push) Successful in 53s
CI / Deploy / deploy (push) Successful in 4s
Reviewed-on: #27
2026-11-08 21:27:32 +01:00
gnilebeinandClaude Opus 5.5 8644d4bc4a Make the poll reset only delete responses
CI / Deploy / test (push) Successful in 52s
CI / Deploy / deploy (push) Skipped
The presentation (current slide, pause) and the open/closed state of
slides are kept. Only quiz and Q&A slides go back to their start, as
the per-slide reset already did before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 20:34:41 +01:00