testapp: Add captions configuration to room settings and UI

This commit is contained in:
CSantosM 2026-01-23 14:28:30 +01:00
parent 4751e7e989
commit 96b5cd249e
3 changed files with 50 additions and 1 deletions

View File

@ -163,7 +163,8 @@ const getDefaultRoomConfig = (): MeetRoomConfig => ({
},
chat: { enabled: true },
virtualBackground: { enabled: true },
e2ee: { enabled: false }
e2ee: { enabled: false },
captions: { enabled: false }
});
// Helper function to create a room for testing

View File

@ -365,6 +365,51 @@
</div>
</div>
</div>
<!-- Captions Config -->
<div class="accordion-item">
<h2 class="accordion-header">
<button
class="accordion-button collapsed"
type="button"
data-bs-toggle="collapse"
data-bs-target="#captionsCollapse"
aria-expanded="false"
aria-controls="captionsCollapse"
data-testid="captions-config-toggle"
>
Captions Settings
</button>
</h2>
<div
id="captionsCollapse"
class="accordion-collapse collapse"
data-bs-parent="#configAccordion"
>
<div class="accordion-body">
<div class="form-check">
<input
type="checkbox"
name="config.captions.enabled"
id="captions-enabled"
class="form-check-input"
data-testid="captions-enabled-checkbox"
/>
<label
for="captions-enabled"
class="form-check-label"
>
Enable Captions
</label>
</div>
<div class="alert alert-info mt-2" role="alert">
<small>
<strong>Note:</strong> Enables live transcription (captions) during meetings.
</small>
</div>
</div>
</div>
</div>
</div>
</div>

View File

@ -173,6 +173,9 @@ const processFormConfig = (body: any): any => {
},
e2ee: {
enabled: body['config.e2ee.enabled'] === 'on'
},
captions: {
enabled: body['config.captions.enabled'] === 'on'
}
};