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

Prebuilt UI: BuyDirectListingButton for Marketplace v3 #3847

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

kien-ngo
Copy link
Contributor

@kien-ngo kien-ngo commented Jul 27, 2024

PR-Codex overview

This PR adds a new prebuilt component BuyDirectListingButton for Marketplace v3 in Thirdweb.

Detailed summary

  • Added BuyDirectListingButton component for buying NFTs from a listing
  • Includes props for contract address, chain, client, listing ID, and quantity
  • Utilizes TransactionButton for transaction handling

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

@kien-ngo kien-ngo requested a review from MananTank as a code owner July 27, 2024 23:36
Copy link

vercel bot commented Jul 27, 2024

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

Name Status Preview Comments Updated (UTC)
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 29, 2024 10:49pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 29, 2024 10:49pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 29, 2024 10:49pm

Copy link

changeset-bot bot commented Jul 27, 2024

🦋 Changeset detected

Latest commit: e27ebef

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
thirdweb Minor

Not sure what this means? Click here to learn what changesets are.

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

Copy link

graphite-app bot commented Jul 27, 2024

Your org requires 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.

@github-actions github-actions bot added the TS SDK Involves changes to the v5 TypeScript SDK. label Jul 27, 2024
Copy link

graphite-app bot commented Jul 27, 2024

Graphite Automations

"If PR for SDK -> Tag Joaquim, Jonas and Greg" took an action on this PR • (07/27/24)

3 reviewers were added to this PR based on Kien Ngo's automation.

Copy link

codspeed-hq bot commented Jul 27, 2024

CodSpeed Performance Report

Merging #3847 will not alter performance

Comparing kien/ui/buybutton (e27ebef) with main (f31e211)

Summary

✅ 9 untouched benchmarks

Copy link
Contributor

github-actions bot commented Jul 27, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 43.16 KB (0%) 864 ms (0%) 5.8 s (+168.63% 🔺) 6.7 s
thirdweb (cjs) 91.37 KB (0%) 1.9 s (0%) 5.9 s (-3.97% 🔽) 7.7 s
thirdweb (minimal + tree-shaking) 4.79 KB (0%) 96 ms (0%) 263 ms (-28.94% 🔽) 359 ms
thirdweb/chains (tree-shaking) 492 B (0%) 10 ms (0%) 112 ms (-1.54% 🔽) 122 ms
thirdweb/react (minimal + tree-shaking) 13.62 KB (0%) 273 ms (0%) 644 ms (+176.35% 🔺) 917 ms

Copy link

codecov bot commented Jul 27, 2024

Codecov Report

Attention: Patch coverage is 66.16915% with 68 lines in your changes missing coverage. Please review.

Project coverage is 61.57%. Comparing base (f31e211) to head (e27ebef).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3847      +/-   ##
==========================================
+ Coverage   61.52%   61.57%   +0.05%     
==========================================
  Files         963      964       +1     
  Lines       76668    76869     +201     
  Branches     3812     3822      +10     
==========================================
+ Hits        47171    47335     +164     
- Misses      28814    28849      +35     
- Partials      683      685       +2     
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from f31e211
packages 60.90% <66.16%> (+0.06%) ⬆️

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

Files Coverage Δ
...core/hooks/transaction/transaction-button-utils.ts 82.46% <100.00%> (+0.11%) ⬆️
...prebuilt/thirdweb/BuyDirectListingButton/index.tsx 66.00% <66.00%> (ø)

... and 5 files with indirect coverage changes

@kien-ngo
Copy link
Contributor Author

/release-pr

@kien-ngo kien-ngo changed the title Prebuilt UI: BuyButton for Marketplace v3 Prebuilt UI: BuyDirectListingButton for Marketplace v3 Jul 29, 2024
Copy link

graphite-app bot commented Jul 29, 2024

Merge activity

kien-ngo added a commit that referenced this pull request Jul 29, 2024
<!-- start pr-codex -->

## PR-Codex overview
This PR adds a new prebuilt component `BuyDirectListingButton` for Marketplace v3 in Thirdweb.

### Detailed summary
- Added `BuyDirectListingButton` component for buying NFTs in Marketplace v3
- Updated related tests and utility functions
- Improved documentation for the new component

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

<!-- end pr-codex -->
@kien-ngo kien-ngo force-pushed the kien/ui/buybutton branch from 8832847 to 1bc74ff Compare July 29, 2024 21:55
kien-ngo added a commit that referenced this pull request Jul 29, 2024
<!-- start pr-codex -->

## PR-Codex overview
This PR adds a new prebuilt component `BuyDirectListingButton` for Marketplace v3. It includes the button logic for buying NFTs from a listing.

### Detailed summary
- Added `BuyDirectListingButton` component for Marketplace v3
- Implemented button logic for buying NFTs from a listing
- Included tests for `BuyDirectListingButton`
- Defined props and functionality for `BuyDirectListingButton`
- Created transaction handling for purchasing NFTs

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

<!-- end pr-codex -->
@kien-ngo kien-ngo force-pushed the kien/ui/buybutton branch from 1bc74ff to 9624687 Compare July 29, 2024 22:01
kien-ngo added a commit that referenced this pull request Jul 29, 2024
<!-- start pr-codex -->

## PR-Codex overview
This PR adds a new prebuilt component `BuyDirectListingButton` for Marketplace v3 in Thirdweb.

### Detailed summary
- Added `BuyDirectListingButton` component for buying NFTs in Marketplace v3
- Included tests for `BuyDirectListingButton`
- Created functionality to prepare and execute buy transactions
- Integrated with `TransactionButton` for transaction handling

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

<!-- end pr-codex -->
@kien-ngo kien-ngo force-pushed the kien/ui/buybutton branch from 9624687 to 88b3fa3 Compare July 29, 2024 22:04
<!-- start pr-codex -->

## PR-Codex overview
This PR adds a new prebuilt component `BuyDirectListingButton` for Marketplace v3 in Thirdweb.

### Detailed summary
- Added `BuyDirectListingButton` component for buying NFTs from a listing
- Includes necessary logic for preparing and executing transactions
- Provides detailed documentation and testing for the component

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

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TS SDK Involves changes to the v5 TypeScript SDK.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants