Files
jitsi-meet/css/_recording.scss
Mihaela Dumitruanddamencho f648b650ed feat(recording): redesign the record & transcribe dialog (#17746)
* feat(recording): redesign the record & transcribe dialog

Per-section start/stop with immediate actions, collapsible options
accordions with choice summaries, themed dropdowns for storage service
and transcription language, recorder follow-me in the dialog, and
start/stop-both footer actions. Applies to web and native via the
shared abstract components; e2e page object and specs updated.

* test(recording): add config-matrix and mixed-running-state coverage for the record dialog

Adds an e2e spec covering the Record & Transcribe dialog against the full
enabled/disabled matrix of recordingService, transcription, localRecording
and liveStreaming config flags, plus the mixed recording/transcription
running-state combinations, and the recordingService.sharingEnabled /
localRecording.notifyAllParticipants sub-flags. Extends
RecordingTranscriptionDialog and Toolbar pageobjects with the selectors
needed to observe these states.

* fix(recording): wire up recordAudioAndVideo to focus the transcription section

recordAudioAndVideo was documented to collapse the recording section and
expand transcription on open, but was never forwarded from
RecordingTranscriptionDialog to StartRecordingDialogContent nor read by
AbstractStartRecordingDialogContent, so the async-transcription/nudge
entry points that rely on it silently did nothing.

* fix(recording): drop dead initialRecording/initialTranscription nudge props

These props were removed from the dialog during the redesign, so passing
them from the recording/transcription nudge notifications silently did
nothing. recordAudioAndVideo (now wired up) already covers both nudge
cases: false focuses transcription, and the default (true) already
focuses recording.

* fix(recording): preserve isRecordingRequested when starting transcription alone

Starting transcription independently while a Dropbox/local recording was
already running overwrote the conference's recording metadata with just
{isTranscribingEnabled: true}, dropping isRecordingRequested. The
metadata listener reads that as recording having stopped, firing a
spurious "recording stopped" notification/sound to every participant
while the recording is still running. Spread the existing metadata, same
as the sibling stop-recording and stop-transcription branches already do.

* fix(recording): fall back to the first option when the selected value disappears

If the currently selected service/language stops being an available
option while the dialog stays open (e.g. a recording starts and cloud
options become unavailable), the dropdown trigger rendered a blank
label instead of a usable name. Fall back to the first option's label
in that case.

* fix(recording): type the native content constructor instead of using any

StartRecordingDialogContent's own constructor could use the existing
IProps type from its parent class one import away instead of any.
mapStateToProps' ownProps stays any: this component is a react-navigation
Screen, and its generic route/navigation prop types don't compose with a
narrower own-props type without modeling the whole navigation ParamList
(documented inline).

* perf(recording): stop recomputing recording options and summaries per render

_getRecordingServiceOptions() was called up to three times per render
(_shouldRenderFooter, the section's own _shouldRenderRecordingSection
guard, and the options mapping) — compute it once in
_renderRecordingSection() and pass it into _shouldRenderRecordingSection()
instead. _getRecordingSummary()/_getTranscriptionSummary() (each doing
several t() calls) ran unconditionally even though _renderAccordion only
displays the summary while collapsed — skip computing them while expanded.

* refactor(recording): hoist the six start/stop-then-dismiss wrappers to the base class

Web and native RecordingTranscriptionDialog each independently defined
_onStartRecordingPress/_onStopRecordingPress/_onStartTranscriptionPress/
_onStopTranscriptionPress/_onStartBothPress/_onStopBothPress — identical
except for the dismiss call (hideDialog() vs goBack()). Move the six
wrappers into AbstractStartRecordingDialog and add a _dismiss() hook that
each platform overrides once, following the same pattern already used
for _toggleScreenshotCapture.

* refactor(recording): reuse LanguageListItem for the transcription-language rows

The native transcription-language list rendered RecordingOptionRow over
the same "translation-languages:"-prefixed data the subtitles feature's
LanguageListItem already renders for the same job (checkmark + label +
pressable), including its own t() translation. Reuse it instead of
re-deriving the label locally. RecordingOptionRow remains for the
recording-service rows, which aren't language data.

* refactor(follow-me): centralize the recorder/regular Follow Me exclusivity rule

The rule that Follow Me and Follow Me Recorder are mutually exclusive was
hand-rolled a third time in the new recording dialog (alongside the
existing settings/web/ModeratorTab.tsx and settings/native/
ModeratorSection.tsx implementations, each via their own mechanism). Add
a setFollowMeRecorderExclusive thunk to the follow-me feature so this
call site dispatches the rule instead of re-deriving it locally, and
drop the now-unused _followMeEnabled prop that only existed to feed it.

* fix(lang): remove recording keys orphaned by the dialog redesign

recording.serviceDescription, recording.uploadToCloud and
recording.showAdvancedOptions were dropped from lang/main.json by the
dialog redesign but never removed from the 59 translated locale files,
failing the "Check lang files for translation errors" lint job
(superfluous-key). Removed from every locale file that still had them;
lang/main.json itself was never affected.

* fix(tests): avoid no-loop-func lint error in recordingDialogConfig.spec.ts

The matrix describe's it() closures, created inside a nested for loop,
referenced localRecordingSupportedByBrowser as a reassigned outer let,
tripping @typescript-eslint/no-loop-func. Hold it in a const-bound
object instead; only its property changes, and that happens once in
'setup' before any of the loop's tests run.

---------

Co-authored-by: damencho <[email protected]>
2026-08-31 08:54:58 -05:00

62 lines
1.2 KiB
SCSS

.live-stream-dialog {
/**
* Set font-size to be consistent with Atlaskit FieldText.
*/
font-size: 0.875rem;
.broadcast-dropdown {
text-align: left;
}
.form-footer {
display: flex;
margin-top: 5px;
text-align: right;
flex-direction: column;
.help-container {
display: flex;
}
}
.live-stream-cta {
a {
cursor: pointer;
}
}
.google-api {
margin-top: 10px;
min-height: 36px;
text-align: center;
width: 100%;
}
.google-error {
color: #c61600;
}
.google-panel {
align-items: center;
border-bottom: 2px solid rgba(0, 0, 0, 0.3);
display: flex;
flex-direction: column;
padding-bottom: 10px;
}
.warning-text {
color:#FFD740;
font-size: 0.75rem;
}
.youtube-go-live-warning {
margin-bottom: 16px;
padding: 8px 12px;
background-color: rgba(248, 174, 26, 0.1);
border-left: 3px solid #FFD740;
font-size: 0.875rem;
line-height: 1.25rem;
color: #FFD740;
}
}