Add internal feedback and comments to scale slides
- Setting "private": distribution and average are only shown in the
admin evaluation page and CSV export, the stage shows just the count.
- Setting "comments": optional comment field for participants; on public
scales the comments rotate on the results ("Kommentar X von N") with
previous/next/pause controls.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
a138425ab0
commit
238797ecfd
15 files changed
+665
-23
No files matched your search
@@ -84,7 +84,11 @@ class Slide extends Entity
|
||||
self::TYPE_WORDCLOUD => ['allow_upvotes' => true, 'allow_downvotes' => true],
|
||||
// private: anonymous feedback, answers only visible in the admin area (never on the stage)
|
||||
self::TYPE_OPEN => ['private' => false],
|
||||
self::TYPE_SCALE => ['scale_min' => 1, 'scale_max' => 5, 'min_label' => '', 'max_label' => ''],
|
||||
// private: internal feedback, ratings only visible in the admin area (never on the stage)
|
||||
// comments: optional comment field, comments rotate on the results (unless private)
|
||||
self::TYPE_SCALE => [
|
||||
'scale_min' => 1, 'scale_max' => 5, 'min_label' => '', 'max_label' => '', 'private' => false, 'comments' => false,
|
||||
],
|
||||
self::TYPE_CONTENT => [],
|
||||
// time_limit in seconds, 0 = no limit (presenter ends the quiz)
|
||||
self::TYPE_QUIZ => ['time_limit' => 30],
|
||||
@@ -377,13 +381,23 @@ class Slide extends Entity
|
||||
}
|
||||
|
||||
/**
|
||||
* Open question collecting anonymous feedback: answers are never shown on the
|
||||
* presenter screen or to participants, only in the admin area and the CSV export.
|
||||
* Open question or scale collecting anonymous/internal feedback: answers and ratings are
|
||||
* never shown on the presenter screen or to participants, only in the admin area and the CSV export.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function isPrivate(): bool
|
||||
{
|
||||
return $this->type === self::TYPE_OPEN && (bool)$this->setting('private');
|
||||
return in_array($this->type, [self::TYPE_OPEN, self::TYPE_SCALE], true) && (bool)$this->setting('private');
|
||||
}
|
||||
|
||||
/**
|
||||
* Scale with an optional comment field for participants.
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function hasComments(): bool
|
||||
{
|
||||
return $this->type === self::TYPE_SCALE && (bool)$this->setting('comments');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user