Make rating next to scale comments optional, compact average row
- New scale setting comment_ratings: the rating is only shown next to a comment in the presentation (and sent in the state) when enabled. - Smaller average figure and gauge on the stage so the chart and the comments get more room. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d6166bd9d9
commit
2f5ac533c1
8 files changed
+44
-15
No files matched your search
@@ -141,7 +141,17 @@ class ScaleCommentsTest extends TestCase
|
||||
$this->assertSame(3, $results['participants']);
|
||||
$this->assertEqualsWithDelta(3.0, $results['average'], 0.001);
|
||||
$this->assertSame(['Sehr <gut>', 'Zu lang'], array_column($results['comments'], 'text'));
|
||||
$this->assertSame([4, 3], array_column($results['comments'], 'value'));
|
||||
$this->assertSame([null, null], array_column($results['comments'], 'value'));
|
||||
}
|
||||
|
||||
public function testRatingsNextToCommentsAreOptional(): void
|
||||
{
|
||||
$this->assertTrue(SlidesTable::sanitizeSettings(Slide::TYPE_SCALE, ['comment_ratings' => '1'])['comment_ratings']);
|
||||
$this->assertFalse(SlidesTable::sanitizeSettings(Slide::TYPE_SCALE, [])['comment_ratings']);
|
||||
|
||||
[, $token] = $this->scaleWithComments(['comment_ratings' => true]);
|
||||
|
||||
$this->assertSame([4, 3], array_column($this->presenterResults($token)['comments'], 'value'));
|
||||
}
|
||||
|
||||
public function testParticipantsNeverSeeComments(): void
|
||||
|
||||
Reference in new issue
Block a user