Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Apr 28, 2025


PR-Codex overview

This PR focuses on refactoring billing-related functions and components in the application, improving the structure and usability of billing URLs, and enhancing the user interface for billing alerts and loading states.

Detailed summary

  • Removed unused getBillingCheckoutUrl and getBillingPortalUrl props from various components.
  • Added new utility functions in utils/build-url.ts for building billing URLs.
  • Introduced StripeRedirectErrorPage for error handling in the checkout process.
  • Updated CancelPlanPage and ManageBillingPage to use new billing URL functions.
  • Refactored billing alert components to simplify props.
  • Enhanced PricingCard and BillingPricing components to use new URL building functions.
  • Improved loading states with a new Loading component.
  • Removed redundant billing-related action imports and functions from various files.

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

@vercel
Copy link

vercel bot commented Apr 28, 2025

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

Name Status Preview Comments Updated (UTC)
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 29, 2025 0:19am
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Apr 29, 2025 0:19am
login ⬜️ Skipped (Inspect) Apr 29, 2025 0:19am
thirdweb_playground ⬜️ Skipped (Inspect) Apr 29, 2025 0:19am
wallet-ui ⬜️ Skipped (Inspect) Apr 29, 2025 0:19am

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground April 28, 2025 21:24 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 April 28, 2025 21:24 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui April 28, 2025 21:24 Inactive
@vercel vercel bot temporarily deployed to Preview – login April 28, 2025 21:24 Inactive
@linear
Copy link

linear bot commented Apr 28, 2025

@changeset-bot
Copy link

changeset-bot bot commented Apr 28, 2025

⚠️ No Changeset found

Latest commit: bd9594d

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

@MananTank MananTank marked this pull request as ready for review April 28, 2025 21:24
@MananTank MananTank requested review from a team as code owners April 28, 2025 21:24
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Apr 28, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

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

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

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

@codecov
Copy link

codecov bot commented Apr 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.21%. Comparing base (0aadcd4) to head (bd9594d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6879   +/-   ##
=======================================
  Coverage   55.21%   55.21%           
=======================================
  Files         896      896           
  Lines       57057    57057           
  Branches     3957     3957           
=======================================
  Hits        31502    31502           
  Misses      25459    25459           
  Partials       96       96           
Flag Coverage Δ
packages 55.21% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 28, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 51.19 KB (0%) 1.1 s (0%) 229 ms (+272.26% 🔺) 1.3 s
thirdweb (cjs) 143.86 KB (0%) 2.9 s (0%) 344 ms (+89.74% 🔺) 3.3 s
thirdweb (minimal + tree-shaking) 5.67 KB (0%) 114 ms (0%) 128 ms (+2070.62% 🔺) 241 ms
thirdweb/chains (tree-shaking) 514 B (0%) 11 ms (0%) 64 ms (+4222.98% 🔺) 75 ms
thirdweb/react (minimal + tree-shaking) 19.38 KB (0%) 388 ms (0%) 144 ms (+1153.14% 🔺) 532 ms

@graphite-app
Copy link
Contributor

graphite-app bot commented Apr 29, 2025

Merge activity

<!--

## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"

If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):

## Notes for the reviewer

Anything important to call out? Be sure to also clarify these in your comments.

## How to test

Unit tests, playground, etc.

-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on refactoring the billing-related functionalities and improving the loading and error handling components in the application. It removes unnecessary async functions for URL retrieval and replaces them with direct URL constructions.

### Detailed summary
- Removed async functions for `getBillingPortalUrl` and `getBillingCheckoutUrl`.
- Introduced `buildCheckoutUrl`, `buildCancelPlanUrl`, and `buildBillingPortalUrl` functions.
- Updated components to use the new URL-building functions.
- Enhanced loading and error handling components: `Loading`, `StripeRedirectErrorPage`.
- Simplified storybook components by removing unnecessary props.
- Updated billing-related components to reflect changes in URL handling.
- Cleaned up imports and removed unused variables related to billing URLs.

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

<!-- end pr-codex -->
@vercel vercel bot temporarily deployed to Preview – login April 29, 2025 00:12 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 April 29, 2025 00:12 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui April 29, 2025 00:12 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground April 29, 2025 00:12 Inactive
@graphite-app graphite-app bot merged commit bd9594d into main Apr 29, 2025
23 checks passed
@graphite-app graphite-app bot deleted the tool-4309 branch April 29, 2025 00:20
@vercel vercel bot temporarily deployed to Production – thirdweb_playground April 29, 2025 00:20 Inactive
@vercel vercel bot temporarily deployed to Production – login April 29, 2025 00:20 Inactive
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.

3 participants