feat(#503): add risk-adjusted deposit recommendation wizard#571
Open
coredevdave-cmd wants to merge 1 commit into
Open
feat(#503): add risk-adjusted deposit recommendation wizard#571coredevdave-cmd wants to merge 1 commit into
coredevdave-cmd wants to merge 1 commit into
Conversation
- Add POST /api/wizard/recommend endpoint that accepts profile (conservative/balanced/aggressive), timeHorizon, and liquidity, then returns ranked vault suggestions via rankStrategies() - Map wizard 'aggressive' to internal 'tolerant' DrawdownToleranceProfile - Apply liquidity and time-horizon multipliers before ranking - Add DepositWizard multi-step React component embedded in AIAdvisor.tsx - Add server-side tests covering all three risk profiles - Add client-side tests covering wizard navigation and API integration
|
@coredevdave-cmd is attempting to deploy a commit to the Edeh Victor's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@coredevdave-cmd 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! 🚀 |
Owner
|
@coredevdave-cmd kindly resolve conflict |
Owner
|
@coredevdave-cmd Kindly resolve conflict |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #503
Summary
Implements issue #503: Risk-Adjusted Deposit Recommendation Wizard.
Changes
Server
server/src/routes/wizard.ts—POST /api/wizard/recommendendpoint that acceptsprofile(conservative/balanced/aggressive),timeHorizon(short/medium/long), andliquidity(high/medium/low), then returns top-3 ranked vault suggestions with per-vault explanationsrankStrategies()fromriskAdjustedYieldServicewith the appropriateDrawdownToleranceProfile; maps wizard "aggressive" → internal "tolerant"/api/wizardinapp.tsClient
client/src/components/AIAdvisor/DepositWizard.tsx— 3-step wizard UI (risk tolerance → time horizon → liquidity needs → results) embedded inAIAdvisor.tsx, replacing the "Coming Soon" placeholderTests
server/src/routes/__tests__/wizard.test.ts— covers conservative, balanced, and aggressive profiles; verifies rank ordering and non-negative RAY scoresclient/src/components/__tests__/DepositWizard.test.tsx— covers step navigation, API call, error handling, and restart flowAcceptance Criteria