Design research: how should the station table work on phones?

Aperta
#1,491 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
next.js, typescript
Ambito
design, frontend

Direzione di ricerca

Start by pulling phone usage data for the station pages, then ask forecasters and regular users how they use the table on phones. Test the promising options on real phones across the listed ranges, including 7d and 30d. Done means writing up the findings and opening implementation issues; the payload names no files or tests.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement needs-info ready-for-human

Why

We keep the station table compact mainly because it's hard to use on phones. Each added column or wider format makes that worse, so phones are limiting the table at every screen size. Before choosing a fix, we need to learn how people use the table on phones and which approaches work for them.

Where it stands

Measured on the Alpental page on nwac.us at a 390px viewport, 24h range:

  • The table is 725px wide in a 358px box, and 8 of 17 columns fit, including Time.
  • When scrolled, the site header, view bar and table header stay pinned, taking 241px of the 844px screen height (29%).
  • The sticky Time column is 75px wide because it repeats the date on every row.
  • Below sm, the table uses text-xs and px-1 padding.
  • Already shipped: sticky Time column, pinned header and scroll shadows.
Image

Research questions

Usage

  • What share of station table views come from phones, and at which ranges?
  • What do people check on a phone: the latest reading, the trend or a specific sensor?
  • Which columns matter most on a phone, and which are rarely needed?

Design

  • Should phones get a different layout, or the same table with less in it?
  • How should an approach handle pages with custom columns or several stations at different elevations?
  • Which approaches still work at 7d and 30d?

Options to explore

Shorter Time column: add a date divider row for each day and show only HH:mm in the rows. In a mockup, this took the column from 75px to 39px and fit one more column.

Image

Column groups: add chips such as Temp & RH / Wind / Snow & Precip / All. In a mockup at Alpental, Wind fits easily, but Snow & Precip overflows by 22px on its own. The shorter Time column would save 36px, enough to make it fit. Keep the selection in the URL or in session state, because stored preferences can hide later default changes, as chart arrangement did in #1196.

Image

Other options

  • Less pinned on scroll: collapse the view bar so more rows stay visible.
  • Shorter headers: show elevation only where it tells sensors apart, or move it to a legend.
  • Latest readings first: show the newest reading by group above the table.
  • Sensors as rows (24h only): make hours the columns, with a sticky sensor label. This doesn't scale to 7d or 30d, which would be 168 and 720 columns.
  • Card per timestamp: this works for 24h but gets very long at longer ranges.
  • Fewer rows at long ranges: show 3h or 6h intervals on phones for 7d and 30d, with the full hourly data still in the CSV.

Next steps

  1. Pull phone usage data for the station pages.
  2. Ask forecasters and a few regular users how they use the table on a phone.
  3. Test the most promising options on real phones.
  4. Write up the findings and open implementation issues.
Lingua principale
TypeScript
Stelle
6
Fork
2
Merge medio
1g 11h
PR unite (30g)
35

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di NWACus/web

Tutte le issue di NWACus/web

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.