Feature/invoice features and wallet balance - #543
Open
favourawaku wants to merge 4 commits into
Open
Conversation
|
@favourawaku is attempting to deploy a commit to the kingsman-99's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@favourawaku 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
Implemented four feature issues for enhanced invoice management and wallet integration:
Changes
#506 — Multi-Select Action Toolbar for Invoice List
useInvoiceSelection— manages selected invoice state with toggle/select-all/deselect-all operationsBulkActionToolbar— sticky bottom bar with Archive, Delete, and Tag actions; displays selected countPATCH /api/invoices/bulkto supportaction: 'archive' | 'delete' | 'tag'with appropriate payload validation#507 — Invoice Clone from Existing Record
/invoice/new?cloneFrom=<id>CloneBanner— dismissable banner on creation form indicating clone source?cloneFrom=parameter support; pre-fills title, memo, amount, recipients; resets ID, status, expiresAt#508 — Connected Wallet Balance Display with Manual Refresh
useWalletBalance— fetches balances via SWR, supports auto-refresh with 30s intervalGET /api/wallet/balance?address=<address>— queries Horizon/accounts/endpoint, returns XLM (7 decimals) and USDC (2 decimals)WalletBalanceDisplay— shows both balances with skeleton loaders; refresh button triggers manual refetchWalletMenu— dropdown with full address display (copyable), balance display, disconnect option#509 — Invoice Public Page Open Graph and SEO Metadata
src/app/invoice/[id]/public/page.tsx— public, unauthenticated invoice viewgenerateMetadataasync function fetches invoice, returns OG tags (title, description, image), Twitter card, robots metaGET /api/invoice/[id]/og-image— SVG-based dynamic OG image rendering invoice title, status, total, funded %, progress barrobots: 'noindex'to prevent indexing of draft invoicesAcceptance Criteria Met
?cloneFrom=, pre-fills data, banner displays<meta name="robots" content="noindex">generateMetadataparallel to page renderImplementation Notes
@vercel/ognot in dependencies — OG images use SVG fallback (production can add @vercel/og for enhanced visuals)Closes #506, Closes #507, Closes #508, Closes #509