Skip to content

Conversation

@ElasticBottle
Copy link
Contributor

@ElasticBottle ElasticBottle commented Dec 5, 2024

https://linear.app/thirdweb/issue/DASH-546/can-not-update-ecosystem-settings-form-if-default-chain-id-is-not-set


PR-Codex overview

This PR primarily focuses on enhancing the validation logic in the AuthOptionsForm component and making a minor adjustment to the DialogTrigger in the update-partner-modal.client.tsx.

Detailed summary

  • Changed DialogTrigger to use asChild prop in update-partner-modal.client.tsx.
  • Modified defaultChainId to be optional in auth-options-form.client.tsx.
  • Added a refinement to validate defaultChainId based on useSmartAccount in auth-options-form.client.tsx.

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

@changeset-bot
Copy link

changeset-bot bot commented Dec 5, 2024

⚠️ No Changeset found

Latest commit: 5a2cfef

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

@graphite-app
Copy link
Contributor

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

@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Dec 5, 2024
@ElasticBottle ElasticBottle added the merge-queue Adds the pull request to Graphite's merge queue. label Dec 5, 2024
Copy link
Contributor Author

ElasticBottle commented Dec 5, 2024

Merge activity

  • Dec 5, 6:04 PM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Dec 5, 7:25 PM EST: A user added this pull request to the Graphite merge queue.
  • Dec 5, 7:58 PM EST: The Graphite merge queue couldn't merge this PR because it was not satisfying all requirements (Failed CI: 'Vercel – thirdweb-www').
  • Dec 5, 7:59 PM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Dec 6, 12:59 AM UTC: The merge label 'merge-queue' was removed. This PR will no longer be merged by the Graphite merge queue
  • Dec 5, 8:48 PM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Dec 5, 9:02 PM EST: A user added this pull request to the Graphite merge queue.
  • Dec 5, 9:47 PM EST: The Graphite merge queue couldn't merge this PR because it was not satisfying all requirements (Failed CI: 'Vercel – thirdweb-www').

@codecov
Copy link

codecov bot commented Dec 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.82%. Comparing base (5070e76) to head (5a2cfef).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5638   +/-   ##
=======================================
  Coverage   47.82%   47.82%           
=======================================
  Files        1088     1088           
  Lines       56661    56661           
  Branches     4305     4305           
=======================================
  Hits        27099    27099           
  Misses      28864    28864           
  Partials      698      698           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 5070e76
packages 43.58% <ø> (ø)

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

@github-actions
Copy link
Contributor

github-actions bot commented Dec 5, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 45.72 KB (0%) 915 ms (0%) 654 ms (+134.91% 🔺) 1.6 s
thirdweb (cjs) 106.26 KB (0%) 2.2 s (0%) 907 ms (+25.76% 🔺) 3.1 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 113 ms (+67.81% 🔺) 225 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 8 ms (+14.35% 🔺) 18 ms
thirdweb/react (minimal + tree-shaking) 18.74 KB (0%) 375 ms (0%) 103 ms (+125.41% 🔺) 478 ms

ElasticBottle added a commit that referenced this pull request Dec 6, 2024
https://linear.app/thirdweb/issue/DASH-546/can-not-update-ecosystem-settings-form-if-default-chain-id-is-not-set

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on improving the `update-partner-modal.client.tsx` and `auth-options-form.client.tsx` components by modifying the `DialogTrigger` and enhancing validation logic for the `defaultChainId` field.

### Detailed summary
- Changed `DialogTrigger` to use `asChild` prop in `update-partner-modal.client.tsx`.
- Made `defaultChainId` optional and adjusted its validation error handling in `auth-options-form.client.tsx`.
- Added a new refinement rule to validate `defaultChainId` based on `useSmartAccount`.

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

<!-- end pr-codex -->
@ElasticBottle ElasticBottle force-pushed the winston/fix-ecosystem-saving branch from ce66e9b to 2c43c64 Compare December 6, 2024 00:26
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 6, 2024 00:26 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 6, 2024 00:26 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 6, 2024 00:26 Inactive
@graphite-app graphite-app bot removed the merge-queue Adds the pull request to Graphite's merge queue. label Dec 6, 2024
@ElasticBottle ElasticBottle added the merge-queue Adds the pull request to Graphite's merge queue. label Dec 6, 2024
https://linear.app/thirdweb/issue/DASH-546/can-not-update-ecosystem-settings-form-if-default-chain-id-is-not-set

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the `update-partner-modal.client.tsx` and `auth-options-form.client.tsx` components. It modifies the dialog trigger and updates the validation logic for the form, ensuring better handling of the `defaultChainId` field.

### Detailed summary
- Updated `<DialogTrigger>` in `update-partner-modal.client.tsx` to use `asChild`.
- Modified `defaultChainId` in `auth-options-form.client.tsx` to be optional.
- Added a refinement check to validate `defaultChainId` based on `useSmartAccount` in `auth-options-form.client.tsx`.

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

<!-- end pr-codex -->
@ElasticBottle ElasticBottle force-pushed the winston/fix-ecosystem-saving branch from 2c43c64 to 5a2cfef Compare December 6, 2024 02:40
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 6, 2024 02:40 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 6, 2024 02:40 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 6, 2024 02:40 Inactive
@graphite-app graphite-app bot removed the merge-queue Adds the pull request to Graphite's merge queue. label Dec 6, 2024
@joaquim-verges joaquim-verges merged commit fbb2ec9 into main Dec 6, 2024
31 of 32 checks passed
@joaquim-verges joaquim-verges deleted the winston/fix-ecosystem-saving branch December 6, 2024 03:03
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