Skip to content

fix(ui-builder): hide explorer health banner when contract load succeeds without it#374

Draft
pasevin wants to merge 1 commit intomainfrom
cursor/explorer-keys-absence-behavior-2fd7
Draft

fix(ui-builder): hide explorer health banner when contract load succeeds without it#374
pasevin wants to merge 1 commit intomainfrom
cursor/explorer-keys-absence-behavior-2fd7

Conversation

@pasevin
Copy link
Copy Markdown
Collaborator

@pasevin pasevin commented Mar 28, 2026

Summary

Hides the proactive Block Explorer Unavailable NetworkServiceErrorBanner on the Load Contract step when it would be misleading: after a successful Sourcify fetch (metadata fetchedFrom contains sourcify), when the user loaded via manual ABI, or while a contract load is in progress (avoids flashing the banner before fallback runs). Other unhealthy services (e.g. RPC) are unchanged.

Implementation

  • Pure helper filterUnhealthyServicesForContractDefinitionStep + unit tests.
  • StepContractDefinition composes health check output with contract store state before rendering banners.

Testing

  • pnpm --filter=@openzeppelin/ui-builder-app test (Vitest, including new filter tests).
Open in Web Open in Cursor 

…eds without it

Filter proactive explorer NetworkServiceErrorBanner on the contract step when
Sourcify supplies the ABI, manual ABI is used, or a load is in progress.
RPC and other unhealthy services are unchanged.

Co-authored-by: Aleksandr Pasevin <aleksandr.pasevin@openzeppelin.com>
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.

2 participants