Conversation
…lt services for improved API handling
…c and improving UI layout
…ress, improving user visibility on loan statuses
…I clarity by labeling pool size and simplifying milestone status checks
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (38)
📝 WalkthroughWalkthroughMigrates HTTP clients to a centralized httpClient, refactors campaign UI to show milestone-based loans (visibleMilestones), adds a Stellar transaction helper module and endpoint, extends campaign status-by-vault flows, removes many investor API routes, and updates Soroban contract call argument usage. Changes
Sequence DiagramsequenceDiagram
participant Client as Client(UI)
participant VaultUI as Vault Enable UI
participant Backoffice as Backoffice Service<br/>(httpClient)
participant CoreAPI as Core API<br/>(HelperController / CampaignsController)
participant CampaignSvc as CampaignsService
participant Stellar as Horizon Network
Client->>VaultUI: trigger enable vault
VaultUI->>Backoffice: POST /vaults/enable (httpClient)
Backoffice->>CoreAPI: forward submit /helper/send-transaction (signedXdr)
CoreAPI->>Stellar: submit transaction XDR
Stellar-->>CoreAPI: TX hash + status
CoreAPI-->>Backoffice: response (status/hash)
Backoffice->>CoreAPI: PATCH /campaigns/by-vault/:vaultId/status (CLAIMABLE)
CoreAPI->>CampaignSvc: updateStatusByVaultId(vaultId, CLAIMABLE)
CampaignSvc-->>CoreAPI: updated campaign
CoreAPI-->>VaultUI: 200 OK
VaultUI->>Client: show success toast + invalidate "campaigns" cache
Estimated Code Review Effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly Related PRs
Suggested Reviewers
Poem
✨ Finishing Touches
🧪 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 |
…le for better configuration management
…ion-private-credit into refactor/some-issues
… details and improved transaction handling
…ing for campaign card
refactor: remove trustline module and USDC trustline setup from investment flow
Summary by CodeRabbit
Release Notes
New Features
Improvements