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

+22 -7
View File
@@ -4,11 +4,16 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
## What this is
openGym is a self-hosted gym & body-weight tracker PWA. Two containers (`api` + `web`) plus a
KuentaGYM is a self-hosted gym & body-weight tracker PWA. Two containers (`api` + `web`) plus a
`./data` folder the user owns — no third-party account, no telemetry. Passkey (WebAuthn) login,
installable as a home-screen app, optional Capacitor shells for standalone Android/iOS builds.
License: AGPL-3.0-or-later.
It is a rebranded fork of [openGym](https://gitlab.com/DuarteSantos8/opengym) by Duarte Santos: the
same code under the same AGPL-3.0-or-later, with this fork's name on it (see NOTICE.md). The fork's
own repository — issues, pull requests, Actions — is the Gitea instance at
<https://git.dploy.lol/dsantillan/kuentagym>, and the live instance runs at <https://gym.dploy.lol>.
## Project layout
```
@@ -20,7 +25,8 @@ mcp/ optional MCP server — read-only stdio bridge exposing a user's work
balance to LLM clients (Claude Desktop, Cursor…). Not part of the Docker build; only
runs when an LLM client spawns it.
media/ exercise img/gif, gitignored, fetched at runtime by the `media` compose service.
website/ static marketing site (plain HTML/CSS/JS), deployed separately by .gitlab-ci.yml.
website/ static marketing site (plain HTML/CSS/JS) — not deployed for this fork; built by hand
when someone wants it (node scripts/build-api-docs.mjs fills in api.html).
docs/ SELF_HOSTING.md, MOBILE.md.
```
@@ -51,11 +57,14 @@ cd frontend && npm run build:mobile # + cap sync, points media at the CDN data
There is no linter/formatter configured (no ESLint/Prettier config in the repo) and no
TypeScript — match the existing style by hand.
The CI gate is `.gitlab-ci.yml` on GitLab, the canonical remote (see README): it runs the
`frontend/` tests on Node 22 — the same version as `web/Dockerfile` / `api/Dockerfile`
(`node:22-alpine`) — and additionally builds and publishes the Docker images, packages the
signed Android APK, and deploys the demo/docs site. The Gitea and GitHub workflow copies
(`.gitea/workflows/`, `.github/workflows/`) are dormant mirrors; neither host runs them.
The CI gate is Gitea Actions on `git.dploy.lol`, configured in `.gitea/workflows/`: `test.yml` runs
the `frontend/` suite on Node 22 — the same version as `web/Dockerfile` / `api/Dockerfile`
(`node:22-alpine`) — and `docker-publish.yml` builds and pushes both images to the Gitea registry
on `main` and on a published release. The `mcp/` and `api/` suites are not run by CI, so run them
yourself (`cd mcp && npm test`, `cd api && npm test`). No job packages the Android APK and none
deploys the website. `.gitlab-ci.yml`, `.gitlab/` and `.github/workflows/` are dormant copies of
upstream's pipeline — no host runs them, they are not this fork's gate, and a change that only they
would catch is a change nothing checks here.
## Architecture
@@ -127,6 +136,12 @@ output), `api`, `web` (multi-stage build of `frontend/` served by nginx, which a
`web/nginx.conf.template` is rendered from env vars at container start (`NGINX_PORT`, `BACKEND`,
`PORT`), so host/port remapping works against prebuilt images without a rebuild.
Images are built by `.gitea/workflows/docker-publish.yml` and pushed to the Gitea registry as
`git.dploy.lol/dsantillan/kuentagym-api` and `git.dploy.lol/dsantillan/kuentagym-web`. The live
instance at `gym.dploy.lol` is deployed with Dokploy, which runs this compose file and **pulls**
those images — a change that is not committed, built by that workflow and pushed is not on the live
instance.
## Guidelines from CONTRIBUTING.md worth knowing before changing code
- **Dependency-light is a hard constraint, not a preference.** Frontend: React + Router + Zustand