Salud: one grid, every metric the same card
Tests / test (push) Canceled after 0s
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s
Tests / test (push) Canceled after 0s
Publish Docker images / build (., ./web/Dockerfile, web) (push) Canceled after 0s
Publish Docker images / build (./api, ./api/Dockerfile, api) (push) Canceled after 0s
"Pasos, energía activa, horas de pie, tiempo de ejercicio se ven una sola tarjeta por fila y se ven grande; debe ser igual que las demás." That was the "Trends" section: the first four metrics in catalogue order drawn as full-width panels with a big chart and the window's own min/avg/high, with those four taken out of the grid below so nothing was drawn twice. It was a bad idea for two reasons. Four huge cards, one per row, above a tidy grid of small ones read as two screens stapled together — which is exactly what was reported. And the four it picked are the four most people open this screen for, so the grid looked like it was missing its own headline metrics: Steps was a panel *instead of* a card. Every metric is now one card in one grid, two to a row, with its sparkline; the chart worth reading is one tap away in the detail sheet, where it also has the hours and the day-by-day numbers around it. That makes `trendCards` and `seriesStats` unused, so they and their tests are gone with the section, along with the `.vh-charts` / `.vh-tchart*` rules that only it used. The render test now asserts the grid holds *every* metric (5 of 5 in the fixture, labels included), that no `.vh-tchart` is rendered anywhere, and that no "Trends" heading is left behind. Checked against the old behaviour by holding one metric back out of the grid: four tests fail.
This commit is contained in:
1 parent
3c88e3c188
commit
d93861a73f
6 files changed
+44
-118
No files matched your search
+10
-3
@@ -9,9 +9,16 @@ rate, sleep, weight, oxygen, workouts, and every other metric HAE can export —
|
||||
fork has never heard of, which land under **Other** with a humanised name and a detail sheet listing
|
||||
every field the watch sent.
|
||||
|
||||
The cards sit two to a row, on a phone and on a desktop alike — every other grid in the app goes
|
||||
to four columns once there is width for them, and at four across a health card wraps its unit onto
|
||||
a second line and flattens the sparkline that makes the grid readable at a glance.
|
||||
Every metric is one card in one grid, two to a row, on a phone and on a desktop alike — every other
|
||||
grid in the app goes to four columns once there is width for them, and at four across a health card
|
||||
wraps its unit onto a second line and flattens the sparkline that makes the grid readable at a
|
||||
glance. An earlier version put the first four metrics in catalogue order (steps, active energy,
|
||||
exercise time, stand hours) in a full-width "Trends" section above the grid, with a big chart and
|
||||
the window's own min/avg/high. It read as two screens stapled together — four huge cards, one per
|
||||
row, above a tidy grid of small ones — and since those four are the ones most people look at, the
|
||||
grid looked like it was missing its own headline metrics. The shape of a week is the sparkline on
|
||||
the card now, and the chart worth reading is one tap away, where it also has the hours and the
|
||||
day-by-day numbers around it.
|
||||
|
||||
Per profile, and private by construction. Each profile mints its own **ingest key** (write-only: it
|
||||
can add to that one profile's health file and cannot read a single number back), and rotating it
|
||||
|
||||
Reference in new issue
Block a user