Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Dec 4, 2024

Fixes DASH-493


PR-Codex overview

This PR primarily focuses on integrating the redirectToCheckout functionality across various components, enhancing the billing process, and improving UI elements for better user experience.

Detailed summary

  • Updated TransactionButton to streamline class names.
  • Integrated redirectToCheckout in LoginPage, OnboardingUI, ChoosePlan, and PlanInfoCard.
  • Enhanced CheckoutButton and BillingPortalButton with new redirect actions.
  • Updated multiple story files to include ConnectButton instead of CustomConnectWallet.
  • Refactored FaucetButton to replace wallet connection logic with a sign-in button.
  • Improved PricingCard to support additional checkout functionality.
  • Added types for billing actions to ensure type safety.

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

@vercel
Copy link

vercel bot commented Dec 4, 2024

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 Dec 5, 2024 5:18am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Dec 5, 2024 5:18am
thirdweb_playground ⬜️ Skipped (Inspect) Dec 5, 2024 5:18am
wallet-ui ⬜️ Skipped (Inspect) Dec 5, 2024 5:18am

@vercel vercel bot temporarily deployed to Preview – wallet-ui December 4, 2024 14:33 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 4, 2024 14:33 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 4, 2024 14:33 Inactive
@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 4, 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.

@changeset-bot
Copy link

changeset-bot bot commented Dec 4, 2024

⚠️ No Changeset found

Latest commit: 91f3b4b

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 December 4, 2024 14:33
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Dec 4, 2024
Copy link
Member Author

MananTank commented Dec 4, 2024

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

@MananTank MananTank force-pushed the 12-04-_dashboard_fix_all_crashing_stories_in_storybook branch from e01c53a to da30248 Compare December 4, 2024 14:35
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 4, 2024 14:35 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 4, 2024 14:35 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 4, 2024 14:35 Inactive
@linear
Copy link

linear bot commented Dec 4, 2024

@github-actions
Copy link
Contributor

github-actions bot commented Dec 4, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 47.96 KB (0%) 960 ms (0%) 3 s (-1.54% 🔽) 4 s
thirdweb (cjs) 107.42 KB (0%) 2.2 s (0%) 8.2 s (+9.15% 🔺) 10.3 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 308 ms (-12.81% 🔽) 420 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 82 ms (+48.7% 🔺) 92 ms
thirdweb/react (minimal + tree-shaking) 18.3 KB (0%) 367 ms (0%) 521 ms (-43.78% 🔽) 887 ms

@codecov
Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.92%. Comparing base (73e3a68) to head (91f3b4b).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5610   +/-   ##
=======================================
  Coverage   44.92%   44.92%           
=======================================
  Files        1083     1083           
  Lines       56326    56326           
  Branches     4061     4061           
=======================================
  Hits        25306    25306           
  Misses      30337    30337           
  Partials      683      683           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 73e3a68
packages 39.95% <ø> (ø)

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

@MananTank MananTank marked this pull request as draft December 4, 2024 17:48
@MananTank MananTank force-pushed the 12-04-_dashboard_fix_all_crashing_stories_in_storybook branch from da30248 to 027f21a Compare December 4, 2024 18:53
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 4, 2024 18:53 Inactive
@MananTank MananTank changed the base branch from 12-04-replace_login_links_with_button_router_push to main December 4, 2024 18:53
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 4, 2024 18:53 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 4, 2024 18:54 Inactive
@MananTank MananTank force-pushed the 12-04-_dashboard_fix_all_crashing_stories_in_storybook branch from 027f21a to be80044 Compare December 4, 2024 19:04
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 4, 2024 19:06 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 4, 2024 19:06 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 4, 2024 19:06 Inactive
@MananTank MananTank marked this pull request as ready for review December 4, 2024 20:14
@MananTank MananTank force-pushed the 12-04-_dashboard_fix_all_crashing_stories_in_storybook branch from be80044 to 1048483 Compare December 4, 2024 20:56
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 4, 2024 20:56 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 4, 2024 20:56 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 4, 2024 20:56 Inactive
@MananTank MananTank requested a review from jnsdls December 4, 2024 21:26
@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 5, 2024

Merge activity

Fixes DASH-493

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the billing and checkout functionalities within the dashboard application. It introduces new props for redirecting to checkout and billing portals, updates UI components, and replaces the `CustomConnectWallet` with a `ConnectButton`.

### Detailed summary
- Updated `TransactionButton` to streamline className handling.
- Added `redirectToCheckout` prop in various components including `PageContent`, `OnboardingUI`, and `PlanInfoCard`.
- Introduced `RedirectBillingCheckoutAction` type in `billing.ts`.
- Replaced `CustomConnectWallet` with `ConnectButton` in several components.
- Enhanced `BillingPricing` and `PricingCard` components to accept `redirectToCheckout`.
- Added stubs for `redirectToBillingPortal` in story files for testing.
- Improved UI consistency across billing-related components.

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

<!-- end pr-codex -->
@jnsdls jnsdls force-pushed the 12-04-_dashboard_fix_all_crashing_stories_in_storybook branch from 1048483 to 91f3b4b Compare December 5, 2024 05:07
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 5, 2024 05:07 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 5, 2024 05:07 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 5, 2024 05:07 Inactive
@graphite-app graphite-app bot merged commit 91f3b4b into main Dec 5, 2024
32 checks passed
@graphite-app graphite-app bot deleted the 12-04-_dashboard_fix_all_crashing_stories_in_storybook branch December 5, 2024 05:19
@vercel vercel bot temporarily deployed to Production – wallet-ui December 5, 2024 05:19 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 December 5, 2024 05:19 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground December 5, 2024 05:19 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