fix: remove duplicate DEFAULT_RECIPE and SPEED_STEPS from types.ts#733
fix: remove duplicate DEFAULT_RECIPE and SPEED_STEPS from types.ts#733MehtabSandhu11 wants to merge 1 commit into
Conversation
|
@MehtabSandhu11 is attempting to deploy a commit to the magic-peach1's projects Team on Vercel. A member of the Team first needs to authorize it. |
👋 Thanks for your PR, @MehtabSandhu11!Welcome to Reframe — a browser-based video editor built for everyone 🎬 What happens next
Quick checklist
Useful links
Happy coding! 🎉 |
✅ PR Format Check Passed — @MehtabSandhu11Basic format checks passed. A maintainer will review your code changes. This does not mean the PR is approved — it just means the format is correct. |
df5e3c4 to
4f5c0fa
Compare
|
Hey @MehtabSandhu11! Note that PR #838 (recently merged) already consolidated Please check if this PR still has anything to add after rebasing on |
|
Hey @MehtabSandhu11! This PR has merge conflicts with To fix: git fetch origin
git checkout <your-branch>
git rebase origin/main
# resolve any conflicts
git push --force-with-lease origin <your-branch>Code review: The change is correct and well-motivated — removing the duplicate Once the merge conflicts are resolved and CI (build, lint, typecheck) all pass, this will be ready to merge. |
|
Hey @MehtabSandhu11! Thanks for catching this. The duplicate |
What
Removed
DEFAULT_RECIPEandSPEED_STEPSexports fromsrc/lib/types.ts.Why
Both constants were defined in two places with conflicting values:
types.tsconstants.tscontrastsaturationcontrast: 0andsaturation: 0are broken FFmpegeqfilter values — they produce a flat grey and greyscale image respectively. Any code importing fromtypes.tswould silently get these broken defaults.How
Deleted both exports from
types.ts. All existing consumers (useVideoEditor.ts,AudioSpeedControl.tsx) already import fromconstants.ts, so no import paths needed updating.Closes #726
Please add the appropriate labels for GSSoC so that I can get the points