Add API Trace Viewer, Recipient Verification, Cash Flow Analytics, and Approval Threshold Rules#248
Merged
rohan911438 merged 1 commit intoMay 30, 2026
Conversation
…cs, and approval threshold rules Issues: rohan911438#236 rohan911438#237 rohan911438#238 rohan911438#239 ## Issue rohan911438#236 - Add API Request Trace Viewer - Backend: RequestTraceService with trace capture, filtering, and stats - Backend: /admin/traces endpoints with correlation ID search - Frontend: AdminApiTraces page with expandable trace details - Builds on existing correlation ID infrastructure in api.ts ## Issue rohan911438#237 - Add Recipient Verification Badge System - Backend: VerificationService with badge assignment and trust scoring - Backend: /verification/* and /admin/verifications/* endpoints - Frontend: VerificationBadge component with tooltip support - Frontend: RecipientVerification admin page with approve/reject workflow ## Issue rohan911438#238 - Add Cash Flow Analytics Dashboard - Backend: CashFlowAnalyticsService with summary, trends, monthly data - Backend: /analytics/cash-flow/* endpoints - Frontend: CashFlowAnalytics page with Recharts (bar, area, pie charts) - Monthly summaries, top recipients, funding sources breakdown ## Issue rohan911438#239 - Add Transfer Approval Threshold Rules - Backend: ApprovalThresholdService with configurable rules engine - Backend: /admin/thresholds endpoints (CRUD + toggle) - Configurable conditions: amount, country, risk score, user tier, daily volume - Multi-level approval support (1-3 levels) - Frontend: AdminThresholdRules page with create/edit/delete/toggle UI
|
@dimka90 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! 🚀 |
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.
Summary
This PR implements four features that enhance debugging, verification, analytics, and transfer governance.
Issue #236 - Add API Request Trace Viewer
RequestTraceServicecaptures API request traces with correlation IDs, method, path, status code, timing, and error details. Routes at/admin/traceswith filtering by correlation ID, method, status, date range, and pagination.AdminApiTracespage with stats cards, filterable trace table, expandable rows showing full request/response details, and auto-refresh.Issue #237 - Add Recipient Verification Badge System
VerificationServicemanages recipient verification status, badge assignment, trust scoring, and verification requests. Endpoints for creating/approving/rejecting verification requests.VerificationBadgecomponent with tooltip support (verified/trusted/frequent/business/new badges).RecipientVerificationadmin page with two tabs: verified recipients list and pending verification requests with approve/reject actions.Issue #238 - Add Cash Flow Analytics Dashboard
CashFlowAnalyticsServicewith demo data generating 90-day daily trends, 6-month summaries, top recipients, and funding sources.CashFlowAnalyticspage with summary cards, monthly bar chart (inflow vs outflow), 30-day net flow trend area chart, pie chart of funding sources, top recipients list, and monthly breakdown table.Issue #239 - Add Transfer Approval Threshold Rules
ApprovalThresholdServicewith configurable rules engine supporting conditions (amount_above, amount_below, amount_range, destination_country, risk_score, user_tier, daily_volume) and actions (allow, require_approval, require_second_approval, require_compliance_review, block). Full CRUD + toggle endpoints.AdminThresholdRulespage with approval levels overview, rules list with enable/disable toggle, edit/delete actions, and a create/edit dialog with form fields for all rule properties.Files Changed
Backend (new):
backend/src/modules/traces/requestTraceService.tsbackend/src/routes/traces.tsbackend/src/modules/verification/verificationService.tsbackend/src/routes/verification.tsbackend/src/modules/analytics/cashFlowAnalyticsService.tsbackend/src/routes/analytics.tsbackend/src/modules/approvals/approvalThresholdService.tsbackend/src/routes/thresholds.tsBackend (modified):
backend/src/container.ts- register 4 new servicesbackend/src/app.ts- register 4 new route modulesFrontend (new):
src/pages/AdminApiTraces.tsxsrc/components/VerificationBadge.tsxsrc/pages/RecipientVerification.tsxsrc/pages/CashFlowAnalytics.tsxsrc/pages/AdminThresholdRules.tsxFrontend (modified):
src/App.tsx- add routes for new pagessrc/pages/AdminDashboard.tsx- add links to new admin pagescloses #236
closes #237
closes #238
closes #239