Make private slides start with hidden results instead of withholding them
Anonymous/internal feedback now only presets "hide results" on the stage: presenter and embed get the full results flagged private and can show them on demand. Participants still never get results of private slides, the public PDF export strips them via ResultsService::withoutContents(). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d1facd32a6
commit
ecb8f9d31c
11 files changed
+143
-95
No files matched your search
@@ -182,17 +182,18 @@ class ScaleCommentsTest extends TestCase
|
||||
$this->assertCount(2, $state['results']['comments']);
|
||||
}
|
||||
|
||||
public function testPrivateScaleNeverShowsComments(): void
|
||||
public function testPrivateScaleCommentsOnlyForTheStage(): void
|
||||
{
|
||||
[$poll, $token, $slide] = $this->scaleWithComments(['private' => true]);
|
||||
|
||||
// The presenter starts hidden but may show them, so the data is there.
|
||||
$results = $this->presenterResults($token);
|
||||
$this->assertSame([], $results['comments']);
|
||||
$this->assertResponseNotContains('Sehr');
|
||||
$this->assertTrue($results['private']);
|
||||
$this->assertCount(2, $results['comments']);
|
||||
|
||||
$key = $this->pollsTable()->ensureEmbedKey($poll);
|
||||
$this->get("/e/$key/{$slide->id}/state");
|
||||
$this->assertResponseNotContains('Sehr');
|
||||
$this->assertResponseContains('Sehr');
|
||||
|
||||
$this->get('/p/' . $poll->join_code . '/state');
|
||||
$this->assertResponseNotContains('Sehr');
|
||||
|
||||
Reference in new issue
Block a user