Files
dsantillan 87bfd6d4c4 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).
2026-09-21 14:29:54 -04:00

3.6 KiB
Raw Permalink Blame History

KuentaGYM website

Source of the project website — plain hand-written HTML/CSS/JS, no build step, served as static files. It is not part of any pipeline here: .gitea/workflows/ builds and pushes the container images and nothing else, and this site is not deployed for this fork. Every page's canonical and og: URLs assume it is served alongside the app at https://gym.dploy.lol.

Not in this folder (added when the pages are published):

  • img/ — built by build-images.sh <dist>/img: the five screenshots from ../assets/screenshots/ as PNG plus WebP at 480/600/1170 px (served through <picture>), banner.png, and social.jpg (1200×630, the og:image on every page)
  • icon-180.png / icon-512.png — copied from ../frontend/public/ (the same icons the PWA uses, so the browser tab, home screen and app all match)

There is no KuentaGYM.apk and no demo/ here. This fork publishes no APK, so the mobile app is whatever you build from ../frontend yourself (see ../docs/MOBILE.md); there is no public demo instance, so nothing is framed or linked as one. Both belonged to the upstream project, and the sections and links that promised them are gone.

Navigation is a topic rail (.side): one title/subtitle list of everything on the site, a fixed column beside the page from 1300 px up and the hamburger sheet below that, with a scrollspy lighting the section under the reader. The top bar keeps only the brand, the source repository and the "Get started" button.

site.js carries the pieces that are left, each failing soft so the page is complete without any of them: the two panel controllers (header sheet, contents drawer), the scrollspy and the chapter groups, the scroll reveals, the feature-rail arrows and the hero intro handoff. It makes no third-party request. The repo star/issue counts, the Discord member count and the About page's release timeline were removed with the upstream links they belonged to: they read api.github.com and discord.com, which know nothing about this fork's repository — and the About page's timeline is now static, marked up in the HTML.

Every page starts with a "Skip to content" link (.skip, visible on focus) that targets <main id="main">. Screenshots change under the same file name, and nginx caches images for seven days — bump the name if a new one must show up at once.

api.html is the one generated file in here: node scripts/build-api-docs.mjs rewrites it from ../api/openapi.yaml. Edit the spec, re-run the script, commit both — never hand-edit api.html, the next run overwrites it. The page is static HTML in this site's own design (no Swagger UI, nothing rendered at view time); the only script of its own it carries is the contents drawer and the card expand/collapse.

api.html is generated — never edit it by hand. Its whole chrome (nav, nav sheet, contents rail, footer, the "Get started" button, the no-analytics comment, the cache-busters, the spec download link) lives in scripts/build-api-docs.mjs, outside this folder, which renders the page from ../api/openapi.yaml. Change the generator, then re-run node scripts/build-api-docs.mjs; anything typed into api.html is overwritten wholesale. Keep the four pages' ?v=N values in step when styles.css or site.js changes — three pages carry their own tags, and the generator writes api.html's.

styles.css and site.js are cache-busted with ?v=N — nginx serves the site with no-cache, must-revalidate, but the query bump is what saves a Cloudflare edge from handing out an old stylesheet with new markup. Bump it on every change.