Salud moves to Home's header: a sixth tab pushed Start off centre
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
The tab bar is a flex row of equal columns with the Start button raised in the middle, so the tab count has to stay odd. Adding Salud as a sixth pushed that disc half a column to the right, and it read immediately as "the button moved" — the app's primary action is the one thing in the bar that must not drift. Salud is now the heart button in Home's header, next to the gear, with the same destination and the same route (/health). It is reachable from Settings → Data as well, which was already there. The tab bar is back to five: Home, Plan, Start, Stats, Exercises. Two tests, because this is the kind of change that regresses silently: TabBar.test.jsx asserts the odd count and that the raised button is the middle child (plus that no tab points at /health), and Home.health-door.test.jsx asserts the heart sits in the same non-shrinking container as the gear and navigates to /health — if that breaks, the screen is only reachable from Settings, where nobody looks for it. Also: the Comments in Home, TabBar, README, CHANGELOG and docs/HEALTH.md now say where Salud is, and one test assertion checks flexGrow/flexShrink rather than the `flex: none` shorthand — the CSSOM rewrites that to `0 0 auto`, which is what the first version of the test tripped over.
This commit is contained in:
1 parent
691e664d3f
commit
8d190bb591
7 files changed
+129
-9
No files matched your search
+4
-3
@@ -3,9 +3,10 @@
|
||||
KuentaGYM does not read Apple Health. Your iPhone posts it.
|
||||
|
||||
An iOS automation in [Health Auto Export](https://www.healthexportapp.com/) (HAE) reads Apple
|
||||
Health and POSTs its JSON export to your KuentaGYM profile. The **Salud** tab draws whatever
|
||||
arrived, as read-only cards; `api/vitals.js` does the arithmetic; `frontend/src/lib/vitals-view.js`
|
||||
decides which number each card shows.
|
||||
Health and POSTs its JSON export to your KuentaGYM profile. The **Salud** screen — the heart button
|
||||
in Home's header, next to the gear: the tab bar keeps its five tabs so its raised Start button stays
|
||||
centred — draws whatever arrived, as read-only cards; `api/vitals.js` does the arithmetic;
|
||||
`frontend/src/lib/vitals-view.js` decides which number each card shows.
|
||||
|
||||
Nothing here is an input. There is no way to type a step count into this screen, and the workouts
|
||||
the watch records are shown as a list rather than merged into your workout history — they carry no
|
||||
|
||||
Reference in new issue
Block a user