feat(launch): auto-start recording once a source is selected - #790
Conversation
When the user's first click is on the Record button but no source is chosen yet, the click opens the source picker. After the user picks a source, start the recording immediately instead of requiring a second click on Record. The auto-start only applies to the flow initiated from the Record button; picking a source from the dropdown still just changes the selection (no recording), and the countdown preference is still honored.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesDeferred recording start
Estimated code review effort: 2 (Simple) | ~10 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant LaunchWindow
participant SourcePopover
User->>LaunchWindow: Request recording without a source
LaunchWindow->>SourcePopover: Open source picker
User->>SourcePopover: Select source
SourcePopover->>LaunchWindow: Return selected source
LaunchWindow->>LaunchWindow: Start recording
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
|
Any maintainer ? |
Summary
Tightens the very first recording flow: when the user's first click is on the Record button but they haven't chosen a source yet, that click opens the source picker. After the user picks a source, the recording now starts immediately — they no longer have to click Record a second time.
Motivation (UX)
If the user's intent is already sitting on the Record button, the selection of a window/screen should finish the "start recording" action instead of forcing a redundant second click. This removes a source of confusion where the first click appears to "do nothing" (it only opened the picker).
How it works
pendingAutoStartRef.handleSourceSelectruns first (persisting the selection viaselectSource, as before), thentoggleRecording()is fired to begin recording while the popover closes in the background.Behavior preserved
toggleRecordingpath.useScreenRecorder,useLaunchWindowActions,SourcePopover); this is a single-file composition change inLaunchWindow.tsx.Validation
npm test: 106 files, 1027 tests passed (1 pre-existing skip).npx tsc --noEmit: clean.Summary by CodeRabbit