fix: restore Docker production build (resolves #782)#803
Conversation
|
@kseungyong is attempting to deploy a commit to the OpenCut OSS Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (5)
✅ Files skipped from review due to trivial changes (1)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthroughThis PR fixes five TypeScript errors from issue ChangesAPI Contract Migrations and Runtime Type Guards
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
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 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 |
…ng positional-to-object API call sites Resolves OpenCut-app#782. - Add isShortcutKey type guard to actions/keybinding.ts - Add isActionWithOptionalArgs runtime guard to actions/definitions.ts - Migrate IndexedDBAdapter constructor + .set() calls to object args in storage migrations - Migrate DefinitionRegistry.register() call to object args in stickers/providers
98fa5cc to
ecc14c0
Compare
|
Closing — we're continuing development on a private fork. The branch |
Summary
Resolves #782. Restores production build by applying the 5 fixes that the issue author documented in detail.
Changes
actions/keybinding.ts— AddisShortcutKeytype guard (imported bykeybindings/persistence.ts)actions/definitions.ts— AddisActionWithOptionalArgsruntime guard (imported bykeybindings/persistence.ts)services/storage/migrations/runner.ts— Migrate IndexedDBAdapter constructor + .set() calls to object argsservices/storage/migrations/v1-to-v2.ts— Migrate 3 IndexedDBAdapter constructor call sites to object argsstickers/providers/index.ts— Migrate register() call to object argsAll five are mechanical fixes from a stale positional-arg refactor; no logic changes.
Verification
bunx tsc --noEmit— the 5 errors from Docker build fails on main: 5 TypeScript errors prevent production build #782 are gone (other pre-existing errors unrelated to this PR remain)bun run build— TypeScript compiled successfully (✓ Compiled successfully); build halts at env-var validation (ZodError for DATABASE_URL etc.) which requires secrets not present in a local clone — this is pre-existing and unrelated to our changesbun run lint— 0 errors in the 5 modified files (pre-existing lint errors in other files remain)Test Plan
Summary by CodeRabbit
Bug Fixes
Improvements