Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
8 changes: 4 additions & 4 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docker/example.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# and is never committed (docker/.gitignore).

# The image tag: mralexandersaavedra/loop-server:<HC_VERSION> and mralexandersaavedra/loop-web:<HC_VERSION>
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=

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions services/loop-ingest/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion services/loop-ingest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "loop-ingest",
"version": "1.12.0",
"version": "1.12.1",
"private": true,
"license": "MIT",
"type": "module",
Expand Down
1 change: 1 addition & 0 deletions web/src/client/profile.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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, /<div class="pf-row pf-row-mid"><span class="pf-lbl">Share with my coach<\/span><button type="button" class="sw"/, 'the switch is centred on its label (a row whose control has no text)');
assert.ok(off.includes('Lets the admin see your page, read-only. You can turn it off any time.'));
assert.match(off, /id="pf-share-msg"[^>]*role="status"/);
const on = html(setup({ auth: authFull({ sharing: true }) }));
Expand Down
2 changes: 1 addition & 1 deletion web/src/client/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ type SettingsState = { pending?: boolean; last?: SaveStatus | null } | null | un
return section(A.heading, '<div class="pf-row"><span class="pf-lbl">' + esc(format(A.signedInAs, { name: s.username })) + '</span>' +
'<button type="button" class="food-btn food-btn-ghost pf-signout" id="pf-signout" data-pf-signout="">' + esc(A.signOut) + '</button></div>' +
'<p class="pf-note pf-status" id="pf-signout-msg" role="status" aria-live="polite"></p>' +
(own ? '<div class="pf-row"><span class="pf-lbl">' + esc(A.share) + '</span>' + HC.switchBtn(s.sharing, A.share, ' data-pf-share=""') + '</div>' +
(own ? '<div class="pf-row pf-row-mid"><span class="pf-lbl">' + esc(A.share) + '</span>' + HC.switchBtn(s.sharing, A.share, ' data-pf-share=""') + '</div>' +
'<p class="pf-note">' + esc(A.shareHint) + '</p><p class="pf-note pf-status" id="pf-share-msg" role="status" aria-live="polite"></p>' : '') +
(own && s.admin ? '<div class="pf-row"><span class="pf-lbl">' + esc(A.people) + '</span>' +
'<button type="button" class="food-btn food-btn-ghost" data-pp-sheet="">' + esc(A.peopleOpen) + '</button></div>' : ''));
Expand Down
5 changes: 5 additions & 0 deletions web/src/styles/profile.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
3 changes: 2 additions & 1 deletion web/test/fixtures/css-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}