Remove per-participant word limit from word clouds
CI / Deploy / test (push) Successful in 42s
CI / Deploy / deploy (push) Skipped

Participants can now always submit any number of words. Drops the
max_words setting, its form field, the limit checks in VoteService and
the remaining/limitReached state; existing max_words values in stored
settings are ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-07 14:05:20 +01:00
1 parent 6cc813f87b
commit bd17a97487
10 files changed
+26 -87

No files matched your search

@@ -104,7 +104,7 @@ class ParticipateControllerTest extends TestCase
[$poll] = $this->createPoll();
$poll->show_results_to_participants = false;
$this->pollsTable()->saveOrFail($poll);
$slide = $this->createSlide($poll, Slide::TYPE_WORDCLOUD, ['settings' => ['max_words' => 0, 'allow_upvotes' => true]]);
$slide = $this->createSlide($poll, Slide::TYPE_WORDCLOUD, ['settings' => ['allow_upvotes' => true]]);
$this->goLive($poll, $slide);
$this->cookie('plenario_pid', self::PID);
@@ -114,7 +114,6 @@ class ParticipateControllerTest extends TestCase
$body = json_decode((string)$this->_response->getBody(), true);
$this->assertTrue($body['ok']);
$this->assertSame(['kaffee'], $body['state']['words']['mine']);
$this->assertNull($body['state']['words']['remaining']);
// Cloud is visible despite show_results_to_participants=false, because upvotes are on.
$this->assertSame('Kaffee', $body['state']['results']['words'][0]['text']);