Fix blank clip detail page (undefined var) + type-check the SPA in build#24
Conversation
Switching the preview to id-based URLs removed `const file`, but the player conditional still used it — a ReferenceError that blanked /clip/:id. Use clip.output_path instead. The client SPA isn't type-checked by vite/esbuild, so this shipped silently; build-studio.sh now runs the client tsc to catch it.
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe build script gains a pre-build TypeScript type-check ( ChangesClipPlayer Fix and Build-Time Type Guard
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
ClipDetail referenced a removed
filevariable in the player conditional → ReferenceError → blank /clip/:id. Use clip.output_path. The client SPA isn't type-checked by the build (vite/esbuild skip types), so it shipped silently; build-studio.sh now runs the client tsc.Summary by CodeRabbit
Bug Fixes
Chores