18 Commits
Author SHA1 Message Date
Duarte Santos cc878dd353 curated2: review fixes — touch drag (!45), deload seeds (!28), rep-range typing (!69), rebuilt rows on config change (!54), swap keeps history (!43), Hevy retry/dedup/aliases (!30), HTTPS doc (!67), locale gaps 2026-08-30 14:18:09 +02:00
Duarte Santos f0777e362a curated2: !68 (Thai and Hungarian both land: 14 languages) 2026-08-30 13:31:30 +02:00
Zoltan K 41df6cb139 i18n: Add Hungarian (hu) — UI, exercise instructions, and exercise names
Rebased onto the Brazilian-Portuguese localization that landed while this was
in progress — that MR introduced EXERCISE_NAME_LANGS/exerciseNameFor()/
exerciseNameSearchText() in lib/i18n-core.js and a generated-pack convention
(scripts/exercise-name-sources/<lang>.json → scripts/build-<lang>-exercise-
names.mjs → frontend/src/exercise-names/<lang>.js), which is exactly the
mechanism this MR originally invented independently as NAME_LANGS/nameFor().
Dropped that duplicate plumbing entirely and reused theirs instead:

- frontend/src/locales/hu.js — full UI translation, 740/740 keys (654 from
  the original translation pass, 86 more added to cover the drop-set/rest-
  pause, equipment-profile, server-pairing and session-note strings that
  landed in the same window).
- frontend/src/instr/hu.js — unchanged mechanism, all 1,324 exercises' step-
  by-step instructions. The upstream exercise dataset (hasaneyldrm/exercises-
  dataset) still has no hu field, so this stays hand-maintained here.
- scripts/exercise-name-sources/hu.json + scripts/build-hu-exercise-
  names.mjs (mirrors the pt-BR ones) → frontend/src/exercise-names/hu.js —
  all 1,324 exercise names, added to EXERCISE_NAME_LANGS. Exercise names
  now render the same bilingual way pt-BR's do: the translated name alone
  when it's the same loanword as English (e.g. "burpee"), otherwise
  "translated (english)".
- One small generalization to exerciseNameFor(): its loanword-casing
  comparison was hardcoded to `.toLocaleLowerCase('pt-BR')`. Changed to the
  active language instead, so it is correct for hu (and any language after
  it) rather than only for pt-BR. No behavior change for pt-BR itself.
- Workout.remove.test.jsx's locale-coverage test hardcoded an expected pack
  count; already fixed once for the 12th language, re-applied here since hu
  is now the 14th — derives the count from LANGS so this stops recurring.

Translated in bulk with AI assistance and validated programmatically (id
coverage against the 1,324-exercise catalogue, key-set parity across all 13
locales via check-locales.mjs, duplicate/collision and encoding checks) —
not yet proofread line-by-line by a fluent human reviewer, same disclosure
standard scripts/exercise-name-sources/README.md and instruction-sources/
README.md already hold the pt-BR translations to.

node frontend/scripts/check-locales.mjs: 13 locales, 740 keys each, in sync.
Full frontend test suite: 39 files / 533 tests passing.
2026-08-29 23:04:10 +02:00
Julius Haring 687ef2562e feat: add hevy map import to csv import 2026-08-29 17:02:41 +02:00
Julius Haring 45f7541508 feat: add hevy pro api import 2026-08-29 17:02:28 +02:00
mzspicoli 448c66752f feat(i18n): localize pt-BR exercise names 2026-08-24 18:02:29 +02:00
mzspicoli dc3fafc6ef fix(i18n): correct reviewed pt-BR instructions 2026-08-24 18:02:11 +02:00
mzspicoli 3d3e44c973 feat(i18n): complete Brazilian Portuguese instructions 2026-08-24 18:02:11 +02:00
mzspicoli cf7b3496a5 fix(i18n): keep translation tooling portable 2026-08-24 18:01:54 +02:00
mzspicoli ad69235f6e feat(i18n): complete pt-BR core instructions 2026-08-24 18:01:54 +02:00
mzspicoli c667539f10 feat(i18n): translate first pt-BR core batch 2026-08-24 18:01:54 +02:00
mzspicoli 052ef7e0ba fix(i18n): document and validate pt-BR instructions 2026-08-24 18:01:54 +02:00
mzspicoli 9b72fb7f1e feat(i18n): start Brazilian Portuguese instructions 2026-08-24 18:01:36 +02:00
Duarte Santos 6dfb36c46a Lizenz der Uebungsmedien richtiggestellt: MIT-Metadaten, Bilder (c) Gym visual
"exercise data from hasaneyldrm/exercises-dataset (CC)" stand ueberall -- im
README, in NOTICE.md, auf der Website, in den Settings, im compose-File und im
fetch-Script. Der Upstream lizenziert aber zwei Haelften unterschiedlich: Namen,
Attribute und Anleitungstexte sind MIT, die Bilder und GIFs sind (c) Gym visual
und liegen dort mit einer nicht uebertragbaren Erlaubnis.

- NOTICE.md trennt die beiden Teile, zitiert die MIT-Lizenz im Wortlaut und
  nennt die Gym-visual-Terms
- README/Website/Settings sagen jetzt MIT + (c) Gym visual statt "CC"
- compose und fetch-media.sh drucken die Herkunft beim Download, damit es auch
  sieht, wer die Doku nicht liest

An der Nutzung von openGym aendert das nichts: die Medien lagen nie im Repo, in
der History, im Image oder im APK -- jede Instanz laedt sie beim ersten Start
vom Upstream. An der Weiterverwendung der Medien schon: dafuer braucht es eine
eigene Lizenz von Gym visual.
2026-08-22 15:32:04 +02:00
Duarte Santos c05b0756ec Localization: 12 UI languages + exercise instructions in 10 (#7)
Adds a Language setting (Settings → Appearance) that translates the whole
app: a tiny dependency-free i18n layer (English source strings as keys,
per-language dictionaries in frontend/src/locales/) plus per-language
exercise-instruction packs generated from the upstream dataset
(frontend/src/instr/, via scripts/build-instructions.mjs).

UI: en, de, es, fr, it, pt, pl, tr, ru, zh, ko, hi. Instructions: all of
those except de/pt (not in the upstream dataset — fall back to English).
Body-part/equipment/muscle labels and date formats are localized too;
exercise names stay English (upstream limitation).

Everything is lazy-loaded per language (Vite code-splitting), so the
initial bundle is unchanged; the choice syncs with the profile like the
theme. Closes #7.
2026-07-21 21:45:24 +02:00
Duarte Santos 7e1d27b218 Rewrite frontend in React + Vite (organised component tree)
Ersetzt die 1900-Zeilen-Vanilla-SPA durch eine strukturierte React-App:
- frontend/src: views/ (9 Views), components/ (Modals, LineChart, Heatmap,
  TabBar, Media, Stepper, RestTimer, Toast), store/ (Zustand: State+Sync,
  UI), lib/ (format, history, exercises, api/WebAuthn, sound, nav)
- React Router (Hash), Zustand-Store mit localStorage + Server-Sync
- Reaktives DOM-Diffing löst das manuelle Re-Render-Ruckeln (GIF läuft beim
  Set-Abhaken flüssig weiter)

Self-Hosting bleibt ein Befehl: web/ ist jetzt ein Multi-Stage-Dockerfile,
das das Frontend IM Container baut und mit nginx ausliefert — keine lokale
Node/Build-Kette nötig. Übungsmedien nach ./media ausgelagert.

Voller Ablauf im Headless-Browser getestet (Login→Plan→Workout→Stats→
Library→Settings, Feature-Parität) und Standalone-Compose Ende-zu-Ende
(React-Build im Docker, /api-Proxy, geforgter Passkey-Login) verifiziert.
2026-07-20 15:12:05 +02:00
Duarte Santos 3333b4decd openGym: Open-Source-Release als Self-Hosting-App
Rebranding GymLog → openGym. Ein-Befehl-Self-Hosting via Docker Compose:
web (nginx serviert App + Proxy /api → api, ein Origin für Passkeys), api
(Node/WebAuthn), media-Service lädt Übungs-GIFs beim ersten Start automatisch.
Passkey-Domain über .env konfigurierbar (RP_ID/ORIGIN/WEB_PORT/RP_NAME),
Secure-Cookie nur bei HTTPS (http://localhost funktioniert). MIT-Lizenz,
README fürs Self-Hosting, docs/SELF_HOSTING.md, CONTRIBUTING.md.

Standalone-Stack Ende-zu-Ende getestet (Passkey-Register/-Login, Daten-Sync,
User-Isolation über den Proxy auf http://localhost).
2026-07-19 16:18:34 +02:00
Duarte Santos 29f5f64f8e GymLog: Gym- & Körpergewicht-Tracker — PWA mit Passkey-Login
Frontend: Static-SPA (Vanilla JS) — Dashboard, Wochenplan mit Per-Tag-Umplanung,
geführter Workout-Flow (Körpergewicht-Abfrage, Set-Logging, Rest-Timer, PR-Erkennung,
Gewichts-Bestätigung pro Übung), Activity-Heatmap, Kraft- & Gewichts-Charts,
Übungs-Bibliothek (1324 Übungen, autoplay GIFs), Swipe-Sheets, PWA/offline.

Backend: Node + @simplewebauthn — Passkey-Registrierung/-Login (Face ID),
HMAC-Session-Cookies, Per-User-State-Sync mit JSON-File-Storage.

Übungsdaten aus hasaneyldrm/exercises-dataset (Medien via scripts/fetch-media.sh).
2026-07-18 22:53:08 +02:00