571 Commits
Author SHA1 Message Date
joaquim-verges 1c533efcd5 fix: respect transaction button theme prop (#3341)
<!-- start pr-codex -->

## PR-Codex overview
This PR fixes the issue where the transaction button did not respect the theme prop in the `SponsoredTxPreview` component.

### Detailed summary
- Fixed transaction button theme prop issue in `SponsoredTxPreview`
- Added `isValidTheme` and `parseTheme` functions in `buttons.tsx`
- Updated `parseTheme` to validate theme and return default if invalid

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

<!-- end pr-codex -->
2024-06-17 02:39:52 +00:00
joaquim-verges df84f9c4ce refactor: improve Coinbase connection handling (#3340)
### TL;DR

To prevent popups from Coinbase wallet being blocked in Safari, pre-connection actions have been added. Specifically, popups will be displayed immediately upon connection request and before transaction preprocessing.

### What changed?

1. Removed the `COINBASE` constant and its related connection flow.
2. Integrated `onConnectRequested` optional function for wallets.
3. Updated Coinbase wallet's `onConnectRequested` to show the popup immediately.
4. Added `onTransactionRequested` to show popup before transaction processing.

### How to test?

1. Initiate connection with Coinbase wallet and observe that the popup appears immediately.
2. Perform a transaction with Coinbase wallet and ensure the popup is not blocked.
3. Test across different browsers, focusing on Safari.

### Why make this change?

Safari has stricter rules regarding popups, and the previous delay in showing the popup led to it being blocked. This change ensures a smoother user experience for Coinbase wallet users on Safari by addressing the popup blocking issue.

---

<!-- start pr-codex -->

---

## PR-Codex overview
The focus of this PR is to enhance wallet connectivity and transaction handling in the application.

### Detailed summary
- Added `onConnectRequested` and `onTransactionRequested` functions to wallet interfaces
- Updated wallet connection and transaction handling logic
- Preloaded wallet providers for smoother user experience

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

<!-- end pr-codex -->
2024-06-16 23:02:22 +00:00
0ef7d6c0a8 fix ConnectEmbed example in playground (#3247)
Co-authored-by: Manan Tank <[email protected]>
Co-authored-by: greg <[email protected]>
Co-authored-by: Joaquim Verges <[email protected]>
2024-06-12 14:41:38 +12:00
Joaquim VergesandGitHub 95c4151f59 Update playground pages (#3224) 2024-06-04 21:47:21 +12:00
Joaquim VergesandGitHub 4cd83e6707 initial account abstraction playground page (#3203) 2024-06-02 14:54:19 +12:00
Joaquim VergesandGitHub 1b2edb4c09 show connect button if disconnected in pay playground (#3188) 2024-05-31 16:12:10 +12:00
Joaquim VergesandGitHub 3dca028a7e fix: transaction button gas estimation for pay (#3178) 2024-05-30 00:31:40 +00:00
Jonas DanielsandGitHub 198049f679 Jd/metadata base pls (#3138) 2024-05-23 14:17:02 -07:00
Jonas DanielsandGitHub 6c92476874 feat: add metadataBase to page components (#3137) 2024-05-23 14:12:39 -07:00
Jonas DanielsandGitHub 6ecbc4bd36 chore: Update next.config.mjs and package.json (#3135) 2024-05-23 12:54:21 -07:00
Jonas DanielsandGitHub 00db937949 playground: update to next15, update OG image (#3134) 2024-05-23 11:39:15 -07:00
Jonas DanielsandGitHub b22df1d81c style: add mono font to tailwind.config.ts (#3131) 2024-05-22 23:26:19 -07:00
Jonas DanielsandGitHub 364129e9c3 Jd/playground fixes (#3130) 2024-05-22 23:22:26 -07:00
Jonas DanielsandGitHub 7d445b0a6e Jd/playground fixes (#3129) 2024-05-22 23:13:11 -07:00
Jonas DanielsandGitHub 67e077b8f2 refactor(connect/pay): remove unused code (#3128) 2024-05-22 22:45:24 -07:00
Jonas DanielsandGitHub 606bef57aa update playground (#3121) 2024-05-22 22:19:55 -07:00
Jonas DanielsGitHubgithub-actions[bot] <github-actions[bot]@users.noreply.github.com>GitHub Action
71da068f0f Version Packages (#3065)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Action <[email protected]>
2024-05-22 16:28:01 +12:00
c8d5be15cf fix: pino-pretty in demo app (#3098)
Co-authored-by: greg <[email protected]>
2024-05-20 22:37:46 -07:00
Jonas DanielsandGitHub b5a004e2d9 apply fixes from: https://github.com/thirdweb-dev/pay-playground/pull/4 (#3097) 2024-05-20 15:06:29 -07:00
Jonas DanielsandGitHub 39809999f9 refactor: Rename project name in package.json and turbo.json (#3095) 2024-05-20 14:57:59 -07:00
gregandGitHub b2161acb72 Adds demo apps to monorepo (#3087) 2024-05-20 14:37:57 -07:00