From 5ddf106bb20c62c35c4558ca4fd90f8688919a90 Mon Sep 17 00:00:00 2001 From: Alexander Saavedra Date: Tue, 1 Dec 2026 15:22:52 +0100 Subject: [PATCH 1/2] fix(page): the content of an opened People fold is indented like its title; Strava's field names in Spanish chore(release): 1.12.3 --- CHANGELOG.md | 6 ++++++ README.es.md | 4 ++-- README.md | 4 ++-- docker/docker-compose.yml | 8 ++++---- docker/example.env | 2 +- package-lock.json | 4 ++-- package.json | 2 +- services/loop-ingest/package-lock.json | 4 ++-- services/loop-ingest/package.json | 2 +- web/src/client/profile.test.mjs | 10 ++++++++++ web/src/client/profile.ts | 3 ++- web/src/i18n/profile-templates.mjs | 4 ++-- web/src/styles/profile.css | 6 ------ web/test/fixtures/css-expected.json | 2 -- 14 files changed, 35 insertions(+), 26 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e7d674fe..669c9086 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ Dated history of structural work on this repo: the append-only narrative of what operating facts live in `CLAUDE.md` and the docs ([`docs/README.md`](docs/README.md)). +## [1.12.3] - 2026-12-01 + +- **People:** the content of an opened block (Rename, Machine tokens, Strava and Garmin, Delete) is indented like its + title; it was drawn against the edge of the box. +- **Spanish:** the Strava fields read "ID de cliente" and "Secreto de cliente", as Strava's own page does. + ## [1.12.2] - 2026-12-01 - **Coach view:** the first-run assistant no longer opens over the page of a person you are viewing (it is theirs to diff --git a/README.es.md b/README.es.md index cc79dd31..6edaaef8 100644 --- a/README.es.md +++ b/README.es.md @@ -128,8 +128,8 @@ página) y la imagen `loop-web` (sirve la página). ```sh mkdir loop && cd loop - curl -fsSLO https://raw.githubusercontent.com/mralexsaavedra/loop/v1.12.2/docker/docker-compose.yml - curl -fsSL -o .env https://raw.githubusercontent.com/mralexsaavedra/loop/v1.12.2/docker/example.env + curl -fsSLO https://raw.githubusercontent.com/mralexsaavedra/loop/v1.12.3/docker/docker-compose.yml + curl -fsSL -o .env https://raw.githubusercontent.com/mralexsaavedra/loop/v1.12.3/docker/example.env mkdir -p files/import files/manuals files/documents ``` diff --git a/README.md b/README.md index 10f206bd..229c3315 100644 --- a/README.md +++ b/README.md @@ -125,8 +125,8 @@ and the endpoint the iOS Shortcut sends your Apple Health data to. Three contain ```sh mkdir loop && cd loop - curl -fsSLO https://raw.githubusercontent.com/mralexsaavedra/loop/v1.12.2/docker/docker-compose.yml - curl -fsSL -o .env https://raw.githubusercontent.com/mralexsaavedra/loop/v1.12.2/docker/example.env + curl -fsSLO https://raw.githubusercontent.com/mralexsaavedra/loop/v1.12.3/docker/docker-compose.yml + curl -fsSL -o .env https://raw.githubusercontent.com/mralexsaavedra/loop/v1.12.3/docker/example.env mkdir -p files/import files/manuals files/documents ``` diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index f1240db1..c8c15718 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -50,12 +50,12 @@ services: loop-server: # the published image (Docker Hub); `docker compose up -d --build` builds it from a clone instead - image: mralexandersaavedra/loop-server:${HC_VERSION:-1.12.2} + image: mralexandersaavedra/loop-server:${HC_VERSION:-1.12.3} build: context: .. dockerfile: docker/loop-server.Dockerfile args: - VERSION: ${HC_VERSION:-1.12.2} + VERSION: ${HC_VERSION:-1.12.3} container_name: loop-server${HC_INSTANCE:+-${HC_INSTANCE}} restart: unless-stopped # SIGTERM lets in-flight requests finish for up to 10 s and stops a running build; docker waits this long @@ -132,12 +132,12 @@ services: loop-web: # the published image (Docker Hub); `docker compose up -d --build` builds it from a clone instead. The nginx # template and hosts.sh are baked in from services/loop-web (docker/loop-web.Dockerfile), never bind-mounted. - image: mralexandersaavedra/loop-web:${HC_VERSION:-1.12.2} + image: mralexandersaavedra/loop-web:${HC_VERSION:-1.12.3} build: context: .. dockerfile: docker/loop-web.Dockerfile args: - VERSION: ${HC_VERSION:-1.12.2} + VERSION: ${HC_VERSION:-1.12.3} container_name: loop-web${HC_INSTANCE:+-${HC_INSTANCE}} restart: unless-stopped # The same hardening as services/loop-web/docker-compose.yml: a read-only root filesystem; tmpfs for what the diff --git a/docker/example.env b/docker/example.env index 504b9676..7874140c 100644 --- a/docker/example.env +++ b/docker/example.env @@ -2,7 +2,7 @@ # and is never committed (docker/.gitignore). # The image tag: mralexandersaavedra/loop-server: and mralexandersaavedra/loop-web: -HC_VERSION=1.12.2 +HC_VERSION=1.12.3 # Empty for the first install; a short name (e.g. second) for another install on the same host HC_INSTANCE= diff --git a/package-lock.json b/package-lock.json index dc15a503..a1261aa5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "loop", - "version": "1.12.2", + "version": "1.12.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "loop", - "version": "1.12.2", + "version": "1.12.3", "license": "MIT", "dependencies": { "astro": "7.3.8", diff --git a/package.json b/package.json index 39333a34..b80d1c4d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loop", - "version": "1.12.2", + "version": "1.12.3", "private": true, "description": "Tooling for the plan single source of truth (data/nutrition + data/training) and its Astro build (web/).", "license": "MIT", diff --git a/services/loop-ingest/package-lock.json b/services/loop-ingest/package-lock.json index 4ca3e8c7..c3a95e77 100644 --- a/services/loop-ingest/package-lock.json +++ b/services/loop-ingest/package-lock.json @@ -1,12 +1,12 @@ { "name": "loop-ingest", - "version": "1.12.2", + "version": "1.12.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "loop-ingest", - "version": "1.12.2", + "version": "1.12.3", "license": "MIT", "dependencies": { "pg": "^8.13.1" diff --git a/services/loop-ingest/package.json b/services/loop-ingest/package.json index b4e0fb79..2dd73819 100644 --- a/services/loop-ingest/package.json +++ b/services/loop-ingest/package.json @@ -1,6 +1,6 @@ { "name": "loop-ingest", - "version": "1.12.2", + "version": "1.12.3", "private": true, "license": "MIT", "type": "module", diff --git a/web/src/client/profile.test.mjs b/web/src/client/profile.test.mjs index a1c2779a..5a2e92c7 100644 --- a/web/src/client/profile.test.mjs +++ b/web/src/client/profile.test.mjs @@ -1285,5 +1285,15 @@ test('people sheet layout: two cards; the open person\'s panel sits under THEIR const at = panel.indexOf(`${label}`); const end = panel.indexOf('', at); assert.ok(panel.indexOf(`id="${id}"`) > at && panel.indexOf(`id="${id}"`) < end, `${id} is inside its fold`); + assert.equal(panel.slice(at, at + `${label}`.length + 22), `${label}
`, `${label}: its content sits in the padded fold body`); } }); + +test('people in Spanish: the Strava fields carry Strava\'s own Spanish names, not the English ones', async () => { + const p = peopleSetup({ locale: 'es', answers: withList(() => aRes(200, { tokens: [], strava: false, garmin: false })) }); + await openPanel(p, 'ben'); + p.fire('submit', ppSubmit('strava-url')); + const h = p.els['pp-panel'].innerHTML + p.els['pp-prov'].innerHTML; + assert.match(h, /for="pp-sid">ID de cliente' + esc(label) + '' + inner + ''; + // .acc-body: the padded body of every fold in the page (tablas.css gives a bare
its card look) + return '
' + esc(label) + '
' + inner + '
'; } function panelHtml() { var P2 = PT(), name = PS.open, p = name && PS.list ? PS.list.filter(function (x) { return x.username === name; })[0] : null; diff --git a/web/src/i18n/profile-templates.mjs b/web/src/i18n/profile-templates.mjs index 38ab1a25..d9dfd491 100644 --- a/web/src/i18n/profile-templates.mjs +++ b/web/src/i18n/profile-templates.mjs @@ -285,11 +285,11 @@ export const es = { garminUntil: 'Clave válida hasta el {date}', remove: 'Quitar', removed: 'Quitado.', - stravaId: 'Client id', + stravaId: 'ID de cliente', stravaGet: 'Obtener el enlace de autorización', stravaOpen: 'Ábrelo con la sesión de su Strava, autoriza y pega el código o la dirección completa a la que llegues.', stravaLink: 'Abrir Strava', - stravaSecret: 'Client secret', + stravaSecret: 'Secreto de cliente', stravaCode: 'Código o dirección de redirección', stravaConnect: 'Conectar', stravaDone: 'Strava conectado.', diff --git a/web/src/styles/profile.css b/web/src/styles/profile.css index 0bb2eecd..df48e521 100644 --- a/web/src/styles/profile.css +++ b/web/src/styles/profile.css @@ -674,16 +674,10 @@ .pp-panel .pf-note { margin-top: var(--sp-4); } -.pp-fold { - border-top: 1px solid var(--line-soft); -} .pp-fold summary { color: inherit; font-weight: 600; } -.pp-fold[open] { - padding-bottom: var(--sp-5); -} .pp-danger summary { color: var(--mid); } diff --git a/web/test/fixtures/css-expected.json b/web/test/fixtures/css-expected.json index 2045d936..95bbbd9d 100644 --- a/web/test/fixtures/css-expected.json +++ b/web/test/fixtures/css-expected.json @@ -4449,10 +4449,8 @@ "|||.pp-panel|||border-radius": "var(--card-radius)", "|||.pp-panel|||background": "var(--ground)", "|||.pp-panel form, .pp-panel .pf-note|||margin-top": "var(--sp-4)", - "|||.pp-fold|||border-top": "1px solid var(--line-soft)", "|||.pp-fold summary|||color": "inherit", "|||.pp-fold summary|||font-weight": "600", - "|||.pp-fold[open]|||padding-bottom": "var(--sp-5)", "|||.pp-danger summary|||color": "var(--mid)", "|||.pf-row-mid|||align-items": "center" } From d3a5649413a06a0b61b2ee7789e2e28bf854cde7 Mon Sep 17 00:00:00 2001 From: Alexander Saavedra Date: Tue, 1 Dec 2026 16:06:06 +0100 Subject: [PATCH 2/2] test(e2e): the target-weight test types a value that differs from the stored one The stack is shared by every browser project of a run: when another project had already stored 77, the same value saved nothing and the status line the test waits for never appeared. --- e2e/lan/profile-more.spec.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/e2e/lan/profile-more.spec.mjs b/e2e/lan/profile-more.spec.mjs index c235030c..5055063a 100644 --- a/e2e/lan/profile-more.spec.mjs +++ b/e2e/lan/profile-more.spec.mjs @@ -122,7 +122,10 @@ test('a #profile link opened before the settings answer shows the target weight expect(await page.evaluate(() => history.length)).toBe(before); // drawn once: a later settings change updates the status line in place, the target field is the same element const target = await page.locator('#pf-target').elementHandle(); - await page.locator('#pf-target').fill('77'); + // a value that differs from the stored one: the stack is shared by every browser project of the run, so another + // project's run of this test may have stored this very number already, and an unchanged target saves nothing + const stored = await page.locator('#pf-target').inputValue(); + await page.locator('#pf-target').fill(stored === '77' ? '78' : '77'); await page.locator('#pf-target').press('Enter'); await expect(page.locator('#pf-goal-msg')).not.toBeEmpty(); expect(await target.evaluate((el) => el.isConnected)).toBe(true);