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>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-09 14:18:01 +01:00
1 parent 05ff5967e3
commit 8d128095ed
7 files changed
+23 -86

No files matched your search

+2 -16
View File
@@ -55,20 +55,6 @@ class Slide extends Entity
*/
public const QUIZ_TIME_LIMITS = [0, 10, 15, 20, 30, 45, 60, 90, 120, 180, 300];
/**
* Comment interval "automatic": the presentation derives the time per comment
* from its length (reading speed), see `Comments.delay()` in plenario.js.
*/
public const COMMENT_INTERVAL_AUTO = 0;
/**
* Selectable seconds per comment when the comments of a scale rotate in the presentation
* (COMMENT_INTERVAL_AUTO = depending on the length of each comment).
*
* @var list<int>
*/
public const COMMENT_INTERVALS = [self::COMMENT_INTERVAL_AUTO, 3, 5, 8, 10, 15, 20, 30, 45, 60];
/**
* Q&A stages, see qaStage(): participants submit questions, then upvote
* them, then the presenter discusses them one by one (most upvoted first).
@@ -101,10 +87,10 @@ class Slide extends Entity
// private: internal feedback, ratings only visible in the admin area (never on the stage)
// comments: optional comment field, comments rotate in the presentation (unless private)
// comment_ratings: show the rating next to each comment in the presentation
// comment_interval: seconds per comment while they rotate (one of COMMENT_INTERVALS, 0 = by length)
// (time per comment depends on its length, see Comments.delay() in plenario.js)
self::TYPE_SCALE => [
'scale_min' => 1, 'scale_max' => 5, 'min_label' => '', 'max_label' => '', 'private' => false,
'comments' => false, 'comment_ratings' => false, 'comment_interval' => self::COMMENT_INTERVAL_AUTO,
'comments' => false, 'comment_ratings' => false,
],
self::TYPE_CONTENT => [],
// time_limit in seconds, 0 = no limit (presenter ends the quiz)
-4
View File
@@ -159,10 +159,6 @@ class SlidesTable extends Table
$settings['private'] = filter_var($input['private'] ?? false, FILTER_VALIDATE_BOOLEAN);
$settings['comments'] = filter_var($input['comments'] ?? false, FILTER_VALIDATE_BOOLEAN);
$settings['comment_ratings'] = filter_var($input['comment_ratings'] ?? false, FILTER_VALIDATE_BOOLEAN);
$interval = (int)($input['comment_interval'] ?? $settings['comment_interval']);
if (in_array($interval, Slide::COMMENT_INTERVALS, true)) {
$settings['comment_interval'] = $interval;
}
break;
case Slide::TYPE_QUIZ:
$limit = (int)($input['time_limit'] ?? $settings['time_limit']);