Skip to content

feat(web): mobile UX overhaul - #35

Merged
nimrod-teich merged 10 commits into
mainfrom
feat/ux-improvements
Apr 19, 2026
Merged

nimrod-teich merged 10 commits into
mainfrom
feat/ux-improvements

Conversation

@nimrod-teich

Copy link
Copy Markdown
Contributor

Summary

Pass over the explorer UI to make it usable on phones (tested against S25 Ultra). No API/data changes beyond one new column; everything else is frontend.

  • Nav: 48px hamburger/search tap targets, wider drawer (85vw max-w-sm), bigger drawer items, hid the block badge on mobile.
  • Charts: removed recharts <Legend> (the custom-content version didn't reserve space → overlapped the brush); legends are now plain React above each chart. Range buttons are full-width segmented pills on mobile. IndexChart + ChainChart hide the right Y-axis on mobile, tighten margins, widen the brush traveller.
  • Filters (chain + provider detail): ChainSelect and ConsumerDropdown open a full-screen picker on mobile (search + big rows). Status becomes a full-width segmented control, Region becomes a native <select>.
  • Tables: dashboard, providers, chains — table → compact card list on mobile (avatar/icon + name + secondary line + key metric). Chain + provider detail tables keep the table + add a mobile-only expand chevron: tapping reveals a stats panel (self stake, delegation, commission, 30d counts, location, addons/extensions) plus the existing health interfaces rendered as stacked cards on mobile / grid on desktop.
  • SortableTable: sticky thead below the app header, cell-based dividers, desktop-only hover with active: state, new mobileOnly column meta.
  • Stat cards: dashboard/chain/provider detail surface Total Relays and Total CU; on mobile the total and the 30-day value are consolidated into one card (hero value + "X in 30d" subtitle). Total Stake switched to KMB formatting so it stops overflowing narrow cards. Provider detail stats stack one per row on mobile.
  • Chain detail: added Addons/Extensions column to the desktop providers table (same styling as provider detail).

Test plan

  • Open each page on a phone-width viewport (≤ 375px) and confirm no horizontal scroll anywhere
  • Dashboard: stat grid shows 4 cards (Relays/CU consolidated, Total Stake, Active Providers); providers/chains sections render as tappable card lists
  • Providers and Chains list pages: card list on mobile, sortable table on desktop
  • Chain detail: stat cards order (Providers first, then Relays/CU consolidated, Total Stake), chart fits viewport, filters (Status segmented, Region native select) work, tapping a row expands to show hidden columns + interfaces
  • Provider detail: same expand behavior, stat cards stack 1/row on mobile, Total Relays/CU + 30d displayed as consolidated cards
  • Nav drawer: tap-friendly items, Mainnet/Testnet toggle is big enough, close with tap outside
  • Desktop: layouts unchanged, sortable tables still sort, all filters still chip-style, chart legends visible

Surfaces addons/extensions per provider on the chain detail page,
matching the provider detail page styling (purple addons,
violet extensions).
Bump hamburger and search tap targets to 48px, widen the drawer to
85vw, upsize drawer items (text, icons, padding), and hide the block
badge on mobile to free up the header.
Range buttons become full-width segmented pills on mobile. Chart
legends are rendered as plain React above the chart (the recharts
Legend with custom content didn't reserve space and overlapped the
brush). IndexChart tightens margins, hides the QoS y-axis, and
widens the brush traveller on mobile. ChainSelect and the consumer
dropdown open a full-screen picker on mobile, matching the mobile
search pattern.
On mobile, the top-5 providers and chains render as tappable rows
with avatar/icon, name, and key stats — much more readable than a
cramped 3-column table. Desktop keeps the sortable table.
Header is sticky below the app header when scrolling, dividers move
to cells with a subtler color, hover is desktop-only with an
active: state for tap feedback, and a new `mobileOnly` column meta
mirrors `hideOnMobile` for columns that should only appear on
small screens (e.g. expand chevrons).
Both list pages now render a compact card list on mobile (avatar or
chain icon, name, secondary line, key metric on the right) and keep
the sortable table on desktop. Providers page also bumps its API
limit so the whole list loads.
- Stat cards: add Total Relays and Total CU, consolidate the total
  with the 30d number into a single card on mobile (hero value with
  "X in 30d" subtitle). Swap the Total Stake LavaAmount for a
  KMB-formatted value so it fits narrow desktop cards.
- Providers/services tables: drop wide sub-labels on mobile (full
  lava@ address, full chain name), add a mobile-only expand chevron
  column, and surface the hidden columns (self stake, delegation,
  commission, 30d counts, location, addons/extensions) inside the
  expanded sub-row along with the health interfaces.
- Filters: Status becomes a full-width segmented control on mobile,
  Region becomes a native <select>, and the reset button stretches
  full-width. Desktop filters unchanged.
- Chain providers table no longer paginates — sticky header keeps
  context while scrolling.
Hide the right Y-axis, tighten chart margins, and widen the brush
traveller on mobile — the chart no longer looks right-shifted on a
phone.
@nimrod-teich
nimrod-teich merged commit 3d71f47 into main Apr 19, 2026
1 of 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