feat(ENG-79): add dispersal validators, types, and extract reusable schema validators#136
feat(ENG-79): add dispersal validators, types, and extract reusable schema validators#136Connorbelez merged 1 commit intomainfrom
Conversation
…chema validators Create convex/dispersal/validators.ts (dispersalStatusValidator, calculationDetailsValidator) and convex/dispersal/types.ts (CalculationDetails, DispersalEntry, ServicingFeeEntry) for the dispersal accounting domain. Refactor schema.ts to import these validators instead of inline definitions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Sorry @Connorbelez, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
|
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 (3)
📝 WalkthroughWalkthroughThree new files introduce type definitions and validators for a dispersal payment system. Two new TypeScript modules define core types for calculation details, dispersal entries, and servicing fees, along with corresponding Convex validators. The existing schema file is refactored to use these centralized validators instead of inline definitions. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
There was a problem hiding this comment.
Connorbelez has reached the 50-review limit for trial accounts. To continue receiving code reviews, upgrade your plan.
There was a problem hiding this comment.
Pull request overview
This PR introduces a small “dispersal” domain module that centralizes Convex validators and TS types for dispersal accounting records, and refactors the main Convex schema to reuse those validators instead of inline definitions.
Changes:
- Added
convex/dispersal/validators.tswith reusable validators for dispersal status and calculation audit details. - Added
convex/dispersal/types.tswith domain types (CalculationDetails,DispersalEntry,ServicingFeeEntry). - Refactored
convex/schema.tsto import and use the new dispersal validators fordispersalEntries.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| convex/schema.ts | Replaces inline status / calculationDetails validators for dispersalEntries with imports from the new dispersal module. |
| convex/dispersal/validators.ts | Introduces reusable Convex validators for dispersal status and calculation detail fields. |
| convex/dispersal/types.ts | Adds TS domain types to represent dispersal entries and the calculation audit payload in a shared location. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@coderabbitai please review |
|
🧠 Learnings used✅ Actions performedReview triggered.
|
…chema validators (#136) ## Create dispersal domain types and validators Create `convex/dispersal/validators.ts` with `dispersalStatusValidator` and `calculationDetailsValidator`, and `convex/dispersal/types.ts` with `CalculationDetails`, `DispersalEntry`, and `ServicingFeeEntry` types for the dispersal accounting domain. Refactor `schema.ts` to import these validators instead of using inline definitions for dispersal entries. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Reorganized dispersal system infrastructure with dedicated type and validator modules for improved code maintainability and consistency. <!-- end of auto-generated comment: release notes by coderabbit.ai -->

Create dispersal domain types and validators
Create
convex/dispersal/validators.tswithdispersalStatusValidatorandcalculationDetailsValidator, andconvex/dispersal/types.tswithCalculationDetails,DispersalEntry, andServicingFeeEntrytypes for the dispersal accounting domain. Refactorschema.tsto import these validators instead of using inline definitions for dispersal entries.Summary by CodeRabbit