Skip to content

Conversation

@kumaryash90
Copy link
Member

@kumaryash90 kumaryash90 commented Jan 7, 2026


PR-Codex overview

This PR focuses on modifying the Button component in the decoded-input-set.tsx file to conditionally disable it based on the param.type and the length of fields.

Detailed summary

  • The Button component now has a condition for the disabled prop.
  • It disables the button when param.type is "bytes" and fields.length is greater than or equal to 1.

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

Summary by CodeRabbit

  • Bug Fixes
    • Fixed an issue in the contract publish form where the Add Parameter control was incorrectly restricted for byte-type parameters. Users can now add multiple byte parameters without encountering the previous restriction, improving form flexibility and workflow.

✏️ Tip: You can customize this high-level summary in your review settings.

@kumaryash90 kumaryash90 requested review from a team as code owners January 7, 2026 11:59
@changeset-bot
Copy link

changeset-bot bot commented Jan 7, 2026

⚠️ No Changeset found

Latest commit: 0382d42

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 Jan 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
thirdweb-www Ready Ready Preview, Comment Jan 8, 2026 3:31pm
4 Skipped Deployments
Project Deployment Review Updated (UTC)
docs-v2 Skipped Skipped Jan 8, 2026 3:31pm
nebula Skipped Skipped Jan 8, 2026 3:31pm
thirdweb_playground Skipped Skipped Jan 8, 2026 3:31pm
wallet-ui Skipped Skipped Jan 8, 2026 3:31pm

@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Jan 7, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jan 7, 2026

Walkthrough

Removed a conditional guard that disabled the "Add Parameter" button when the parameter type was bytes and existing fields were present. The button is now always enabled, permitting unrestricted addition of parameters regardless of type or field count.

Changes

Cohort / File(s) Summary
Button State Logic
apps/dashboard/src/app/(app)/(dashboard)/contracts/publish/[publish_uri]/contract-publish-form/decoded-bytes-input/decoded-input-set.tsx
Removed conditional that disabled Add Parameter button for bytes-type parameters when fields existed. Button remains enabled in all cases.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Description check ⚠️ Warning The description is incomplete and does not follow the required template structure. It lacks required sections like issue tag, notes for reviewer, and testing instructions. Add the Linear issue tag (TEAM-0000 format), provide notes for reviewers about the behavioral change, and include testing instructions for validating the fix.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: enabling multiple reference parameters for bytes input by removing the conditional disable on the Add Parameter button.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings

📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 2aac3c7 and 0382d42.

📒 Files selected for processing (1)
  • apps/dashboard/src/app/(app)/(dashboard)/contracts/publish/[publish_uri]/contract-publish-form/decoded-bytes-input/decoded-input-set.tsx
💤 Files with no reviewable changes (1)
  • apps/dashboard/src/app/(app)/(dashboard)/contracts/publish/[publish_uri]/contract-publish-form/decoded-bytes-input/decoded-input-set.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: Unit Tests
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Lint Packages
  • GitHub Check: Size
  • GitHub Check: Analyze (javascript)

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • TEAM-0000: Entity not found: Issue - Could not find referenced Issue.

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link

codecov bot commented Jan 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 53.02%. Comparing base (d35cad8) to head (0382d42).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8610   +/-   ##
=======================================
  Coverage   53.02%   53.02%           
=======================================
  Files         924      924           
  Lines       61726    61726           
  Branches     4035     4035           
=======================================
  Hits        32730    32730           
  Misses      28898    28898           
  Partials       98       98           
Flag Coverage Δ
packages 53.02% <ø> (ø)
🚀 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.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2026

size-limit report 📦

Path Size
@thirdweb-dev/nexus (esm) 105.66 KB (0%)
@thirdweb-dev/nexus (cjs) 319.47 KB (0%)

@kumaryash90 kumaryash90 added the merge-queue Adds the pull request to Graphite's merge queue. label Jan 8, 2026
Copy link
Member Author

kumaryash90 commented Jan 8, 2026

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 modifying the `Button` component in the `decoded-input-set.tsx` file to enhance its functionality based on certain conditions related to `param.type` and `fields`.

### Detailed summary
- Updated the `Button` component to disable it when `param.type` is "bytes" and `fields.length` is 1 or more.
- Maintained the existing `onClick` functionality to append a new input with a default value of an empty string.

> ✨ 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**
  * Fixed an issue in the contract publish form where the Add Parameter button was incorrectly disabled when working with bytes parameters. Users can now add multiple bytes parameters without restriction.

<sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub>

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@graphite-app graphite-app bot force-pushed the yash/fix-ref-publish branch from e2a5adc to 0382d42 Compare January 8, 2026 15:23
@vercel vercel bot temporarily deployed to Preview – nebula January 8, 2026 15:24 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 January 8, 2026 15:24 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui January 8, 2026 15:24 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground January 8, 2026 15:24 Inactive
@graphite-app graphite-app bot merged commit 0382d42 into main Jan 8, 2026
25 checks passed
@graphite-app graphite-app bot deleted the yash/fix-ref-publish branch January 8, 2026 15:32
@graphite-app graphite-app bot removed the merge-queue Adds the pull request to Graphite's merge queue. label Jan 8, 2026
@vercel vercel bot temporarily deployed to Production – wallet-ui January 8, 2026 15:32 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 January 8, 2026 15:32 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