Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add subscription data section in account settings #1838

Conversation

FadhlanR
Copy link
Contributor

@FadhlanR FadhlanR commented Nov 25, 2024

Tickets: CS-7044, CS-7555, CS-7556

In this PR, I addressed three tickets, as mentioned above, because I believe they are related to each other. Here are the changes:

  • Updated the "Upgrade Plan" button in the account popover to redirect users to the Stripe Customer Portal when clicked.
  • Implemented a display for monthly credits in the account settings, along with a "Manage Plan" button that opens the Stripe Customer Portal.
  • Added a section for additional credits in the account settings, along with payment links to purchase more credits displayed below the additional credits section.
Screen.Recording.2024-11-26.at.11.10.47.mov

Copy link

github-actions bot commented Nov 25, 2024

Host Test Results

    1 files  ±0      1 suites  ±0   19m 46s ⏱️ -7s
686 tests ±0  685 ✔️ ±0  1 💤 ±0  0 ±0 
691 runs  ±0  690 ✔️ ±0  1 💤 ±0  0 ±0 

Results for commit 8ca738f. ± Comparison against base commit 6337348.

♻️ This comment has been updated with latest results.

@FadhlanR FadhlanR marked this pull request as ready for review November 26, 2024 05:03
packages/host/config/environment.js Outdated Show resolved Hide resolved
packages/host/app/services/billing-service.ts Outdated Show resolved Hide resolved
@FadhlanR FadhlanR force-pushed the cs-7044-cs-7555-cs-7556-subscription-section-in-account-settings branch from 245972c to fdeeb5a Compare November 26, 2024 10:31
@FadhlanR FadhlanR requested a review from jurgenwerk November 27, 2024 06:25
@FadhlanR
Copy link
Contributor Author

@jurgenwerk I've updated the codes to use the stripe links from realm server endpoint.

Copy link
Contributor

@jurgenwerk jurgenwerk left a comment

Choose a reason for hiding this comment

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

Can't find the server part for this, is it missing?

@FadhlanR
Copy link
Contributor Author

Can't find the server part for this, is it missing?

We have a different ticket for that. It will be in another PR.

@jurgenwerk
Copy link
Contributor

Blocked by #1850.

@FadhlanR FadhlanR force-pushed the cs-7044-cs-7555-cs-7556-subscription-section-in-account-settings branch from af6826f to 01c46d1 Compare November 29, 2024 09:33
@FadhlanR FadhlanR requested a review from jurgenwerk November 29, 2024 14:42
@jurgenwerk
Copy link
Contributor

jurgenwerk commented Nov 29, 2024

External links (customer portal, credit buy links) need to open in a new window.

@FadhlanR
Copy link
Contributor Author

FadhlanR commented Dec 2, 2024

External links (customer portal, credit buy links) need to open in a new window.

Please check it again.

@jurgenwerk jurgenwerk merged commit 9d3f8f8 into main Dec 2, 2024
32 checks passed
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.

2 participants