Make the comment rotation interval configurable
Scale slides get the setting comment_interval (seconds per comment, one of Slide::COMMENT_INTERVALS, default 8). The presenter state carries it as results.commentInterval and the rotating comments use it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cfb445123e
commit
2301f91457
7 files changed
+66
-5
No files matched your search
@@ -22,6 +22,7 @@ use Cake\ORM\Locator\LocatorAwareTrait;
|
||||
* 'comments' => [['id', 'text', 'value' (int|null)]] oldest first (only with the comment field, else [];
|
||||
* 'value' is null unless the setting comment_ratings is on;
|
||||
* presentation only, emptied for participants in PollStateService);
|
||||
* 'commentInterval' => int seconds per comment while they rotate;
|
||||
* open/scale with 'private' (anonymous/internal feedback): contents are included for the
|
||||
* presenter/embed, which start with the results hidden and may show them on demand;
|
||||
* participants never get results of these slides, the public PDF strips them (withoutContents())
|
||||
@@ -322,7 +323,11 @@ class ResultsService
|
||||
];
|
||||
}
|
||||
|
||||
return $this->scaleResults($slide) + ['private' => $slide->isPrivate(), 'comments' => $comments];
|
||||
return $this->scaleResults($slide) + [
|
||||
'private' => $slide->isPrivate(),
|
||||
'comments' => $comments,
|
||||
'commentInterval' => (int)$slide->setting('comment_interval'),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user