feat(frontend): preserve mixed-case tickers on /protocol oracle #1241

Merged
PlasticDigits merged 2 commits from issue/1240 into main 2026-09-12 02:40:37 +00:00

Summary

  • Remove Tailwind uppercase from /protocol ticker-bearing labels: hub <dt> (cUSTC / USD), oracle H2/tabs (vFDUSD), and Venus 1 vFDUSD Price.
  • Add StatBox preserveLabelCase for the Venus tile so mixed-case product tickers survive CSS.
  • Exact-case RTL plus make verify-issue-1240. Chrome headings (DEX hub prices) stay uppercase. Ticker maps and indexer APIs unchanged.

Fixes #1240

Acceptance

  • Hub <dt> shows cUSTC / USD (not CUSTC / USD). LUNC / UST1 / USTR have no extra transform.
  • Oracle tabs show USTC, LUNC, vFDUSD (not VFDUSD).
  • Oracle H2: USTC / USD, LUNC / USD, or vFDUSD per #571 (vFDUSD heading has no / USD).
  • Venus heading 1 vFDUSD Price keeps mixed-case vFDUSD.
  • CEX vs hub identity unchanged: wrap hub is cUSTC; CEX tab is USTC; hub LUNC still has cLUNC wrap AddressRow.
  • Disclaimers and ?ticker= allowlist unchanged. No new CEX tickers.
  • RTL asserts exact casing; existing keyboard / deep-link / 502 tests still pass.

Test plan

  • make verify-issue-1240 (8/8, includes retest)
  • ProtocolPage + StatBox Vitest (exact-case cUSTC / USD, vFDUSD)
  • Reviewer: open /protocol in the browser — hub cUSTC / USD next to oracle USTC / USD; vFDUSD tab shows vFDUSD not VFDUSD
  • Chrome headings may still render as DEX HUB PRICES / PROTOCOL
## Summary - Remove Tailwind `uppercase` from `/protocol` ticker-bearing labels: hub `<dt>` (`cUSTC / USD`), oracle H2/tabs (`vFDUSD`), and Venus `1 vFDUSD Price`. - Add `StatBox preserveLabelCase` for the Venus tile so mixed-case product tickers survive CSS. - Exact-case RTL plus `make verify-issue-1240`. Chrome headings (`DEX hub prices`) stay uppercase. Ticker maps and indexer APIs unchanged. Fixes #1240 ## Acceptance - [x] Hub `<dt>` shows `cUSTC / USD` (not `CUSTC / USD`). `LUNC` / `UST1` / `USTR` have no extra transform. - [x] Oracle tabs show `USTC`, `LUNC`, `vFDUSD` (not `VFDUSD`). - [x] Oracle H2: `USTC / USD`, `LUNC / USD`, or `vFDUSD` per #571 (vFDUSD heading has no `/ USD`). - [x] Venus heading `1 vFDUSD Price` keeps mixed-case `vFDUSD`. - [x] CEX vs hub identity unchanged: wrap hub is `cUSTC`; CEX tab is `USTC`; hub `LUNC` still has cLUNC wrap `AddressRow`. - [x] Disclaimers and `?ticker=` allowlist unchanged. No new CEX tickers. - [x] RTL asserts exact casing; existing keyboard / deep-link / 502 tests still pass. ## Test plan - [x] `make verify-issue-1240` (8/8, includes retest) - [x] ProtocolPage + StatBox Vitest (exact-case `cUSTC / USD`, `vFDUSD`) - [ ] Reviewer: open `/protocol` in the browser — hub `cUSTC / USD` next to oracle `USTC / USD`; vFDUSD tab shows `vFDUSD` not `VFDUSD` - [ ] Chrome headings may still render as `DEX HUB PRICES` / `PROTOCOL`
Stop Tailwind uppercase on hub dt labels, oracle H2/tabs, and Venus
1 vFDUSD Price so cUSTC and vFDUSD stay distinct from CEX USTC/FDUSD.

Fixes #1240
Author
Owner

drain skip: hard-blocked (needs-human / high-risk / human topic); remaining continue

drain skip: hard-blocked (needs-human / high-risk / human topic); remaining continue
Author
Owner

drain skip: no occupying job for rebase/fix-pr; remaining continue

drain skip: no occupying job for rebase/fix-pr; remaining continue
Merge origin/main into issue/1240 for PR #1241
All checks were successful
ci/woodpecker/pr/woodpecker gitleaks tracked-tree scan passed locally
5474aabfdc
PlasticDigits deleted branch issue/1240 2026-09-12 02:40:37 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
code/cl8y-dex-terraclassic!1241
No description provided.