Skip to content

feat(web): label per-row amounts, combine stake boxes, always-compact LavaAmount - #38

Merged
nimrod-teich merged 3 commits into
mainfrom
feat/mobile-stake-labels
Apr 20, 2026
Merged

nimrod-teich merged 3 commits into
mainfrom
feat/mobile-stake-labels

Conversation

@nimrod-teich

Copy link
Copy Markdown
Contributor

Summary

Mobile tweaks v2 on top of main.

  • Providers list mobile: small "Total Stake" label above the amount on each row.
  • Chains list mobile: "Relays (30d)" label now sits above the number (matches the providers pattern).
  • Provider detail: Total Stake / Self Stake / Delegation collapsed into one `StatCard`. Total as the hero; Self Stake and Delegation Stake render below in a 2-col breakdown. Spans 2 cols on md to keep the grid balanced.
  • Services mobile row (provider detail): adds the chain name on top and specId below (via `useChainNames`) — same treatment as the chains list.
  • Detail page mobile rows (provider + chain): each row shows a small "Total Stake" label above the value on the right, so the number is clearly attributable.
  • "Delegation" → "Delegation Stake" in the provider + chain detail table columns and in both mobile expand panels.
  • LavaAmount now always renders the K/M/B/T compact form on desktop too (dropped the adaptive measurement). Hover tooltip shows the full LAVA value; removed the `ulava` suffix everywhere.

Test plan

  • `/providers` on mobile: each card has "TOTAL STAKE" in caps above the amount.
  • `/chains` on mobile: each card has "RELAYS (30D)" above the number.
  • `/provider/:addr`: the stat grid shows one combined Total Stake card with Self / Delegation Stake breakdown.
  • `/provider/:addr` mobile services rows: chain name on top, specId below, "Total Stake" label on the right.
  • `/chain/:specid` mobile provider rows: same "Total Stake" label on the right.
  • Any `LavaAmount` on desktop is now compact (e.g. "1.23M LAVA"); hover shows "1,234,567 LAVA".
  • Both table headers on provider + chain detail show "Delegation Stake" (not "Delegation").

Providers mobile card and chains mobile card both show a small
uppercase label ("Total Stake" / "Relays (30d)") above the value
on the right, matching the same pattern.
…Delegation Stake copy

- Provider detail: merge Total Stake / Self Stake / Delegation into
  one StatCard (total as hero, Self Stake + Delegation Stake below).
- Provider services + chain providers mobile rows: label "Total
  Stake" above the amount so it's obvious what the number is.
- Provider services mobile row now shows the chain name on top with
  the specId below (via useChainNames), same shape as the chains
  list.
- Rename "Delegation" → "Delegation Stake" in both detail page
  table columns and both mobile expand panels.
Desktop now renders K/M/B/T the same as mobile (no more adaptive
measurement). Title tooltip shows the full LAVA value only;
dropped the ulava suffix.
@nimrod-teich
nimrod-teich merged commit 3397a24 into main Apr 20, 2026
2 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.

1 participant