Skip to content

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

Merged
raycastbot merged 5 commits into
raycast:mainfrom
xmok:ext/wave
Aug 20, 2025
Merged

raycastbot merged 5 commits into
raycast:mainfrom
xmok:ext/wave

Conversation

@xmok

@xmok xmok commented Aug 20, 2025

Copy link
Copy Markdown
Contributor

Description

  • Enhance Invoice to show amounts due and paid
  • Move "Business Products And Services" to its own file
  • Add new product or service

Screencast

wave.mp4

Checklist

@raycastbot raycastbot added extension fix / improvement Label for PRs with extension's fix improvements extension: wave Issues related to the wave extension OP is author The OP of the PR is the author of the extension labels Aug 20, 2025
@raycastbot

Copy link
Copy Markdown
Collaborator

Thank you for the update! 🎉

Due to our current reduced availability during summer, the initial review may take up to 10-15 business days.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Edit Code Review Bot Settings | Greptile

Comment thread extensions/wave/src/lib/gql/nodes.ts Resolved
Comment thread extensions/wave/README.md Resolved

@pernielsentikaer pernielsentikaer left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi 👋

Looks good to me, approved 🔥

@pernielsentikaer pernielsentikaer self-assigned this Aug 20, 2025
@raycastbot
raycastbot merged commit b7bbdce into raycast:main Aug 20, 2025
@github-actions

ghost commented Aug 20, 2025

Copy link
Copy Markdown
Contributor

@raycastbot

ghost commented Aug 20, 2025

Copy link
Copy Markdown
Collaborator

🎉 🎉 🎉

We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag.

@xmok
xmok deleted the ext/wave branch August 23, 2025 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extension fix / improvement Label for PRs with extension's fix improvements extension: wave Issues related to the wave extension OP is author The OP of the PR is the author of the extension

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants