diff --git a/frontend/src/index.css b/frontend/src/index.css index 03af0dd..321b48c 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -1366,6 +1366,9 @@ body.chips-dragging *{cursor:inherit} metric family — it is not a measurement, it is a judgment about them. Each row is a question and the answer with its probability, and the probability is a smaller, dimmer line on purpose: the claim and how sure the model was must not read as the same weight. */ +/* The receipt line under the range control: dimmer and closer to the caption above it than to the + cards, because it is an answer to "why has nothing moved", not a measurement. */ +.vh-sync{margin:-6px 2px 12px;line-height:1.45} .ins-card{--tint:var(--acc);padding:12px 14px 14px;margin-bottom:12px} .ins-hd{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px} .ins-t{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--tint)} diff --git a/frontend/src/locales/es.js b/frontend/src/locales/es.js index f143026..39d379f 100644 --- a/frontend/src/locales/es.js +++ b/frontend/src/locales/es.js @@ -1482,6 +1482,9 @@ export default { 'the last {0} days': 'últimos {0} días', 'the last year': 'último año', 'updated {0}': 'actualizado {0}', + 'No sync has arrived yet. If the automation is set up, run Manual Sync once in Health Auto Export.': 'Todavía no llegó ningún envío. Si ya configuraste la automatización, corré Manual Sync una vez en Health Auto Export.', + 'The last sync brought {0} new datapoints, {1} were already stored.': 'El último envío trajo {0} datos nuevos; {1} ya estaban guardados.', + 'The last sync brought nothing new: every datapoint was already stored. The phone is sending — Apple Health has nothing more recent than what is already here.': 'El último envío no trajo nada nuevo: todos los datos ya estaban guardados. El teléfono está enviando; Apple Health no tiene nada más reciente que lo que ya está acá.', 'Nothing has come in today yet — this is the latest reading of each metric.': 'Todavía no llegó nada de hoy: esto es la última lectura de cada métrica.', 'low {0}': 'mín {0}', 'avg {0}': 'media {0}', diff --git a/frontend/src/views/Health.jsx b/frontend/src/views/Health.jsx index ae842b7..229bfc2 100644 --- a/frontend/src/views/Health.jsx +++ b/frontend/src/views/Health.jsx @@ -522,6 +522,8 @@ export default function Health() { // twice in two different sizes (see the note above the sheets). const groups = groupedCards(cards) const workouts = workoutRows(data, { limit: 20 }) + // The receipt of the last ingest, as the endpoint reports it: `{ts, metrics, points, duplicates}`. + const lastIngest = data?.last && data.last.ts ? data.last : null // Everything the card draws, or null when nothing has been asked yet. const view = insightView(ins?.insight, data) const last = data?.last?.ts @@ -560,6 +562,20 @@ export default function Health() { {last ? ' · ' + t('updated {0}', agoLabel(last)) : ''} + {/* What the last sync actually brought. + A card that has not moved and a phone that is not sending look identical on this screen, + and they need opposite fixes — so the receipt the endpoint already returns (how many + datapoints arrived, how many were already stored) is shown instead of left in the api + response. "Nothing new" and "nothing at all" are different sentences, and saying which one + it is costs one line. */} +