Commit Graph
6 Commits
Author SHA1 Message Date
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 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 8522918c75 Use a trash button to remove a slide image
CI / Deploy / PHP 8.4 (push) Successful in 1m35s
CI / Deploy / PHP 8.5 (push) Successful in 1m35s
CI / Deploy / test (push) Successful in 1s
CI / Deploy / deploy (push) Skipped
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>
2026-11-15 13:54:13 +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