Rotate scale comments by reading time
Add an automatic comment interval (now the default) that keeps each comment on stage depending on its length: 2.5 s plus 15 characters per second, between 5 and 30 seconds. Fixed intervals remain selectable. Next, previous and resume give the current comment its full time again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6912d045cf
commit
05ff5967e3
6 files changed
+68
-25
No files matched your search
@@ -156,14 +156,19 @@ class ScaleCommentsTest extends TestCase
|
||||
|
||||
public function testCommentIntervalIsConfigurable(): void
|
||||
{
|
||||
$this->assertSame(8, SlidesTable::sanitizeSettings(Slide::TYPE_SCALE, [])['comment_interval']);
|
||||
$auto = Slide::COMMENT_INTERVAL_AUTO;
|
||||
$this->assertSame($auto, SlidesTable::sanitizeSettings(Slide::TYPE_SCALE, [])['comment_interval']);
|
||||
$this->assertSame(15, SlidesTable::sanitizeSettings(Slide::TYPE_SCALE, ['comment_interval' => '15'])['comment_interval']);
|
||||
$this->assertSame(8, SlidesTable::sanitizeSettings(Slide::TYPE_SCALE, ['comment_interval' => '7'])['comment_interval']);
|
||||
$this->assertSame(8, SlidesTable::sanitizeSettings(Slide::TYPE_SCALE, ['comment_interval' => '-1'])['comment_interval']);
|
||||
$this->assertSame($auto, SlidesTable::sanitizeSettings(Slide::TYPE_SCALE, ['comment_interval' => '0'])['comment_interval']);
|
||||
$this->assertSame($auto, SlidesTable::sanitizeSettings(Slide::TYPE_SCALE, ['comment_interval' => '7'])['comment_interval']);
|
||||
$this->assertSame($auto, SlidesTable::sanitizeSettings(Slide::TYPE_SCALE, ['comment_interval' => '-1'])['comment_interval']);
|
||||
|
||||
[, $token] = $this->scaleWithComments(['comment_interval' => 20]);
|
||||
$this->assertSame(20, $this->presenterResults($token)['commentInterval']);
|
||||
|
||||
[, $token] = $this->scaleWithComments();
|
||||
$this->assertSame($auto, $this->presenterResults($token)['commentInterval']);
|
||||
|
||||
$this->get("/admin/$token");
|
||||
$this->assertResponseOk();
|
||||
}
|
||||
@@ -175,6 +180,7 @@ class ScaleCommentsTest extends TestCase
|
||||
|
||||
$this->assertResponseContains('name="settings[comment_interval]"');
|
||||
$this->assertResponseContains('15 Sekunden');
|
||||
$this->assertResponseContains('automatisch (je nach Länge des Kommentars)');
|
||||
}
|
||||
|
||||
public function testParticipantsNeverSeeComments(): void
|
||||
|
||||
Reference in new issue
Block a user