-
Notifications
You must be signed in to change notification settings - Fork 2
fix(reorder): allow fractional and negative positions for task reorde… #215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…ring The Zod validation schema required newPosition to be a non-negative integer, but the frontend uses fractional positioning (averaging neighbor positions) when reordering tasks between items. This caused validation failures when reordering task lists with more than 2 tasks. - Remove .int() and .gte(0) constraints from reorderSchema - Add .finite() to prevent Infinity/NaN values - Update tests to verify fractional (2.5) and negative (-1) positions work
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
📝 WalkthroughWalkthroughThe pull request modifies the PATCH Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧹 Recent nitpick comments
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (5)apps/web/src/app/**/route.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.ts📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{ts,tsx,js,jsx,json}📄 CodeRabbit inference engine (AGENTS.md)
Files:
apps/web/src/**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧬 Code graph analysis (1)apps/web/src/app/api/pages/reorder/__tests__/route.test.ts (2)
🔇 Additional comments (3)
✏️ Tip: You can disable this entire section by setting 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 |
…ring
The Zod validation schema required newPosition to be a non-negative integer, but the frontend uses fractional positioning (averaging neighbor positions) when reordering tasks between items. This caused validation failures when reordering task lists with more than 2 tasks.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.