Skip to content

Conversation

@jajjibhai008
Copy link
Contributor

@jajjibhai008 jajjibhai008 commented Oct 1, 2025

Description

Added Edit Plan and View receipt functionality in the purchase summary sidebar.

  • Added conditional View receipt and Edit Plan buttons to the purchase summary component
  • Implements billing portal session creation with API integration
  • Creates new React hooks and query functions to support the billing portal functionality

Edit Plan Button:
Screenshot 2025-10-01 at 5 12 35 PM

View Receipt Button.
Screenshot 2025-10-01 at 5 14 42 PM
3c223652a042" />

Copilot AI review requested due to automatic review settings October 1, 2025 11:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

@jajjibhai008 jajjibhai008 force-pushed the eahmadjaved/ENT-10909 branch from 325cfd5 to e8c880b Compare October 1, 2025 11:34
Copy link
Collaborator

@brobro10000 brobro10000 left a comment

Choose a reason for hiding this comment

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

Great work! left some comments

Copilot AI review requested due to automatic review settings October 2, 2025 10:35
@jajjibhai008 jajjibhai008 force-pushed the eahmadjaved/ENT-10909 branch from e8c880b to ba5931b Compare October 2, 2025 10:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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.

@jajjibhai008 jajjibhai008 merged commit 30be7be into main Oct 3, 2025
5 checks passed
@jajjibhai008 jajjibhai008 deleted the eahmadjaved/ENT-10909 branch October 3, 2025 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants