Skip to content

chore: consolidate pagination, document env and toolchain, cover focu… - #997

Merged
Mosas2000 merged 1 commit into
StellaBridge:mainfrom
Gbemi-programmer:fix/css-tests-toggle-enter-summary-card
Jul 29, 2026
Merged

chore: consolidate pagination, document env and toolchain, cover focu…#997
Mosas2000 merged 1 commit into
StellaBridge:mainfrom
Gbemi-programmer:fix/css-tests-toggle-enter-summary-card

Conversation

@Gbemi-programmer

Copy link
Copy Markdown
Contributor

Summary

This PR addresses four issues consolidating CSS color variables, adding tests for alert simulation, fixing Enter key submission in the SQL textarea, and adding a USD/Native toggle for TVL display.

Changes

closes #959 — Consolidate CSS color variables

  • Replaced inline hex values (#22c55e, #f59e0b, #ef4444) with unified status-{success,warning,danger} Tailwind classes across BridgeEdge, ChainNode, Legend, MiniMap, and BridgeSummaryCard.

closes #958 — Add unit tests for useAlertSimulation hook

  • Created useAlertSimulation.test.ts covering: simulation runs, HTTP error handling, restoreFromHistory, clearHistory, localStorage persistence, history cap at 20 entries, and loading stored history on init.

closes #956 — Fix Enter key submission in CustomMetricBuilder

  • Added onKeyDown handler to the SQL textarea that stops Enter key propagation, preventing unwanted form submission.

closes #957 — Add USD/Native toggle to BridgeSummaryCard

  • Added displayMode state ("usd" | "native") and a toggle button in the card header.
  • Added optional totalValueLockedNative field to BridgeSummary type.
  • Standard and Detailed variants conditionally render TVL based on the selected mode.

closes #959
closes #958
closes #956
closes #957

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@Gbemi-programmer Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Mosas2000
Mosas2000 merged commit 5e49e0d into StellaBridge:main Jul 29, 2026
15 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

2 participants