feat: update purchase summary sidebar#59
Merged
jajjibhai008 merged 1 commit intomainfrom Oct 3, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a billing portal session feature to enable users to view receipts after successful checkout, along with UI improvements to the purchase summary sidebar.
Key changes:
- Implements billing portal session creation with API integration
- Adds conditional receipt and edit plan buttons to the purchase summary component
- Creates new React hooks and query functions to support the billing portal functionality
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| src/components/app/data/services/create-billing-portal.ts | New service for creating billing portal sessions with API endpoint |
| src/components/app/data/queries/queryKeyFactory.ts | Adds query key factory for billing portal session queries |
| src/components/app/data/queries/queries.ts | Exports query function for billing portal session creation |
| src/components/app/data/hooks/useCreateBillingPortalSession.tsx | Custom hook for managing billing portal session state |
| src/components/app/data/hooks/index.ts | Exports the new billing portal session hook |
| src/components/PurchaseSummary/ReceiptButton.tsx | New button component for viewing receipts via billing portal |
| src/components/PurchaseSummary/PurchaseSummary.tsx | Updates purchase summary to include edit plan and receipt buttons |
| src/components/PurchaseSummary/EditPlanButton.tsx | New conditional button for editing plan details |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
325cfd5 to
e8c880b
Compare
brobro10000
reviewed
Oct 1, 2025
Collaborator
brobro10000
left a comment
There was a problem hiding this comment.
Great work! left some comments
brobro10000
reviewed
Oct 1, 2025
e8c880b to
ba5931b
Compare
Contributor
There was a problem hiding this comment.
Pull Request Overview
Copilot reviewed 12 out of 12 changed files in this pull request and generated 2 comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
ba5931b to
e0cfe62
Compare
zamanafzal
approved these changes
Oct 2, 2025
brobro10000
approved these changes
Oct 2, 2025
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.
Description
Added Edit Plan and View receipt functionality in the purchase summary sidebar.
View receiptandEdit Planbuttons to the purchase summary componentEdit Plan Button:

View Receipt Button.

3c223652a042" />