Skip to content

Conversation

@gregfromstl
Copy link
Contributor

@gregfromstl gregfromstl commented May 10, 2025


PR-Codex overview

This PR enhances the CheckoutLinkForm component by allowing it to accept a client prop for better client management, updates its internal state handling, and improves class name management using the cn utility for conditional styling.

Detailed summary

  • Modified page.tsx to create a client instance and pass it to CheckoutLinkForm.
  • Changed CheckoutLinkForm to accept client as a prop.
  • Updated internal state management in CheckoutLinkForm.
  • Replaced static class names with the cn utility for conditional styling.
  • Adjusted rendering logic based on the showAdvanced state.

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

@gregfromstl gregfromstl requested review from a team as code owners May 10, 2025 00:31
@changeset-bot
Copy link

changeset-bot bot commented May 10, 2025

⚠️ No Changeset found

Latest commit: 9634e49

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
Copy link

vercel bot commented May 10, 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 May 10, 2025 1:13am
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) May 10, 2025 1:13am
login ⬜️ Skipped (Inspect) May 10, 2025 1:13am
thirdweb_playground ⬜️ Skipped (Inspect) May 10, 2025 1:13am
wallet-ui ⬜️ Skipped (Inspect) May 10, 2025 1:13am

@graphite-app
Copy link
Contributor

graphite-app bot commented May 10, 2025

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.

@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label May 10, 2025
@codecov
Copy link

codecov bot commented May 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.60%. Comparing base (a4e12c5) to head (9634e49).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6997   +/-   ##
=======================================
  Coverage   54.60%   54.60%           
=======================================
  Files         903      903           
  Lines       57934    57934           
  Branches     3970     3970           
=======================================
  Hits        31632    31632           
  Misses      26202    26202           
  Partials      100      100           
Flag Coverage Δ
packages 54.60% <ø> (ø)
🚀 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.

@gregfromstl gregfromstl force-pushed the greg/feat-add-clientId-to-checkout-form branch from c34fcde to 4dd7401 Compare May 10, 2025 00:35
@vercel vercel bot temporarily deployed to Preview – wallet-ui May 10, 2025 00:35 Inactive
@vercel vercel bot temporarily deployed to Preview – login May 10, 2025 00:35 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 May 10, 2025 00:35 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground May 10, 2025 00:35 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented May 10, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 54.17 KB (0%) 1.1 s (0%) 375 ms (+22.55% 🔺) 1.5 s
thirdweb (cjs) 193.88 KB (0%) 3.9 s (0%) 1.3 s (+13.57% 🔺) 5.1 s
thirdweb (minimal + tree-shaking) 5.69 KB (0%) 114 ms (0%) 141 ms (+689.21% 🔺) 255 ms
thirdweb/chains (tree-shaking) 524 B (0%) 11 ms (0%) 71 ms (+1021.19% 🔺) 81 ms
thirdweb/react (minimal + tree-shaking) 19.51 KB (0%) 391 ms (0%) 157 ms (+154.83% 🔺) 548 ms

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground May 10, 2025 00:51 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 May 10, 2025 00:51 Inactive
@vercel vercel bot temporarily deployed to Preview – login May 10, 2025 00:51 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui May 10, 2025 00:51 Inactive
@gregfromstl gregfromstl force-pushed the greg/feat-add-clientId-to-checkout-form branch from 3b3e354 to b0ae16a Compare May 10, 2025 00:54
@vercel vercel bot temporarily deployed to Preview – docs-v2 May 10, 2025 00:54 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground May 10, 2025 00:54 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui May 10, 2025 00:54 Inactive
@vercel vercel bot temporarily deployed to Preview – login May 10, 2025 00:54 Inactive
@gregfromstl gregfromstl added the merge-queue Adds the pull request to Graphite's merge queue. label May 10, 2025
Copy link
Contributor Author

gregfromstl commented May 10, 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 enhancing the `CheckoutLinkForm` component by passing a `client` prop to it and improving its functionality. It also refines the styling and class management using the `cn` utility for better readability and maintainability.

### Detailed summary
- Modified `page.tsx` to create a `client` using `getClientThirdwebClient` and pass it to `CheckoutLinkForm`.
- Changed the `CheckoutLinkForm` function signature to accept a `client` prop.
- Updated multiple instances in `CheckoutLinkForm` to utilize `client.clientId`.
- Replaced static class names with the `cn` utility for dynamic class management in the button and div elements.
- Adjusted the conditional rendering of classes for better readability and performance in the component.

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

<!-- end pr-codex -->
@graphite-app graphite-app bot force-pushed the greg/feat-add-clientId-to-checkout-form branch from b0ae16a to 9634e49 Compare May 10, 2025 01:05
@vercel vercel bot temporarily deployed to Preview – login May 10, 2025 01:05 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground May 10, 2025 01:05 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui May 10, 2025 01:05 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 May 10, 2025 01:05 Inactive
@graphite-app graphite-app bot merged commit 9634e49 into main May 10, 2025
23 checks passed
@graphite-app graphite-app bot deleted the greg/feat-add-clientId-to-checkout-form branch May 10, 2025 01:13
@graphite-app graphite-app bot removed the merge-queue Adds the pull request to Graphite's merge queue. label May 10, 2025
@vercel vercel bot temporarily deployed to Production – docs-v2 May 10, 2025 01:13 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground May 10, 2025 01:13 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui May 10, 2025 01:13 Inactive
@vercel vercel bot temporarily deployed to Production – login May 10, 2025 01:13 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