Replace the separate button by a split button: "Präsentieren" with a
dropdown that holds the speaker view entry.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
- 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>
app_local.php takes precedence over config/.env, so a copy made from an older
template forced the file transport and reminders never left the server.
Release package and Docker image now ship without it; app.php reads the
database from DATABASE_URL (SQLite default). app_local.example.php keeps
development defaults only. polls remind prints the transport and warns when
SMTP_HOST is set but SMTP is not used.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
`polls remind <id|code>` sends the reminder to that poll right away,
ignoring the reminder window, an earlier reminder and POLL_REMINDER_DAYS.
A forced reminder does not set the reminded marker.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
Paged list with pick by number (open) and "d 1,3" to delete several at
once after one confirmation. List query and table moved into the shared
base command.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
`bin/cake polls` without a sub command offers list, search, open a poll
(details, admin link, delete), remind and cleanup. It only wraps the existing
commands, previews before destructive actions and asks first; every prompt
has a safe default so closed stdin ends it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
README keeps overview, features, local setup, privacy and links;
operator instructions live in docs/deployment.md and
docs/configuration.md.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Keep AGENTS.md as a short entry point (role, commands, conventions,
invariants) and move per-area details to docs/.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Polls are deleted POLL_RETENTION_DAYS (default 90) after creation by the
cron job `bin/cake polls cleanup`. POLL_REMINDER_DAYS (default 14) before
that the owner gets a one-time reminder mail (expiry_reminded_at).
New commands: polls list, show (admin link only with --link), delete,
remind, cleanup. The expiry date is shown in the creation mail and the
dashboard. Docs: README, AGENTS.md, .env.example.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
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>
With JavaScript the "remove image" checkbox is replaced by a button with a
trash icon that toggles the same checkbox, dims the preview and announces
the pending removal. Without JavaScript the checkbox still works.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
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>
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>
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>
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>
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>
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>
The image uses the built-in PHP server and SQLite, so it is not meant for
production. Say so in README, docker-compose.yml and AGENTS.md.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
Forms with a field named "action" (play, pause) shadow the form.action
property, so the fragment request went to /admin/[object HTMLInputElement].
Read the attribute instead.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Only two entries are required, so the form no longer offers four empty rows
up front; further rows come via the add button.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
The lock file pins PHPUnit 13 and Symfony 8, which need PHP 8.4. PHP 8.3
is in its last support year, so drop it from the matrix instead of
downgrading the dependencies.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Move the test steps into a matrix job and keep a aggregating `test` job so the
branch protection check name stays stable.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Replace the Docker workflow with a release workflow that runs on
vX.Y.Z[-suffix] tags: tests first, then an app-only package
(plenario-<version>.tar.gz with production vendor/) attached to the Gitea
release and a container image tagged with the semver versions.
Document the release process and the deployment target in the README.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Add SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASSWORD and SMTP_TLS instead of
requiring a transport URL, so passwords need no URL escaping. Port 465 uses
implicit SSL. EMAIL_TRANSPORT_DEFAULT_URL keeps working as a fallback.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
config/ is not writable for www-data, so the schema dump failed with a
permission warning on every start.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
Fullscreen and keep-awake sit next to the theme switch (layout block
headerTools), icon only with aria-label/title.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Wake lock is on by default and restored after slide reloads; fullscreen
is a manual toggle. Buttons stay hidden where the APIs are unsupported.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The close button no longer covers form fields: the dialog does not
scroll itself, an inner panel does, and the button sits on the corner.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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>
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>
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>
A live ranking on the stage swayed the vote. During the vote stage the
presenter now gets the questions in submission order without counts,
only the total of votes cast.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
On narrow screens the edit/delete buttons squeezed the question text
into a one-character column.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Slide descriptions support *bold*, _italic_, ~strikethrough~ and lists
with "- " or "* " at the start of a line. FormatHelper renders them for
the participant page and the PDF (escaping everything else), Format in
plenario.js builds the same DOM for presenter and embed. Participant
input stays plain text.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two lines start at opposite corners (top left along the top, bottom right
along the bottom) and meet when the next comment is due. Drawn as an SVG
outline with pathLength 100 and a dash pattern repeating every half
perimeter, so it follows the rounded corners.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The progress until the next comment no longer takes a row of its own;
it runs along the bottom edge of the box.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rating has the same height for every comment, so above the text it
stays in place while the comments rotate; only the text changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The comment box is capped at about five lines (--comment-max). A comment
that does not fit is set smaller step by step (Comments.fit(), also on
resize) instead of being cut off or pushing the slide off screen.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The stage centres its content vertically, so a multi-line comment moved
the whole slide while the comments rotated. All comments now share one
grid cell (the others invisible), so the box keeps the height of the
longest one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
- 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>
- 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>
- 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>
- 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>
- 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>
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>
- 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>
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>
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>
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>