Repository navigation
Update Wave - Enhance Invoice to show amounts due and paid + Move "Business Products And Services" to its own file + Add new product or service - #21052
Conversation
|
Thank you for the update! 🎉 Due to our current reduced availability during summer, the initial review may take up to 10-15 business days. |
There was a problem hiding this comment.
Greptile Summary
This PR enhances the Wave extension with three main improvements: enhanced invoice display, better code organization, and new product creation functionality.
The invoice enhancement adds comprehensive payment information to the invoice detail view, displaying total amount, amount paid, and amount due with proper currency formatting. This provides users with complete financial visibility directly within Raycast.
The code organization improvement extracts the BusinessProductsAndServices component from the main manage-wave.tsx file into its own dedicated file. This refactoring follows best practices for component separation and maintainability while preparing for enhanced functionality.
The new product creation feature adds a complete form interface for creating products or services within Wave businesses. This includes proper form validation (especially for pricing fields), API integration with the Wave GraphQL API, and comprehensive error handling. The implementation requires expanded OAuth permissions to support write operations on products and customers.
Supporting changes include new GraphQL queries and mutations for fetching income accounts and creating products, enhanced invoice status color mapping to support OVERPAID status, and updated documentation to reflect Wave's new OAuth restrictions for free plan users.
PR Description Notes:
- Minor typo in README.md: 'ensuerd' should be 'ensured' (line 58)
Important Files Changed
Click to expand file changes
| Filename | Score | Overview |
|---|---|---|
| extensions/wave/CHANGELOG.md | 5/5 | Added properly formatted changelog entry documenting the three main enhancements |
| extensions/wave/src/manage-wave.tsx | 5/5 | Refactored to extract BusinessProductsAndServices component and enhanced invoice display with payment details |
| extensions/wave/src/lib/wave.ts | 5/5 | Added useGetValidIncomeAccounts function to fetch income accounts for product creation |
| extensions/wave/src/lib/gql/mutations.ts | 4/5 | Added createProductOrService GraphQL mutation following established patterns |
| extensions/wave/src/lib/gql/nodes.ts | 2/5 | Inconsistently added currency code field only to amountDue but not other currency objects |
| extensions/wave/README.md | 4/5 | Updated with OAuth subscription disclaimer and contains minor spelling error |
| extensions/wave/src/lib/utils.ts | 5/5 | Enhanced invoice status colors by adding OVERPAID status and improving PARTIAL status color |
| extensions/wave/src/lib/oauth.ts | 4/5 | Expanded OAuth scope from read-only to wildcard permissions for customer and product operations |
| extensions/wave/src/lib/gql/queries.ts | 4/5 | Added getValidIncomeAccounts GraphQL query for fetching income accounts |
| extensions/wave/src/lib/components/business-products-and-services.tsx | 4/5 | New component file with comprehensive product creation form and validation |
Confidence score: 3/5
- This PR contains significant functionality changes that require careful review due to OAuth permission expansions and new write operations
- Score reflects concerns about incomplete currency code implementation, OAuth scope expansion, and potential error handling gaps in the product creation flow
- Pay close attention to extensions/wave/src/lib/gql/nodes.ts for inconsistent currency field implementation and extensions/wave/src/lib/oauth.ts for expanded permissions
10 files reviewed, 2 comments
pernielsentikaer
left a comment
There was a problem hiding this comment.
Hi 👋
Looks good to me, approved 🔥
commented
Aug 20, 2025
|
Published to the Raycast Store: |
commented
Aug 20, 2025
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
Description
Invoiceto show amounts due and paidScreencast
wave.mp4
Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare located outside the metadata folder if they were not generated with our metadata tool