fix: remove enforced recording limit #297
Reference in New Issue
Block a user
Delete Branch "clip-limits"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary by CodeRabbit
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Free
Run ID:
74a061bb-40c5-485a-b5d9-5869c2fd4711📥 Commits
Reviewing files that changed from the base of the PR and between
bfe53b46cfand2963098e4b.📒 Files selected for processing (2)
js/desktop/src/features/compose/recording-overlay.tsxjs/desktop/src/lib/constants.ts📝 Walkthrough
Walkthrough
useRecordingCountdownis refactored to remove the auto-stop dispatch that fired when the recording duration cap was reached. The hook now only updateselapsedon a 1-second interval and, at the cap, setsisWarningand emits a one-timetoast.warning. TheRECORDING_WARNING_SECONDSconstant is deleted fromconstants.ts.Changes
Recording Cap Behavior
js/desktop/src/lib/constants.ts,js/desktop/src/features/compose/recording-overlay.tsxRECORDING_WARNING_SECONDSfrom constants, drops therequestIntentauto-stop dispatch and warning threshold fromuseRecordingCountdown, and replaces cap-reached behavior with 1-second polling that setsisWarningand fires a one-timetoast.warningfromsonner.Estimated code review effort
🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Comment
@coderabbitai helpto get the list of available commands and usage tips.