Skip to content

Conversation

@jnsdls
Copy link
Member

@jnsdls jnsdls commented Nov 18, 2024

PR-Codex overview

This PR focuses on updating the billing and subscription management features in the dashboard application. It refines routing, adds new API integrations, and modifies components to handle team subscriptions more effectively.

Detailed summary

  • Updated URLs for subscription plans to include /billing.
  • Introduced getStripeBillingPortalLink API function for billing portal access.
  • Modified Billing component to utilize subscriptions instead of account usage.
  • Refactored PlanInfoCard to display subscription details.
  • Added new teamSubscriptionsStub for testing.
  • Enhanced error handling for subscription fetching.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Nov 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
thirdweb-www ❌ Failed (Inspect) Nov 19, 2024 1:48am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Nov 19, 2024 1:48am
thirdweb_playground ⬜️ Skipped (Inspect) Nov 19, 2024 1:48am
wallet-ui ⬜️ Skipped (Inspect) Nov 19, 2024 1:48am

@changeset-bot
Copy link

changeset-bot bot commented Nov 18, 2024

⚠️ No Changeset found

Latest commit: 16d815b

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel vercel bot temporarily deployed to Preview – wallet-ui November 18, 2024 19:05 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 18, 2024 19:05 Inactive
@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 18, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@vercel vercel bot temporarily deployed to Preview – docs-v2 November 18, 2024 19:05 Inactive
@jnsdls jnsdls marked this pull request as ready for review November 18, 2024 19:06
@jnsdls jnsdls requested a review from MananTank as a code owner November 18, 2024 19:06
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Nov 18, 2024
Copy link
Member Author

jnsdls commented Nov 18, 2024

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@gregfromstl gregfromstl changed the title add /subscriptions endpoint [Dashboard] Feature: Add /subscriptions endpoint Nov 18, 2024
gregfromstl
gregfromstl previously approved these changes Nov 18, 2024
@codecov
Copy link

codecov bot commented Nov 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.53%. Comparing base (181f3a8) to head (16d815b).
Report is 1 commits behind head on 11-14-integrate_billing_v2_init.

Additional details and impacted files
@@                       Coverage Diff                        @@
##           11-14-integrate_billing_v2_init    #5447   +/-   ##
================================================================
  Coverage                            45.53%   45.53%           
================================================================
  Files                                 1070     1070           
  Lines                                55709    55709           
  Branches                              4031     4031           
================================================================
  Hits                                 25365    25365           
  Misses                               29657    29657           
  Partials                               687      687           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 181f3a8
packages 40.64% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

---- 🚨 Try these New Features:

@github-actions
Copy link
Contributor

github-actions bot commented Nov 18, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 44.9 KB (0%) 899 ms (0%) 406 ms (+5.81% 🔺) 1.4 s
thirdweb (cjs) 105.02 KB (0%) 2.2 s (0%) 995 ms (+36.96% 🔺) 3.1 s
thirdweb (minimal + tree-shaking) 5.61 KB (0%) 113 ms (0%) 79 ms (+360.96% 🔺) 191 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 46 ms (+569.8% 🔺) 56 ms
thirdweb/react (minimal + tree-shaking) 18.41 KB (0%) 369 ms (0%) 117 ms (+25.94% 🔺) 485 ms

@jnsdls jnsdls force-pushed the 11-18-add__subscriptions_endpoint branch from 6e09008 to a7751ed Compare November 18, 2024 19:18
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 18, 2024 19:18 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 18, 2024 19:18 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 18, 2024 19:18 Inactive
@MananTank MananTank force-pushed the 11-14-integrate_billing_v2_init branch from 911470e to 89472c7 Compare November 18, 2024 21:05
@MananTank MananTank force-pushed the 11-18-add__subscriptions_endpoint branch from a7751ed to 9ec680f Compare November 18, 2024 21:05
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 18, 2024 21:05 Inactive
@MananTank MananTank force-pushed the 11-18-add__subscriptions_endpoint branch from 79a7e92 to 1a36e7c Compare November 18, 2024 21:33
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 18, 2024 21:33 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 18, 2024 21:33 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 18, 2024 21:33 Inactive
@MananTank MananTank force-pushed the 11-14-integrate_billing_v2_init branch from 6f49771 to 614649a Compare November 18, 2024 22:25
@MananTank MananTank force-pushed the 11-18-add__subscriptions_endpoint branch from 1a36e7c to 532f4d7 Compare November 18, 2024 22:25
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 18, 2024 22:25 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 18, 2024 22:25 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 18, 2024 22:25 Inactive
@MananTank MananTank force-pushed the 11-14-integrate_billing_v2_init branch from 614649a to 2d92d65 Compare November 18, 2024 23:26
@MananTank MananTank force-pushed the 11-18-add__subscriptions_endpoint branch from 532f4d7 to cfa5ac0 Compare November 18, 2024 23:26
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 18, 2024 23:26 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 18, 2024 23:26 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 18, 2024 23:26 Inactive
@jnsdls jnsdls force-pushed the 11-14-integrate_billing_v2_init branch from 2d92d65 to 181f3a8 Compare November 19, 2024 01:42
@jnsdls jnsdls force-pushed the 11-18-add__subscriptions_endpoint branch from cfa5ac0 to 16d815b Compare November 19, 2024 01:42
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 19, 2024 01:42 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 19, 2024 01:42 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 19, 2024 01:42 Inactive
@jnsdls jnsdls merged commit f8de6db into 11-14-integrate_billing_v2_init Nov 19, 2024
28 of 30 checks passed
@jnsdls jnsdls deleted the 11-18-add__subscriptions_endpoint branch November 19, 2024 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants