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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
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.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
```

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.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
```

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.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
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.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
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.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=

Expand Down
5 changes: 4 additions & 1 deletion e2e/lan/profile-more.spec.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
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.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",
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.2",
"version": "1.12.3",
"private": true,
"license": "MIT",
"type": "module",
Expand Down
10 changes: 10 additions & 0 deletions web/src/client/profile.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1285,5 +1285,15 @@ test('people sheet layout: two cards; the open person\'s panel sits under THEIR
const at = panel.indexOf(`<summary>${label}</summary>`);
const end = panel.indexOf('</details>', at);
assert.ok(panel.indexOf(`id="${id}"`) > at && panel.indexOf(`id="${id}"`) < end, `${id} is inside its fold`);
assert.equal(panel.slice(at, at + `<summary>${label}</summary>`.length + 22), `<summary>${label}</summary><div class="acc-body">`, `${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</);
assert.doesNotMatch(h, /Client id|Client secret/);
});
3 changes: 2 additions & 1 deletion web/src/client/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,8 @@ type SettingsState = { pending?: boolean; last?: SaveStatus | null } | null | un
}
// one fold of the person's panel: closed until asked for, so the panel opens calm (the actions first, the rest by name)
function fold(label: string, inner: string, cls?: string) {
return '<details class="pf-retired pp-fold' + (cls ? ' ' + cls : '') + '"><summary>' + esc(label) + '</summary>' + inner + '</details>';
// .acc-body: the padded body of every fold in the page (tablas.css gives a bare <details> its card look)
return '<details class="pf-retired pp-fold' + (cls ? ' ' + cls : '') + '"><summary>' + esc(label) + '</summary><div class="acc-body">' + inner + '</div></details>';
}
function panelHtml() {
var P2 = PT(), name = PS.open, p = name && PS.list ? PS.list.filter(function (x) { return x.username === name; })[0] : null;
Expand Down
4 changes: 2 additions & 2 deletions web/src/i18n/profile-templates.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
Expand Down
6 changes: 0 additions & 6 deletions web/src/styles/profile.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
2 changes: 0 additions & 2 deletions web/test/fixtures/css-expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}