Show only the status above the question on stage
CI / Deploy / test (push) Successful in 52s
CI / Deploy / deploy (push) Skipped

The slide type above the question told the room nothing useful. The line
now shows only a status (quiz phase, Q&A stage, solution, voting closed,
pause) and is hidden otherwise. typeLabel is dropped from the state JSON.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
gnilebeinandClaude Opus 5.5 committed 2026-11-09 15:01:07 +01:00
1 parent c6567b5e28
commit 7b97ad0fca
5 files changed
+13 -11

No files matched your search

+8 -6
View File
@@ -1066,7 +1066,7 @@
}
if (!slide) {
q('[data-type]').textContent = state.poll.isPaused ? 'Pause' : '';
q('[data-status]').textContent = state.poll.isPaused ? 'Pause' : '';
q('[data-question]').textContent = state.count === 0
? 'Noch keine Folien angelegt'
: state.poll.title;
@@ -1086,16 +1086,18 @@
var quizPhase = slide.type === 'quiz' && state.results ? state.results.phase : null;
var qaStage = slide.type === 'qa' && state.results ? state.results.stage : null;
var orderRevealed = slide.type === 'order' && state.results ? state.results.revealed : null;
q('[data-type]').textContent = quizPhase
? slide.typeLabel + ' · ' + { ready: 'bereit', running: 'läuft', finished: 'Auflösung' }[quizPhase]
: (qaStage ? slide.typeLabel + ' · ' + Qa.labels[qaStage]
: (orderRevealed ? slide.typeLabel + ' · Auflösung' : slide.typeLabel));
var closed = slide.isInteractive && !slide.isVotingOpen && !quizPhase && !qaStage && !orderRevealed;
// Status line above the question: only what the room needs to know, not the slide type.
q('[data-status]').textContent = quizPhase
? { ready: 'Bereit', running: 'Läuft', finished: 'Auflösung' }[quizPhase]
: (qaStage ? Qa.labels[qaStage]
: (orderRevealed ? 'Auflösung' : (closed ? 'Abstimmung geschlossen' : '')));
q('[data-question]').textContent = slide.question;
q('[data-description]').textContent = slide.description;
root.classList.toggle('stage--content', !slide.isInteractive);
root.classList.toggle('stage--video', slide.type === 'youtube');
renderMedia(slide);
root.classList.toggle('stage--closed', slide.isInteractive && !slide.isVotingOpen && !quizPhase && !qaStage && !orderRevealed);
root.classList.toggle('stage--closed', closed);
root.classList.toggle('stage--qa', !!qaStage);
var voting = q('[data-voting]');