Repository navigation
feat: transaction history, funding thresholds, invoice classification and KYC document dashboard - #484
Merged
Conversation
… and KYC document dashboard - Transaction history page at /transactions with type filter, infinite scroll, newest-first ordering and Stellar Expert deep links (StellarState#294) - Funding progress bar shows min threshold marker, raised / min / max labels and Minimum met / Fully funded badges (StellarState#462) - Admin review queue assigns category and risk tier, required before approval; values shown on invoice cards and detail page (StellarState#468) - Issuer KYC document cards per document type with resubmit / renew upload flow that resets the document to pending (StellarState#469) Closes StellarState#294 Closes StellarState#462 Closes StellarState#468 Closes StellarState#469
|
@JamesVictor-O 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.
Resolves four issues in one PR.
#294: Transaction history page
/transactionspage (linked from the desktop and mobile nav) listing the connected wallet's platform transactions, newest first.IntersectionObserversentinel.fetchWalletTransactions→GET /wallets/:address/transactions?type=&cursor=. Common backend spellings are normalized (investment→ invest,cancel_listing→ cancel, …).#462: Funding threshold progress bar
FundingProgressBartakes an optionalminThreshold. When set, it draws a marker on the bar and shows Raised / Min threshold / Max cap labels.Invoicegains optionalmin_funding_thresholdandmax_funding_cap. Cards and the detail page use the cap as the target, falling back toamount. Existing callers are unaffected.#468: Admin category and risk tier assignment
/admin/reviewgets category (trade finance, real estate, SME, infrastructure) and risk tier (low, medium, high) selectors per pending invoice. Values are saved throughPATCH /admin/invoices/:id/classification./admin/review, and the endpoint returns 403 for non-admins. The marketplace already filters by category and risk tier (from Build investor dashboard home with portfolio summary and quick actions #420).fetchPendingInvoices/fetchReviewedInvoices/approveInvoice/rejectInvoicehelpers and their types. The review components imported these, but they were never defined inlib/api, so those components failed to type-check. The existingAdminInvoiceReviewtests now pass.CompareToggleButtonimport ininvoice-card.tsx.#469: Issuer KYC document dashboard
/kyc/statusnow shows a card per document: business registration, director ID and proof of address.uploadDocument, then callPOST /kyc/documents/:type/resubmit. The card switches to pending straight away.fetchKycDocuments→GET /kyc/documents.Testing
TransactionHistory,KycDocumentStatusDashboard,AdminInvoiceReviewQueue.classification,InvoiceClassificationBadges, plus threshold cases inInvoiceFundingProgressBar. All pass.devfails on this branch, and 4 tests that failed ondevnow pass. TypeScript errors went from 389 ondevto 369. The remaining failures and errors were already ondevand are in files this PR doesn't touch.Closes #294
Closes #462
Closes #468
Closes #469