Rebrand to KuentaGYM, and start a new profile in pounds and Spanish

The app is now KuentaGYM everywhere a user can see it, and a fresh profile no
longer starts on upstream's English/kg defaults. Both are this fork's decisions,
so both are pinned by tests rather than left to a find-and-replace.

Rename (1,270 references, 149 files)

- Visible surfaces: the Login/Home/mobile-onboarding wordmark, the Settings
  version line, the printed plan, the PWA title + manifest, and the 17 branded
  strings across all 14 locale packs.
- Infrastructure: repo links, the container images and the release endpoints now
  name git.dploy.lol/dsantillan/kuentagym; .gitea/workflows/docker-publish.yml
  publishes to this forge's registry instead of gitea.com.
- The Android/iOS application id stays ch.duartesantos.opengym on purpose:
  changing it would make the mobile app a different app that could never update
  an installed copy.

Three things the mechanical pass would have broken, fixed here

- The update check asked gitlab.com for upstream's releases and would have
  installed upstream's APK, putting the old name back on the phone. It now reads
  this fork's Gitea releases API (the assets shape differs), with the tests
  rewritten to the payload Gitea actually returns.
- Renaming the mobile state/pairing files (opengym-state.json,
  opengym-remote.json) would lose the on-device copy of a history whose WebView
  storage may have been evicted, and silently unpair the device. Both are read
  under their old names and written forward under the new ones.
- Renaming the exported plan-file marker (openGym_plan) rejected every plan
  shared before the rename as "not a plan file". Both markers are accepted.

Defaults: pounds and Spanish

- DEF.unit = 'lb', DEF.lang = 'es', plus every fallback that independently
  assumed en/kg (the <html lang> attribute, the Settings pickers, the Store, the
  MCP, the Coach payload).
- Server-generated push copy existed only in English and pt-BR, so a Spanish
  profile would have been notified in English; Spanish added.
- The demo seed states unit: 'kg' — its seeded numbers are kilograms, and
  inheriting the new default would have introduced an 82.4 lb lifter benching 60.
- The module-level language in i18n-core stays English: it is the only language
  whose strings need no pack, so `t()`, dates, numbers and lists agree before a
  pack loads. Starting there on 'es' formats a Spanish-shaped UI with English
  strings.

Also
- api/package.json's test glob missed push-messages.test.js and
  verify-error.test.js, which sat beside the modules they cover and never ran.
- README, docs/, website/ and the issue templates no longer describe upstream's
  GitLab/GitHub pipeline, Discord, sponsorship or public demo as if they were
  this fork's; upstream history and attribution are preserved (NOTICE.md).
This commit is contained in:
dsantillan committed 2026-09-21 14:29:54 -04:00
1 parent f91cde15a1
commit 87bfd6d4c4
152 files changed
+1784 -1604

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ jobs:
- uses: docker/metadata-action@v6
id: meta
with:
images: ghcr.io/${{ steps.repo.outputs.owner }}/opengym-${{ matrix.image }}
images: ghcr.io/${{ steps.repo.outputs.owner }}/kuentagym-${{ matrix.image }}
tags: |
type=raw,value=edge,enable=${{ github.ref == 'refs/heads/main' }}
type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
+4 -4
View File
@@ -1,6 +1,6 @@
# Keeps the GitLab copy identical to this repository, so nobody has to push twice.
#
# GitHub is the home of openGym; gitlab.com/DuarteSantos8/opengym is a mirror that stays
# GitHub is the home of KuentaGYM; git.dploy.lol/dsantillan/kuentagym is a mirror that stays
# because its CI builds the release artefacts (signed APK, multi-arch images, SBOMs) and
# nothing there is merged by hand. Every push to main and every v* tag is forwarded here.
# Pull mirroring on gitlab.com is a paid feature, so the push runs from this side.
@@ -32,7 +32,7 @@ concurrency:
jobs:
mirror:
# Forks have neither the secret nor a mirror to push to.
if: github.repository == 'DuarteSantos8/openGym'
if: github.repository == 'DuarteSantos8/KuentaGYM'
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
@@ -55,5 +55,5 @@ jobs:
git config credential.helper '!f() { echo "username=oauth2"; echo "password=$GITLAB_MIRROR_TOKEN"; }; f'
# main first, then the tags: a tag pipeline on GitLab checks that its commit is on
# main, so the branch has to be there before the tag arrives.
git push https://gitlab.com/DuarteSantos8/opengym.git refs/remotes/origin/main:refs/heads/main
git push https://gitlab.com/DuarteSantos8/opengym.git 'refs/tags/v*:refs/tags/v*'
git push https://git.dploy.lol/dsantillan/kuentagym.git refs/remotes/origin/main:refs/heads/main
git push https://git.dploy.lol/dsantillan/kuentagym.git 'refs/tags/v*:refs/tags/v*'
+2 -2
View File
@@ -1,8 +1,8 @@
# Publishes the browser-only demo to GitHub Pages: https://duartesantos8.github.io/openGym/
# Publishes the browser-only demo to GitHub Pages: https://duartesantos8.github.io/KuentaGYM/
#
# Dormant from 2026-08-19 to 2026-09-10 while the GitHub account was suspended; live again since.
# The same build (same command, Vite's base is './') is also served from the project's own site at
# https://opengym.duarte-santos.ch/demo/, so the demo has two addresses with identical content.
# https://gym.dploy.lol/demo/, so the demo has two addresses with identical content.
#
# Pages serves static files only, so this build has no backend — VITE_DEMO=1 makes the app
# boot straight into guest mode with a seeded example history (see frontend/src/lib/demo.js).
+16 -16
View File
@@ -115,24 +115,24 @@ jobs:
steps:
- uses: actions/checkout@v7
- run: docker build --target default -t opengym-api:default ./api
- run: docker build --target coach -t opengym-api:coach ./api
- run: docker build --target default -t kuentagym-api:default ./api
- run: docker build --target coach -t kuentagym-api:coach ./api
# No --target, exactly like docker-publish.yml. That workflow names no stage, so what it
# ships is whatever Dockerfile stage happens to be last -- and that untargeted artifact,
# not opengym-api:default above, is the image every self-hoster pulls as :latest. Build it
# not kuentagym-api:default above, is the image every self-hoster pulls as :latest. Build it
# the same way here so the assertion below is about the thing we actually publish.
- run: docker build -t opengym-api:published ./api
- run: docker build -t kuentagym-api:published ./api
- name: the image published as :latest has no AI runtime either
run: |
docker run --rm opengym-api:published node -e \
docker run --rm kuentagym-api:published node -e \
'import("@anthropic-ai/claude-agent-sdk").then(()=>{console.error("AI runtime present in the published image -- the last Dockerfile stage is no longer the runtime-free one");process.exit(1)},()=>process.exit(0))'
! docker run --rm opengym-api:published codex --version
! docker run --rm opengym-api:published bwrap --version
! docker run --rm kuentagym-api:published codex --version
! docker run --rm kuentagym-api:published bwrap --version
- name: the default image boots and serves, with no AI runtime in it
run: |
docker run -d --name api-default -e DATA_DIR=/data -p 3000:3000 opengym-api:default
docker run -d --name api-default -e DATA_DIR=/data -p 3000:3000 kuentagym-api:default
for i in $(seq 1 30); do
curl -fsS http://localhost:3000/api/config >/dev/null 2>&1 && break
sleep 1
@@ -140,13 +140,13 @@ jobs:
curl -fsS http://localhost:3000/api/config | tee /dev/stderr | grep -q '"invite_only"'
# Absent by construction, not by accident: --omit=optional is the only thing keeping
# the AI dependency out of the image an owner gets when they never asked for it.
docker run --rm opengym-api:default node -e \
docker run --rm kuentagym-api:default node -e \
'import("@anthropic-ai/claude-agent-sdk").then(()=>{console.error("AI runtime present in the default image");process.exit(1)},()=>process.exit(0))'
docker rm -f api-default
- name: the coach image carries a runnable Agent SDK
run: |
docker run --rm opengym-api:coach node --input-type=module -e '
docker run --rm kuentagym-api:coach node --input-type=module -e '
const { adapterFor } = await import("./coach/adapters/index.js");
const r = await adapterFor("claude").check();
if (!r.ok) { console.error(r.error); process.exit(1); }
@@ -155,21 +155,21 @@ jobs:
- name: the coach image carries the Codex runtime and its sandbox
run: |
docker run --rm opengym-api:coach codex --version
docker run --rm opengym-api:coach bwrap --version
docker run --rm kuentagym-api:coach codex --version
docker run --rm kuentagym-api:coach bwrap --version
# Owned by the user jobs drop to, and 0700 — a credential cache readable by anything
# else in the container would undo the point of dropping privileges at all.
test "$(docker run --rm opengym-api:coach stat -c '%U %a' /coach-auth)" = "coach 700"
test "$(docker run --rm kuentagym-api:coach stat -c '%U %a' /coach-auth)" = "coach 700"
- name: neither Codex nor its sandbox is in the default image
run: |
# bubblewrap is a Codex requirement, so an owner who never opted in should not be
# carrying it. Both commands must fail.
! docker run --rm opengym-api:default codex --version 2>/dev/null
! docker run --rm opengym-api:default bwrap --version 2>/dev/null
! docker run --rm kuentagym-api:default codex --version 2>/dev/null
! docker run --rm kuentagym-api:default bwrap --version 2>/dev/null
- name: the privilege drop can actually be performed in the image
run: |
# canDropPrivileges() fails closed, so a missing `coach` user disables every job —
# including the fixture provider. Cheaper to assert here than to discover on an instance.
docker run --rm opengym-api:default id coach
docker run --rm kuentagym-api:default id coach