Skip to content

fix: default deployed contract functions to expanded state#7147

Merged
Aniket-Engg merged 2 commits into
remix-project-org:masterfrom
tenderdeve:fix/keep-deployed-functions-expanded
May 21, 2026
Merged

fix: default deployed contract functions to expanded state#7147
Aniket-Engg merged 2 commits into
remix-project-org:masterfrom
tenderdeve:fix/keep-deployed-functions-expanded

Conversation

@tenderdeve
Copy link
Copy Markdown

Summary

  • Change the default state of deployed contracts from collapsed to expanded so developers can immediately interact with functions after deploying
  • Previously, every deploy or contract switch collapsed the function list, requiring manual clicks to expand

Files changed:

  • DeployedContractItem.tsxisExpanded default: falsetrue
  • universalDappUI.tsxtoggleExpander default: truefalse (inverted logic, same effect)
  • clickInstance.ts (E2E) — Updated to check visibility before toggling, so tests work correctly with the new default

Fixes #7132

Test plan

  • Deploy a contract — functions should be visible immediately without clicking
  • Deploy multiple contracts — all should start expanded
  • Clicking the contract header should still toggle collapse/expand
  • E2E tests pass

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 28, 2026

Deploy Preview for reliable-cocada-166884 ready!

Name Link
🔨 Latest commit 249d004
🔍 Latest deploy log https://app.netlify.com/projects/reliable-cocada-166884/deploys/6a0f2e40fab9e90008a2dc66
😎 Deploy Preview https://deploy-preview-7147--reliable-cocada-166884.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@tenderdeve tenderdeve marked this pull request as ready for review April 28, 2026 10:27
@yann300 yann300 requested a review from ioedeveloper April 29, 2026 10:21
const { trackMatomoEvent: baseTrackEvent } = useContext(TrackingContext)
const trackMatomoEvent = <T extends UdappEvent = UdappEvent>(event: T) => baseTrackEvent?.<T>(event)
const [toggleExpander, setToggleExpander] = useState<boolean>(true)
const [toggleExpander, setToggleExpander] = useState<boolean>(false)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

No need to make changes here. This file is deprecated and should be removed.

@tenderdeve
Copy link
Copy Markdown
Author

tenderdeve commented Apr 30, 2026

Good catch, reverted , left that file untouched now.

@Aniket-Engg Aniket-Engg force-pushed the fix/keep-deployed-functions-expanded branch from 2492ab2 to ad7708f Compare May 21, 2026 08:28
Change the default expanded state of deployed contracts from
collapsed to expanded so developers can immediately interact
with functions after deploying. Also update the clickInstance
E2E command to check visibility before toggling, ensuring
test stability with the new default.

Fixes remix-project-org#7132
File is deprecated — no changes needed there.
@Aniket-Engg Aniket-Engg force-pushed the fix/keep-deployed-functions-expanded branch from ad7708f to 249d004 Compare May 21, 2026 16:09
@Aniket-Engg Aniket-Engg merged commit 48b6a07 into remix-project-org:master May 21, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[UI Suggestion] Stop auto-collapsing deployed contract functions — It's killing the debugging workflow

3 participants