refactor(editor): extract smoke export config#543
Conversation
|
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 (3)
📝 WalkthroughWalkthroughA new ChangesConfig Module Extraction and VideoEditor Integration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add 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 |
Description
Extracts the dev/smoke export URL parsing contract out of
VideoEditor.tsxinto a small pure module, then adds focused coverage for that parser boundary.Motivation
This is the first small editor architecture slice from the god-file refactor pass. The smoke/dev-open query parsing was self-contained, behavior-preserving, and safe to move before touching higher-risk editor state, playback, or export orchestration.
Type of Change
Related Issue(s)
None.
Changes Made
src/components/video-editor/smokeExportConfig.tsforgetSmokeExportConfigandgetDevOpenRecordingConfig.VideoEditor.tsxto import the parser functions instead of owning them inline.Scope Note
No UI behavior, export behavior, renderer selection, native helper behavior, or generated binary output is intentionally changed. This PR does not include native helper binaries, local probes, broad editor state movement, or exporter refactors.
Testing Guide
Review the parser extraction and run the focused unit test. Runtime smoke is not required for this slice because the moved code is pure URL parsing and TypeScript coverage verifies the existing call sites.
Checklist
Local Checks
npm test -- src/components/video-editor/smokeExportConfig.test.ts(4 tests passed)npx tsc --noEmit --pretty false(passed)npx biome check --formatter-enabled=false --assist-enabled=false src/components/video-editor/VideoEditor.tsx src/components/video-editor/smokeExportConfig.ts src/components/video-editor/smokeExportConfig.test.ts(exit 0; existing unrelatedVideoEditor.tsxexhaustive-deps warning remains)git diff --check main...HEAD(passed)Runtime/Repro Evidence
Not run. This PR only moves pure smoke/dev URL parsing into a tested module; no Electron, preview, export, or native runtime path changed.
Summary by CodeRabbit
Release Notes
Refactor
Tests