Skip to content

fix: make contract and to addresses optional in webhook form #7294

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

Conversation

catalyst17
Copy link
Contributor

@catalyst17 catalyst17 commented Jun 6, 2025


PR-Codex overview

This PR focuses on improving the handling of contract addresses in the CreateWebhookModal and FilterDetailsStep components, as well as refining validation logic for address inputs in the webhookTypes utility file.

Detailed summary

  • In CreateWebhookModal.tsx, changed addresses to default to an empty string if undefined.
  • In FilterDetailsStep.tsx, removed asterisks from FormLabel for "Contract Addresses" and "To Address".
  • In webhookTypes.ts, updated validation to allow optional addresses and improved error messages for invalid inputs.

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

Summary by CodeRabbit

  • Bug Fixes

    • Removed the required field indicator from "Contract Addresses" and "To Address" labels in the form UI.
  • New Features

    • Updated form validation to allow "Contract Addresses", "From Address", and "To Address" fields to be optional and accept empty values, with improved error messages for clarity.

Copy link

changeset-bot bot commented Jun 6, 2025

⚠️ No Changeset found

Latest commit: 62a3cd8

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

Copy link

vercel bot commented Jun 6, 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 Jun 9, 2025 0:08am
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Jun 9, 2025 0:08am
login ⬜️ Skipped (Inspect) Jun 9, 2025 0:08am
thirdweb_playground ⬜️ Skipped (Inspect) Jun 9, 2025 0:08am
wallet-ui ⬜️ Skipped (Inspect) Jun 9, 2025 0:08am

Copy link
Contributor

coderabbitai bot commented Jun 6, 2025

## Walkthrough

The changes update the webhook form UI by removing the required field asterisks from the "Contract Addresses" and "To Address" labels. The validation schema for the `addresses`, `fromAddresses`, and `toAddresses` fields was modified to make them optional and accept empty strings, validating only when non-empty input is provided. Additionally, the `addresses` argument passed to `useAbiMultiFetch` is now defaulted to an empty string if falsy.

## Changes

| File(s)                                                                                         | Change Summary                                                                                             |
|------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|
| .../webhooks/components/FilterDetailsStep.tsx                                                  | Removed required field asterisks from "Contract Addresses" and "To Address" labels in the form UI.         |
| .../webhooks/utils/webhookTypes.ts                                                             | Made `addresses`, `fromAddresses`, and `toAddresses` optional and allowed empty strings; validation runs only on non-empty input. Updated error messages accordingly. |
| .../webhooks/components/CreateWebhookModal.tsx                                                 | Defaulted `addresses` argument passed to `useAbiMultiFetch` to empty string if falsy to ensure a string input. |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
    participant User
    participant WebhookForm
    participant ValidationSchema

    User->>WebhookForm: Submit form with address fields (may be empty)
    WebhookForm->>ValidationSchema: Validate addresses, fromAddresses, toAddresses
    alt Field is empty or undefined
        ValidationSchema-->>WebhookForm: Accept as valid (no error)
    else Field has input
        ValidationSchema->>ValidationSchema: Check if all tokens are valid addresses
        alt All tokens valid
            ValidationSchema-->>WebhookForm: Accept as valid
        else
            ValidationSchema-->>WebhookForm: Return error (invalid addresses)
        end
    end
    WebhookForm-->>User: Show success or error messages

Possibly related PRs

Suggested reviewers

  • MananTank

<!-- walkthrough_end -->

<!-- This is an auto-generated comment: resource warnings by coderabbit.ai -->

> [!WARNING]
> ## Review ran into problems
> 
> <details>
> <summary>🔥 Problems</summary>
> 
> Errors were encountered while retrieving linked issues.
> 
> <details>
> <summary>Errors (1)</summary>
> 
> * TEAM-0000: Entity not found: Issue - Could not find referenced Issue.
> 
> </details>
> 
> </details>

<!-- end of auto-generated comment: resource warnings by coderabbit.ai -->

---

<details>
<summary>📜 Recent review details</summary>

**Configuration used: CodeRabbit UI**
**Review profile: CHILL**
**Plan: Pro**


<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between a176c4d7be25d1522ab525d58a8f0f5ebcd317d9 and 62a3cd8348ebf6a1f79dd22d402c7f9eab5e3c9b.

</details>

<details>
<summary>📒 Files selected for processing (3)</summary>

* `apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/CreateWebhookModal.tsx` (1 hunks)
* `apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/FilterDetailsStep.tsx` (2 hunks)
* `apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/utils/webhookTypes.ts` (1 hunks)

</details>

<details>
<summary>✅ Files skipped from review due to trivial changes (1)</summary>

* apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/FilterDetailsStep.tsx

</details>

<details>
<summary>🚧 Files skipped from review as they are similar to previous changes (2)</summary>

* apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/CreateWebhookModal.tsx
* apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/utils/webhookTypes.ts

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (8)</summary>

* GitHub Check: E2E Tests (pnpm, esbuild)
* GitHub Check: E2E Tests (pnpm, webpack)
* GitHub Check: Unit Tests
* GitHub Check: E2E Tests (pnpm, vite)
* GitHub Check: Size
* GitHub Check: Build Packages
* GitHub Check: Lint Packages
* GitHub Check: Analyze (javascript)

</details>

</details>
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNxU3bABsvkCiQBHbGlcABpIcVwvOkgAIgAze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8da2FHJn2lYSQPwfQ/h437AcUnryzerqr6l7ogb2f+wasUX2mmPAv2sOAOPEiAzOkAIOtuVQ/uWQCOgaNMIBoa32fAkaf2cOMBDUxuzOqS6Sxi1Edy1oBAE6u8MQYSfgaAkSjg0S8gMWriVA7iSSXixBPiVC6gHS/oiAHSMCcMdAXS/IKoKSaS3BbQtA906wv0XeJAAAHCQAAMz3QqEMAAAM90AAbPEOsAIDobQBoTIZobdJoQICoYYesNdNdGgOsJ8N4kYhaGgLdOFF3ooQwDoZoW0CQPdIofENdIobQIoZsOsGgPdJsL9L9CoYobdJsAwNdPdFaMEZsBIQYNwWoZofYRYfEGoQEWgCoTdN4WgL9EsGgIoYob9AIJoZsPEMkZUbQF4ZsKUekdwfYZsDoQwPdLQJsJhNdL9LQHIbYSoL9AMbQL9IoRUfEJofEPIQIAwMYVsLQLdG0c4ToXYSYYofkW0PEDofYfEJsLdKULYaYddAwHUbdKWgIPIRobdBPAYhkc4bZLwfwYITirAiISYvoEAA -->

<!-- internal state end -->
<!-- finishing_touch_checkbox_start -->

<details open="true">
<summary>✨ Finishing Touches</summary>

- [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> 📝 Generate Docstrings

</details>

<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->

---



<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=thirdweb-dev/js&utm_content=7294):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Explain this complex logic.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai explain this code block.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and explain its main purpose.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

### Support

Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### CodeRabbit Configuration File (`.coderabbit.yaml`)

- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->

@vercel vercel bot temporarily deployed to Preview – login June 6, 2025 13:49 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui June 6, 2025 13:49 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground June 6, 2025 13:49 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 June 6, 2025 13:49 Inactive
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Jun 6, 2025
Copy link
Contributor Author


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.

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

@catalyst17 catalyst17 requested review from AmineAfia and MananTank June 6, 2025 13:49
@catalyst17 catalyst17 marked this pull request as ready for review June 6, 2025 13:49
@catalyst17 catalyst17 requested review from a team as code owners June 6, 2025 13:49
Copy link

codecov bot commented Jun 6, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.57%. Comparing base (2a4195b) to head (62a3cd8).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7294   +/-   ##
=======================================
  Coverage   55.57%   55.57%           
=======================================
  Files         909      909           
  Lines       58673    58673           
  Branches     4158     4158           
=======================================
  Hits        32607    32607           
  Misses      25959    25959           
  Partials      107      107           
Flag Coverage Δ
packages 55.57% <ø> (ø)
🚀 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.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f89c15c and ebd415e.

📒 Files selected for processing (2)
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/FilterDetailsStep.tsx (2 hunks)
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/utils/webhookTypes.ts (1 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (1)
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/utils/webhookTypes.ts (1)
packages/thirdweb/src/exports/thirdweb.ts (1)
  • isAddress (308-308)
⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: Unit Tests
  • GitHub Check: Size
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (4)
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/utils/webhookTypes.ts (2)

37-50: LGTM! Validation logic correctly handles optional addresses.

The validation properly allows empty values and validates addresses only when provided. The error message clearly communicates the optional nature.


60-73: LGTM! Validation logic is consistent with the addresses field.

The validation properly handles optional values and maintains consistency with the addresses field validation pattern.

apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/FilterDetailsStep.tsx (2)

195-195: LGTM! UI correctly reflects optional field status.

Removing the required asterisk properly aligns with the validation schema changes that make contract addresses optional.


285-285: LGTM! UI correctly reflects optional field status.

Removing the required asterisk properly aligns with the validation schema changes that make the to address field optional.

Copy link
Contributor

github-actions bot commented Jun 6, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 62.57 KB (0%) 1.3 s (0%) 386 ms (+121.12% 🔺) 1.7 s
thirdweb (cjs) 345.55 KB (0%) 7 s (0%) 1.3 s (+8.36% 🔺) 8.2 s
thirdweb (minimal + tree-shaking) 5.7 KB (0%) 114 ms (0%) 98 ms (+898.36% 🔺) 212 ms
thirdweb/chains (tree-shaking) 531 B (0%) 11 ms (0%) 45 ms (+884.83% 🔺) 55 ms
thirdweb/react (minimal + tree-shaking) 19.56 KB (0%) 392 ms (0%) 129 ms (+304.46% 🔺) 520 ms

Copy link
Contributor

graphite-app bot commented Jun 9, 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 improving the handling of contract addresses in the `CreateWebhookModal` and `FilterDetailsStep` components, as well as refining validation logic for addresses in `webhookTypes.ts`. It enhances user experience by clarifying requirements and allowing optional inputs.

### Detailed summary
- In `CreateWebhookModal.tsx`, the `addresses` property now defaults to an empty string if not provided.
- In `FilterDetailsStep.tsx`, the `FormLabel` for "Contract Addresses" and "To Address" no longer includes a required indicator.
- Validation in `webhookTypes.ts` for `addresses`, `fromAddresses`, and `toAddresses` is updated to allow empty inputs and provide clearer error messages.

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

<!-- end pr-codex -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **Bug Fixes**
	- Removed the required field indicator from "Contract Addresses" and "To Address" labels in the form UI.

- **New Features**
	- Updated form validation to allow "Contract Addresses", "From Address", and "To Address" fields to be optional and accept empty values, with improved error messages for clarity.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@graphite-app graphite-app bot force-pushed the fix_make_contract_and_to_addresses_optional_in_webhook_form branch from a176c4d to 62a3cd8 Compare June 9, 2025 12:00
@vercel vercel bot temporarily deployed to Preview – wallet-ui June 9, 2025 12:00 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 June 9, 2025 12:00 Inactive
@vercel vercel bot temporarily deployed to Preview – login June 9, 2025 12:00 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground June 9, 2025 12:00 Inactive
@graphite-app graphite-app bot merged commit 62a3cd8 into main Jun 9, 2025
24 checks passed
@graphite-app graphite-app bot deleted the fix_make_contract_and_to_addresses_optional_in_webhook_form branch June 9, 2025 12:08
@vercel vercel bot temporarily deployed to Production – docs-v2 June 9, 2025 12:08 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui June 9, 2025 12:08 Inactive
@vercel vercel bot temporarily deployed to Production – login June 9, 2025 12:08 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground June 9, 2025 12:08 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