From 10f98f9cf42b4fa41ceef71cdbb8d1ef2ea0b84b Mon Sep 17 00:00:00 2001 From: Alexander Saavedra Date: Tue, 1 Dec 2026 12:57:16 +0100 Subject: [PATCH 1/2] fix(page): the sharing switch sits on the line of its label --- web/src/client/profile.test.mjs | 1 + web/src/client/profile.ts | 2 +- web/src/styles/profile.css | 5 +++++ web/test/fixtures/css-expected.json | 3 ++- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/web/src/client/profile.test.mjs b/web/src/client/profile.test.mjs index 061b96f3..a1c2779a 100644 --- a/web/src/client/profile.test.mjs +++ b/web/src/client/profile.test.mjs @@ -693,6 +693,7 @@ test('sharing switch: every signed-in person has "Share with my coach" with its assert.match(off, SW); assert.equal(/** @type {RegExpMatchArray} */ (off.match(SW))[1], 'false'); assert.ok(off.includes('Share with my coach')); + assert.match(off, /
Share with my coach<\/span>
' + '

' + - (own ? '
' + esc(A.share) + '' + HC.switchBtn(s.sharing, A.share, ' data-pf-share=""') + '
' + + (own ? '
' + esc(A.share) + '' + HC.switchBtn(s.sharing, A.share, ' data-pf-share=""') + '
' + '

' + esc(A.shareHint) + '

' : '') + (own && s.admin ? '
' + esc(A.people) + '' + '
' : '')); diff --git a/web/src/styles/profile.css b/web/src/styles/profile.css index add7f7c9..0bb2eecd 100644 --- a/web/src/styles/profile.css +++ b/web/src/styles/profile.css @@ -687,3 +687,8 @@ .pp-danger summary { color: var(--mid); } + +/* a row whose control has no text (a switch): centred on the label, since a baseline it does not have would lift it */ +.pf-row-mid { + align-items: center; +} diff --git a/web/test/fixtures/css-expected.json b/web/test/fixtures/css-expected.json index 14892f84..2045d936 100644 --- a/web/test/fixtures/css-expected.json +++ b/web/test/fixtures/css-expected.json @@ -4453,5 +4453,6 @@ "|||.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)" + "|||.pp-danger summary|||color": "var(--mid)", + "|||.pf-row-mid|||align-items": "center" } From e5420d818957fb304500a4e5aeb79f14fb26bc2c Mon Sep 17 00:00:00 2001 From: Alexander Saavedra Date: Tue, 1 Dec 2026 13:02:34 +0100 Subject: [PATCH 2/2] chore(release): 1.12.1 --- CHANGELOG.md | 4 ++++ 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 +- 9 files changed, 19 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86e45444..39418ca3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ 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.1] - 2026-12-01 + +- **Profile:** the "Share with my coach" switch now sits on the line of its label; on a phone it was drawn above it. + ## [1.12.0] - 2026-12-01 - **People: manage accounts from the page.** The install's first user is now its admin, and their profile has a diff --git a/README.es.md b/README.es.md index 5735c1aa..bdc8e283 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.0/docker/docker-compose.yml - curl -fsSL -o .env https://raw.githubusercontent.com/mralexsaavedra/loop/v1.12.0/docker/example.env + curl -fsSLO https://raw.githubusercontent.com/mralexsaavedra/loop/v1.12.1/docker/docker-compose.yml + curl -fsSL -o .env https://raw.githubusercontent.com/mralexsaavedra/loop/v1.12.1/docker/example.env mkdir -p files/import files/manuals files/documents ``` diff --git a/README.md b/README.md index 42217918..c4a7b8c8 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.0/docker/docker-compose.yml - curl -fsSL -o .env https://raw.githubusercontent.com/mralexsaavedra/loop/v1.12.0/docker/example.env + curl -fsSLO https://raw.githubusercontent.com/mralexsaavedra/loop/v1.12.1/docker/docker-compose.yml + curl -fsSL -o .env https://raw.githubusercontent.com/mralexsaavedra/loop/v1.12.1/docker/example.env mkdir -p files/import files/manuals files/documents ``` diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index eb804352..7950425d 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.0} + image: mralexandersaavedra/loop-server:${HC_VERSION:-1.12.1} build: context: .. dockerfile: docker/loop-server.Dockerfile args: - VERSION: ${HC_VERSION:-1.12.0} + VERSION: ${HC_VERSION:-1.12.1} 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.0} + image: mralexandersaavedra/loop-web:${HC_VERSION:-1.12.1} build: context: .. dockerfile: docker/loop-web.Dockerfile args: - VERSION: ${HC_VERSION:-1.12.0} + VERSION: ${HC_VERSION:-1.12.1} 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 e0c14e7a..c0e01669 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.0 +HC_VERSION=1.12.1 # 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 53f03663..656a1154 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "loop", - "version": "1.12.0", + "version": "1.12.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "loop", - "version": "1.12.0", + "version": "1.12.1", "license": "MIT", "dependencies": { "astro": "7.3.8", diff --git a/package.json b/package.json index 36c960f3..9c29d1f7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "loop", - "version": "1.12.0", + "version": "1.12.1", "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 c42e9222..5a20b5da 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.0", + "version": "1.12.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "loop-ingest", - "version": "1.12.0", + "version": "1.12.1", "license": "MIT", "dependencies": { "pg": "^8.13.1" diff --git a/services/loop-ingest/package.json b/services/loop-ingest/package.json index 3c0f6e82..e66f4939 100644 --- a/services/loop-ingest/package.json +++ b/services/loop-ingest/package.json @@ -1,6 +1,6 @@ { "name": "loop-ingest", - "version": "1.12.0", + "version": "1.12.1", "private": true, "license": "MIT", "type": "module",