Skip to content

Conversation

@AmineAfia
Copy link
Contributor

@AmineAfia AmineAfia commented Jun 18, 2025

[INFRA-1454][Dashboard] Feature: Add SignatureSelector component for improved signature selection

Notes for the reviewer

This PR introduces a new SignatureSelector component that enhances the signature selection experience in the webhooks UI. The component allows users to either select from predefined signatures or enter custom ones, with appropriate UI feedback.

Key improvements:

  • Users can now enter custom signatures directly in the input field
  • Warning message appears when a custom signature is entered
  • Automatic ABI detection for known signatures
  • Better handling of signature formats (automatically converts text signatures to hash format)

How to test

  1. Navigate to the webhooks creation flow
  2. Test selecting predefined event/function signatures
  3. Test entering custom signatures and verify the warning appears
  4. Verify that ABIs are properly loaded for known signatures
  5. Test the reset functionality

The component is fully integrated with the existing form validation system.

Summary by CodeRabbit

  • New Features

    • Introduced a new signature selector with search and custom input support for selecting or entering function signatures.
    • Enhanced dropdown components to allow custom search input elements.
  • Refactor

    • Replaced the previous signature dropdown with the new selector for improved usability and consistency.
    • Improved ABI input handling, including automatic detection and reset options.
  • Bug Fixes

    • Improved normalization of signature hash values and ABI fallback logic for webhook payloads.
    • Enhanced address parsing for ABI reset functionality.

PR-Codex overview

This PR focuses on enhancing the webhook utilities and UI components for better handling of signatures and ABIs in a dashboard application. It introduces new components and improves existing ones for better user experience and functionality.

Detailed summary

  • Updated buildEventWebhookPayload and buildTransactionWebhookPayload to handle sigHash and abi more robustly.
  • Added customSearchInput prop to MultiSelect component for custom input rendering.
  • Created SignatureSelector component for selecting signatures with improved state management.
  • Replaced SignatureDropdown with SignatureSelector in FilterDetailsStep for better signature handling.
  • Enhanced ABI field rendering logic based on whether the signature is custom or fetched automatically.

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

@changeset-bot
Copy link

changeset-bot bot commented Jun 18, 2025

⚠️ No Changeset found

Latest commit: 167f921

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 Jun 18, 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 18, 2025 3:57pm
5 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Jun 18, 2025 3:57pm
login ⬜️ Skipped (Inspect) Jun 18, 2025 3:57pm
nebula ⬜️ Skipped (Inspect) Jun 18, 2025 3:57pm
thirdweb_playground ⬜️ Skipped (Inspect) Jun 18, 2025 3:57pm
wallet-ui ⬜️ Skipped (Inspect) Jun 18, 2025 3:57pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jun 18, 2025

## Walkthrough

A new `SignatureSelector` React component is introduced for selecting or entering function signatures, replacing the previous `SignatureDropdown` in the webhook filter UI. The `MultiSelect` component is enhanced to accept a custom search input. ABI handling and signature normalization logic are updated in both UI and payload-building utilities.

## Changes

| File(s)                                                                                                 | Change Summary                                                                                                                                                                                                                                    |
|---------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| apps/dashboard/src/@/components/blocks/SignatureSelector.tsx                                            | Added new `SignatureSelector` component for single-select dropdown with search and custom input for function signatures. Introduced `SignatureOption` interface and related props.                                                                |
| apps/dashboard/src/@/components/blocks/multi-select.tsx                                                 | Added optional `customSearchInput` prop to `MultiSelect` component, allowing consumers to override the default search input UI.                                                                            |
| apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/FilterDetailsStep.tsx | Replaced `SignatureDropdown` with `SignatureSelector`. Updated ABI input handling, field names, and reset logic. Removed unused code and improved signature/ABI UI logic.                                   |
| apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/utils/webhookPayloadUtils.ts | Updated signature normalization in payload builders: hash or convert signatures if not in hex, and fallback on ABI fields. Added imports for `keccak256` and `toFunctionSelector`.                         |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
    participant User
    participant FilterDetailsStep
    participant SignatureSelector
    participant MultiSelect
    participant WebhookPayloadUtils

    User->>FilterDetailsStep: Selects or enters a signature
    FilterDetailsStep->>SignatureSelector: Passes options, value, handlers
    SignatureSelector->>MultiSelect: Renders dropdown with custom search input
    User->>SignatureSelector: Enters custom signature
    SignatureSelector->>FilterDetailsStep: Triggers onChange, optionally setAbi
    FilterDetailsStep->>WebhookPayloadUtils: Submits form with signature and ABI
    WebhookPayloadUtils->>WebhookPayloadUtils: Normalizes signature (hash or selector)

Assessment against linked issues

Objective Addressed Explanation
Support custom ABI signature input in Webhooks UI (INFRA-1454)

Assessment against linked issues: Out-of-scope changes

No out-of-scope changes detected.

Possibly related PRs

  • thirdweb-dev/js#7219: Introduced the original SignatureDropdown in FilterDetailsStep.tsx, which is now replaced by the new SignatureSelector component and refactored ABI handling.

Suggested reviewers

  • MananTank
  • jnsdls

<!-- walkthrough_end -->


---

<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 3aa58e73bf0c75a8fd8c8e1df24707df94dd8c79 and 167f9213ffe90a75b6e5e3e2a4e6d79290b5688d.

</details>

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

* `apps/dashboard/src/@/components/blocks/SignatureSelector.tsx` (1 hunks)
* `apps/dashboard/src/@/components/blocks/multi-select.tsx` (3 hunks)
* `apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/FilterDetailsStep.tsx` (5 hunks)
* `apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/utils/webhookPayloadUtils.ts` (3 hunks)

</details>

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

* apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/utils/webhookPayloadUtils.ts
* apps/dashboard/src/@/components/blocks/SignatureSelector.tsx
* apps/dashboard/src/@/components/blocks/multi-select.tsx
* apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/FilterDetailsStep.tsx

</details>

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

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

</details>

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


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNxU3bABsvkCiQBHbGlcABpIcVwvOkgAIgBBWnoAZXgiDGpsf2SSaLF8PiZmbnxyDFxIADMCxmxEAmZ7NIzcLJIUDE8K+CwAdxIBWHx8AGtEUNiO3ApFbAZpdEhyXsgAA1T0zOzc0QIKVYVi0vYI/AjYdv7B4bHIAFUASQ0YC8OSsu7imalkXFfEZpbdqIHZieClSAkAAe3Eo8DI80gcnQPnwvR6REgdUovzOILyFUqM0avDoJEqPRiAM2rX8yBq7EotXqLCaNLayFo8H8Yi88h6BHQWB6XSq8K8tGeAHULlg0MyGmyWm0UMhGf5aOF5b1nBgMZA2IhEGhSKrIFzENwvGhZDFBT1qhRGn92tiKM84O0iu8TmgvIgzpUSEDkGg8CxqPAGJB4gAhB7mkg0MEQx2QEYYNFYanKulC+gCJM0PiwTC0Lz6/CVJVAqoFZjUGTyJgYKQUcQYTE0KEVHMh07nEjcyClxCwOtO6g4BqRhh+vke17rQG0kg5AkFA6oSrePlTEhEKg0ejov6DyFQpAdzGOxoSP3wWiRiGIW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ovXO0CVBv2XOPPz2PPksACclzSQxLjzdLcLIz1zX9jzlQdLb91ziLlQQYdL89aA0LAgX9JAH9JAiLJAb9aA/zX9TzPLQrAg39IDID9AZzGzPMWzOzezgM8I/QtAPRqyazQAA== -->

<!-- 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=7370):

- 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 – wallet-ui June 18, 2025 14:42 Inactive
@vercel vercel bot temporarily deployed to Preview – login June 18, 2025 14:42 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground June 18, 2025 14:42 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 June 18, 2025 14:42 Inactive
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Jun 18, 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.

@AmineAfia AmineAfia marked this pull request as ready for review June 18, 2025 14:42
@AmineAfia AmineAfia requested review from a team as code owners June 18, 2025 14:42
@codecov
Copy link

codecov bot commented Jun 18, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.36%. Comparing base (bb09e20) to head (167f921).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7370   +/-   ##
=======================================
  Coverage   52.36%   52.36%           
=======================================
  Files         939      939           
  Lines       63160    63160           
  Branches     4216     4216           
=======================================
  Hits        33073    33073           
  Misses      29980    29980           
  Partials      107      107           
Flag Coverage Δ
packages 52.36% <ø> (ø)
🚀 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.

@AmineAfia AmineAfia force-pushed the Add_SignatureSelector_component_for_custom_signature_input_in_webhooks branch from cc41fc0 to 3aa58e7 Compare June 18, 2025 14:47
@vercel vercel bot temporarily deployed to Preview – nebula June 18, 2025 14:47 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui June 18, 2025 14:47 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground June 18, 2025 14:47 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 June 18, 2025 14:47 Inactive
@vercel vercel bot temporarily deployed to Preview – login June 18, 2025 14:47 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Jun 18, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 62.49 KB (0%) 1.3 s (0%) 280 ms (+153.57% 🔺) 1.6 s
thirdweb (cjs) 350.88 KB (0%) 7.1 s (0%) 934 ms (+3.76% 🔺) 8 s
thirdweb (minimal + tree-shaking) 5.7 KB (0%) 114 ms (0%) 87 ms (+1161.14% 🔺) 201 ms
thirdweb/chains (tree-shaking) 531 B (0%) 11 ms (0%) 51 ms (+1807.58% 🔺) 61 ms
thirdweb/react (minimal + tree-shaking) 19.58 KB (-0.07% 🔽) 392 ms (-0.07% 🔽) 98 ms (+544.92% 🔺) 489 ms

@graphite-app
Copy link
Contributor

graphite-app bot commented Jun 18, 2025

Merge activity

#7370)

# [INFRA-1454][Dashboard] Feature: Add SignatureSelector component for improved signature selection

## Notes for the reviewer

This PR introduces a new `SignatureSelector` component that enhances the signature selection experience in the webhooks UI. The component allows users to either select from predefined signatures or enter custom ones, with appropriate UI feedback.

Key improvements:
- Users can now enter custom signatures directly in the input field
- Warning message appears when a custom signature is entered
- Automatic ABI detection for known signatures
- Better handling of signature formats (automatically converts text signatures to hash format)

## How to test

1. Navigate to the webhooks creation flow
2. Test selecting predefined event/function signatures
3. Test entering custom signatures and verify the warning appears
4. Verify that ABIs are properly loaded for known signatures
5. Test the reset functionality

The component is fully integrated with the existing form validation system.

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

- **New Features**
  - Introduced a new signature selector with search and custom input support for selecting or entering function signatures.
  - Enhanced dropdown components to allow custom search input elements.

- **Refactor**
  - Replaced the previous signature dropdown with the new selector for improved usability and consistency.
  - Improved ABI input handling, including automatic detection and reset options.

- **Bug Fixes**
  - Improved normalization of signature hash values and ABI fallback logic for webhook payloads.
  - Enhanced address parsing for ABI reset functionality.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces enhancements to the `webhookPayloadUtils`, `MultiSelect`, and `SignatureSelector` components, improving signature handling and custom input functionality. It also updates the `FilterDetailsStep` to utilize the new `SignatureSelector` and remove the deprecated `SignatureDropdown`.

### Detailed summary
- Updated `buildEventWebhookPayload` and `buildTransactionWebhookPayload` functions to handle `sigHash` and `abi` more robustly.
- Added `customSearchInput` prop to `MultiSelect` for enhanced search functionality.
- Implemented `SignatureSelector` component for better signature selection with custom input support.
- Replaced `SignatureDropdown` with `SignatureSelector` in `FilterDetailsStep`.
- Improved handling of custom signatures and ABI management in `FilterDetailsStep`.

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

<!-- end pr-codex -->
@graphite-app graphite-app bot force-pushed the Add_SignatureSelector_component_for_custom_signature_input_in_webhooks branch from 3aa58e7 to 167f921 Compare June 18, 2025 15:49
@vercel vercel bot temporarily deployed to Preview – wallet-ui June 18, 2025 15:49 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground June 18, 2025 15:49 Inactive
@vercel vercel bot temporarily deployed to Preview – login June 18, 2025 15:49 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 June 18, 2025 15:49 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula June 18, 2025 15:49 Inactive
@graphite-app graphite-app bot merged commit 167f921 into main Jun 18, 2025
25 checks passed
@graphite-app graphite-app bot deleted the Add_SignatureSelector_component_for_custom_signature_input_in_webhooks branch June 18, 2025 15:58
@vercel vercel bot temporarily deployed to Production – nebula June 18, 2025 15:58 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground June 18, 2025 15:58 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 June 18, 2025 15:58 Inactive
@vercel vercel bot temporarily deployed to Production – login June 18, 2025 15:58 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui June 18, 2025 15:58 Inactive
@coderabbitai coderabbitai bot mentioned this pull request Jun 20, 2025
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