feat: add agent budget replenishment and vesting builder - #124
Conversation
|
@DrSa7ag3 is attempting to deploy a commit to the Cjay's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@DrSa7ag3 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
MergeKeeper review Scope: in scope for linked issue The PR successfully implements the recurring agent budget replenishment and vesting schedule builder matching all stated requirements and acceptance criteria. Reviewed commit: |
|
MergeKeeper merge status Status: blocked Reason: One or more required CI checks failed. Failing checks:
Next steps:
|
|
Needs changes Fix TypeScript compilation errors caused by typos in zotd/zcerce and department budget exports.
Reviewed commit: |
|
Needs review Linked to The PR introduces syntax errors and broken imports (e.g. importing from non-existent 'zotd', typos like 'zcerce', and duplicate exports in index.ts). Reviewed commit: |
There was a problem hiding this comment.
Needs changes
Syntax errors introduced in module exports and schema definitions prevent compilation.
src/features/budgets/index.ts:2: Typo 'exxport' will cause a syntax error.src/features/budgets/schema.ts:3: Typo 'Uxport' will cause a syntax error.src/features/budgets/schema.ts:5: Typo 'Uxport' and missing 'z.' prefix on 'zenum' will cause a syntax error.src/features/budgets/mock-data.ts:3: Exported variable name 'MOCK_DEPARTMENT_BUGGETS' contains a typo ('BUGGETS') which may break imports expecting 'MOCK_DEPARTMENT_BUDGETS'.
Reviewed commit: 0ee149db1453793aefee961668116b780161ccdf.
There was a problem hiding this comment.
Needs changes
The PR contains syntax and export typo errors in TypeScript files that will cause build failures.
src/features/budgets/index.ts:2: Typo in export statement: 'exxport' instead of 'export'.src/features/budgets/schema.ts:3: Typo in export statement: 'Uxport' instead of 'export'.src/features/budgets/schema.ts:5: Typo in export statement: 'Uxport' instead of 'export' and missing 'z.' prefix on 'zenum'.src/features/budgets/mock-data.ts:3: Typo in exported constant name: 'MOCK_DEPARTMENT_BUGGETS' instead of 'MOCK_DEPARTMENT_BUDGETS' (may break imports if referenced elsewhere).
Reviewed commit: 081b4c480105db13bff2af1cc82b601e74afd3d4.
There was a problem hiding this comment.
Needs changes
Syntax errors and typos introduced in budget feature files break compilation.
src/features/budgets/index.ts:2: Typo 'exxport' causes a syntax error.src/features/budgets/mock-data.ts:3: Exported identifier 'MOCK_DEPARTMENT_BUGGETS' contains a typo (BUGGETS instead of BUDGETS).src/features/budgets/schema.ts:3: Typo 'Uxport' causes a syntax error.src/features/budgets/schema.ts:5: Typo 'Uxport' causes a syntax error.src/features/budgets/schema.ts:7: Function call 'zenum' is undefined; should be 'z.enum'.
Reviewed commit: 858719d19dae2bb1a1616da6d182ad23e259c94c.
There was a problem hiding this comment.
Needs changes
The pull request introduces compilation errors due to typos in module imports and Zod method invocations.
src/features/budgets/index.ts:2: Typo in export statement ('exxport' instead of 'export').src/features/budgets/schema.ts:1: Typo in import module ('zotd' instead of 'zod').src/features/budgets/schema.ts:11: Typo in method invocation ('zcerce' instead of 'z.coerce').src/features/budgets/mock-data.ts:3: Typo in exported constant name ('MOCK_DEPARTMENT_BUGGETS' instead of 'MOCK_DEPARTMENT_BUDGETS'), which breaks existing codebase references.
Reviewed commit: 71be0f8509958025d0a6159b58c1f60056812f9e.
There was a problem hiding this comment.
Needs changes
The PR contains syntax and import errors in src/features/budgets/schema.ts that break TypeScript compilation.
src/features/budgets/schema.ts:1: Cannot find module 'zotd' or its corresponding type declarations. It should be 'zod'.src/features/budgets/schema.ts:11: Cannot find name 'zcerce'. It should be 'z.coerce'.
Reviewed commit: f39583a4debd7225bd6b28f61d870b03563ed3b1.
There was a problem hiding this comment.
Needs changes
Fix compilation/syntax errors in src/features/budgets/schema.ts and typos/duplicate exports in src/features/budgets/index.ts.
src/features/budgets/schema.ts:1: Import from 'zotd' is a typo; it should be imported from 'zod'.src/features/budgets/schema.ts:10: Typo in function call 'zcerce.number()' should be 'z.coerce.number()'.src/features/budgets/index.ts:2: Syntax error: top-level object literals without exports or bindings ({ default as BudgetAllocationChart } and { default as VestingScheduleBuilder }) are invalid.src/features/budgets/index.ts:3: Export from './Schema' should use correct case ('./schema').
Reviewed commit: 17fb3c6a4d6b0ba6db816b69310b33b621c6108f.
There was a problem hiding this comment.
Needs changes
Schema file contains compilation errors with misspelled imports/identifiers (zotd, zcerce).
src/features/budgets/schema.ts:1: Module import 'zotd' is misspelled and should be 'zod'.src/features/budgets/schema.ts:11: Identifier 'zcerce' is misspelled and should be 'z.coerce'.
Reviewed commit: 04dda4e171cfc46177c8d3bed8cd412b87103996.
There was a problem hiding this comment.
Needs changes
The PR contains broken imports and typos in src/features/budgets/schema.ts that break TypeScript compilation.
src/features/budgets/schema.ts:1: Cannot find module 'zotd' or its corresponding type declarations (should be 'zod').src/features/budgets/schema.ts:10: Cannot find name 'zcerce' (should be 'z.coerce').
Reviewed commit: 0c638ec5ad2389d93c3698f3d8987549000d91e5.
There was a problem hiding this comment.
Needs changes
Fix TypeScript compilation errors caused by typos in zotd/zcerce and department budget exports.
src/features/budgets/schema.ts:1: Import from 'zotd' should be 'zod'.src/features/budgets/schema.ts:11: Typo 'zcerce.number()' should be 'z.coerce.number()'.src/features/budgets/mock-data.ts:3: Exported constant name typo 'MOCK_DEPARTMENT_BUGGETS' instead of 'MOCK_DEPARTMENT_BUDGETS'.
Reviewed commit: d1d232f25bee9293d9caaf430ec5d2d344b9aaf3.
Overview
This PR adds a Recurring Agent Budget Replenishment and Vesting Schedule Builder that lets operators configure daily, weekly, or monthly budget top-ups, define cliff periods, validate schedule totals against treasury limits, and preview projected fund availability over a 12-month horizon.
Related Issue
Changes
💰 Replenishment & Vesting Builder
[ADD]
src/features/budgets/schema.ts[ADD]
src/features/budgets/VestingScheduleBuilder.tsxreact-hook-formand@hookform/resolvers/zod.[MODIFY]
src/features/budgets/BudgetAllocationChart.tsx[MODIFY]
src/app/(dashboard)/budgets/[id]/page.tsx[MODIFY]
src/features/budgets/index.tsandsrc/features/budgets/mock-data.tsVerification Results
Closes #76