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

+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "openGym",
"short_name": "openGym",
"name": "KuentaGYM",
"short_name": "KuentaGYM",
"description": "Personal gym & body weight tracker",
"start_url": "./",
"scope": "./",
+4 -4
View File
@@ -1,9 +1,9 @@
/* openGym service worker — the app shell and its hashed assets are cached at install and kept
/* KuentaGYM service worker — the app shell and its hashed assets are cached at install and kept
fresh network-first, media (img/gif) cache-first. A home-screen app reopened without a network
comes back from here with the same bundle it last ran; the state itself lives in localStorage.
`CACHE` carries the build hash (vite.config.js rewrites it), so every deploy is a new worker
with its own cache and the previous build's files are dropped on activate. */
const CACHE = 'opengym-rt-__BUILD__'
const CACHE = 'kuentagym-rt-__BUILD__'
// What the shell needs to boot without a network: index.html plus every script/style/icon it
// references. Read from the served index.html so the list follows the build, not a hand-kept
@@ -38,9 +38,9 @@ self.addEventListener('push', e => {
// One alert per kind: a new rest-timer push replaces the last one instead of stacking
// up in the tray (issue #172). `tag` alone should do that, but iOS keeps every one, so
// the previous notification with the same tag is closed by hand first.
const tag = data.tag || 'opengym'
const tag = data.tag || 'kuentagym'
try { for (const n of await self.registration.getNotifications({ tag })) n.close() } catch {}
await self.registration.showNotification(data.title || 'openGym', {
await self.registration.showNotification(data.title || 'KuentaGYM', {
body: data.body || '',
icon: 'icon-512.png',
badge: 'icon-180.png',