Add hiding slides from the presentation
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>
This commit is contained in:
1 parent
e2f24877dd
commit
3c978e6f22
15 files changed
+333
-35
No files matched your search
@@ -16,7 +16,7 @@ use Cake\ORM\Locator\LocatorAwareTrait;
|
||||
* screen. With $includeInternal it also contains their answers, distribution and comments –
|
||||
* that version is meant for the poll owner only.
|
||||
*
|
||||
* Per slide: ['slide' => Slide, 'number' => int (position in the poll, 1-based),
|
||||
* Per slide: ['slide' => Slide, 'number' => int (position in the presentation, 1-based; hidden slides are left out),
|
||||
* 'internal' => bool (private slide), 'withheld' => bool (private and left out),
|
||||
* 'results' => ResultsService::forSlide() shape, where
|
||||
* open: 'answers' contains all texts (not only the newest ones), and
|
||||
@@ -49,7 +49,7 @@ class ReportService
|
||||
*/
|
||||
public function build(Poll $poll, bool $includeInternal): array
|
||||
{
|
||||
$slides = $this->Slides->listForPoll($poll->id);
|
||||
$slides = $this->Slides->listForPoll($poll->id, true);
|
||||
$includeInternal = $includeInternal
|
||||
&& array_filter($slides, fn(Slide $slide) => $slide->isInteractive() && $slide->isPrivate()) !== [];
|
||||
$sections = [];
|
||||
|
||||
Reference in new issue
Block a user