Skip to content

Conversation

@MatiasOS
Copy link
Member

@MatiasOS MatiasOS commented Jan 16, 2026

Description

Add the RPC indicator badge for the fallback strategy that displays a success ratio (e.g., 1/2 means the second provider succeeded) with hover details showing the provider's attempt history.

Related Issue

Closes #140

Merge openscan-explorer/network-connectors#13 before

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactoring
  • Performance improvement
  • Other (please describe):

Changes Made

  • Update RPCMetadata type to accept "fallback" strategy
  • Modify the RPCIndicator component to handle fallback mode display
  • Show attempt ratio (1/N) for fallback vs success count (✓ N/M) for parallel
  • Add "Succeeded on attempt #N" info banner when multiple attempts are needed
  • Display response time for each provider attempt
  • Disable provider selection in fallback mode (informational only)
  • Add fallback-specific CSS styles
  • Update mergeMetadata utility to handle fallback strategy

Screenshots (if applicable)

Network page

Screenshot 2026-01-16 at 11 11 17 AM Screenshot 2026-01-16 at 11 11 24 AM ### Blocks page Screenshot 2026-01-16 at 11 14 31 AM Screenshot 2026-01-16 at 11 14 36 AM

Block page

Screenshot 2026-01-16 at 12 40 52 PM

Checklist

  • I have run npm run format:fix and npm run lint:fix
  • I have run npm run typecheck with no errors
  • I have run tests with npm run test:run
  • I have tested my changes locally
  • I have updated documentation if needed
  • My code follows the project's architecture patterns

Additional Notes

Requires @openscan/network-connectors package update to return metadata from fallback strategy.

@MatiasOS MatiasOS requested a review from AugustoL January 16, 2026 15:48
@MatiasOS MatiasOS self-assigned this Jan 16, 2026
@github-actions
Copy link

🚀 Preview: https://pr-155--openscan.netlify.app
📝 Commit: 528ed18a150f29bf123782103aec8e4e6c17673f

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.

1 participant