Initialize Workout Tracker app shell
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
node_modules/
|
||||||
|
dist/
|
||||||
|
coverage/
|
||||||
|
.vite/
|
||||||
|
*.local
|
||||||
@@ -0,0 +1,41 @@
|
|||||||
|
# Repository agent instructions
|
||||||
|
|
||||||
|
Roborto Context System: 1.0
|
||||||
|
|
||||||
|
This repository uses a repository-based context, task, decision, and handoff system so work can continue across ChatGPT, Codex, and human sessions without depending on chat history.
|
||||||
|
|
||||||
|
## Start every session
|
||||||
|
|
||||||
|
Read:
|
||||||
|
|
||||||
|
1. `AGENTS.md` and any more-specific nested `AGENTS.md` relevant to files being changed.
|
||||||
|
2. `docs/PROJECT_OVERVIEW.md`.
|
||||||
|
3. `docs/CURRENT_STATE.md`.
|
||||||
|
4. `docs/DECISIONS.md`.
|
||||||
|
5. `docs/TASKS.md`.
|
||||||
|
6. `docs/HANDOFF.md`.
|
||||||
|
7. Relevant current code/config/tests for the task.
|
||||||
|
|
||||||
|
For current-state facts, repository code/configuration takes precedence over maintained docs, task text, handoff snapshots, and old chat assumptions, in that order. Report conflicts instead of silently following stale context.
|
||||||
|
|
||||||
|
The user's current explicit instruction controls the requested change. Preserve existing behavior unless the request or accepted task explicitly changes it.
|
||||||
|
|
||||||
|
## Scope and tasks
|
||||||
|
|
||||||
|
- Work only on the explicit request or an accepted/in-progress task.
|
||||||
|
- `docs/TASKS.md` is scoped work, not a speculative backlog.
|
||||||
|
- If the user explicitly requests a sufficiently scoped implementation and no matching task exists, create an accepted task before implementation.
|
||||||
|
- Do not invent features or perform unrelated refactors.
|
||||||
|
- Run the validation required by the task before marking it complete.
|
||||||
|
|
||||||
|
## Context maintenance
|
||||||
|
|
||||||
|
- Stable product/architecture facts: `docs/PROJECT_OVERVIEW.md`.
|
||||||
|
- Current operational state/issues: `docs/CURRENT_STATE.md`.
|
||||||
|
- Durable accepted choices: `docs/DECISIONS.md`.
|
||||||
|
- Scoped implementation work: `docs/TASKS.md`.
|
||||||
|
- Replaceable transfer snapshot: `docs/HANDOFF.md`.
|
||||||
|
|
||||||
|
Update durable documents when work makes them stale. Refresh `HANDOFF.md` rather than appending chat history.
|
||||||
|
|
||||||
|
Do not commit, push, switch branches, deploy, or expose secrets without explicit user instruction.
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
# Exercise Tracker current state
|
||||||
|
|
||||||
|
- Last updated: 2026-10-18
|
||||||
|
- Current branch: `task/001-foundation`
|
||||||
|
|
||||||
|
Update this file whenever meaningful work changes application, deployment, test, or known-issue status. Verify it against the repository before relying on it.
|
||||||
|
|
||||||
|
## Application status
|
||||||
|
|
||||||
|
The repository has a React/Vite application shell with React-Bootstrap, local CSS, top-level section navigation, and placeholder content. No workout routine data, date/period navigation, IndexedDB persistence, logging, or timers are implemented. The repository still has no commits.
|
||||||
|
|
||||||
|
## Confirmed by implementation and validation
|
||||||
|
|
||||||
|
- TASK-001 automated shell test, lint, and production build passed.
|
||||||
|
|
||||||
|
## Partial or externally dependent areas
|
||||||
|
|
||||||
|
- TASK-001 requires a phone/desktop browser visual check, but no browser surface was available in this session. Licensed/reviewed exercise illustrations and a deployment location are not yet selected.
|
||||||
|
|
||||||
|
## Known issues
|
||||||
|
|
||||||
|
- `docs/SPEC.md` contains an apparent pull-up progression typo ("4 × 10 minutes"); `docs/WORKOUT_ROUTINE.md` specifies a 10-minute EMOM with 3–4 reps each minute. The authoritative routine controls seed data.
|
||||||
|
- Exercise illustrations and detailed technique copy are not supplied; TASK-004 can use labeled placeholders, while TASK-011 requires reviewed assets/content.
|
||||||
|
|
||||||
|
## Current work in progress
|
||||||
|
|
||||||
|
- TASK-001: Application foundation and responsive shell.
|
||||||
|
|
||||||
|
## Immediate priorities
|
||||||
|
|
||||||
|
1. Complete TASK-001 browser visual verification, then close the task. Do not start TASK-002 until separately selected.
|
||||||
@@ -0,0 +1,97 @@
|
|||||||
|
# Exercise Tracker decisions
|
||||||
|
|
||||||
|
This file records durable accepted decisions. Implementation detail and temporary status belong in `PROJECT_OVERVIEW.md`, `CURRENT_STATE.md`, or `HANDOFF.md`.
|
||||||
|
|
||||||
|
## ADR-001: Repository evidence is authoritative
|
||||||
|
|
||||||
|
- Status: Accepted
|
||||||
|
- Date: 2026-10-18
|
||||||
|
|
||||||
|
### Decision
|
||||||
|
|
||||||
|
For claims about current state, current code and configuration take precedence over maintained documentation, task requirements, handoff snapshots, and assumptions from earlier chats, in that order. Conflicts are reported rather than silently resolved from stale context.
|
||||||
|
|
||||||
|
### Context
|
||||||
|
|
||||||
|
The project may be developed across multiple conversations, people, machines, or deployment checkouts; conversational context can become stale.
|
||||||
|
|
||||||
|
### Consequences
|
||||||
|
|
||||||
|
Agents inspect repository evidence before acting. Durable facts are maintained in repository documents; `HANDOFF.md` remains supplementary and replaceable.
|
||||||
|
|
||||||
|
## ADR-002: Preserve existing behavior by default
|
||||||
|
|
||||||
|
- Status: Accepted
|
||||||
|
- Date: 2026-10-18
|
||||||
|
|
||||||
|
### Decision
|
||||||
|
|
||||||
|
Existing functionality, routes, controls, permissions, data flow, and public behavior are preserved unless an accepted task or explicit user instruction requests a behavioral change. Agents do not invent product requirements or perform unrelated refactoring.
|
||||||
|
|
||||||
|
### Context
|
||||||
|
|
||||||
|
Repository work must remain reviewable and scoped.
|
||||||
|
|
||||||
|
### Consequences
|
||||||
|
|
||||||
|
Changes stay within accepted scope and avoid accidental product redesign.
|
||||||
|
|
||||||
|
## Maintenance workflow
|
||||||
|
|
||||||
|
1. Discuss/receive requirements.
|
||||||
|
2. Record important accepted durable decisions here.
|
||||||
|
3. Record accepted implementation scope and acceptance criteria in `TASKS.md`.
|
||||||
|
4. Implement and test.
|
||||||
|
5. Update `CURRENT_STATE.md`.
|
||||||
|
6. Refresh `HANDOFF.md` when transferring work.
|
||||||
|
|
||||||
|
## ADR-003: Offline local application architecture
|
||||||
|
|
||||||
|
- Status: Accepted
|
||||||
|
- Date: 2026-10-18
|
||||||
|
|
||||||
|
### Decision
|
||||||
|
|
||||||
|
Build Workout Tracker with React, Vite, React-Bootstrap, and IndexedDB for persistent local data. The application has no backend, authentication, or cloud dependency.
|
||||||
|
|
||||||
|
### Context
|
||||||
|
|
||||||
|
These are explicit requirements from the project owner and `docs/SPEC.md`.
|
||||||
|
|
||||||
|
### Consequences
|
||||||
|
|
||||||
|
The UI must work from locally available data, and persistence and backup flows must remain local. Implementation details and library choices beyond the named stack remain open.
|
||||||
|
|
||||||
|
## ADR-004: Documented routine is the initial-programme authority
|
||||||
|
|
||||||
|
- Status: Accepted
|
||||||
|
- Date: 2026-10-18
|
||||||
|
|
||||||
|
### Decision
|
||||||
|
|
||||||
|
Use `docs/WORKOUT_ROUTINE.md` as the authoritative source for the initial exercise programme. Do not invent, remove, or change prescribed exercises. Use `docs/SPEC.md` for application behavior.
|
||||||
|
|
||||||
|
### Context
|
||||||
|
|
||||||
|
The project owner identified these documents as authoritative; both are now present.
|
||||||
|
|
||||||
|
### Consequences
|
||||||
|
|
||||||
|
Keep the bundled seed distinct from local edits and historical records. Resolve programme wording differences in favor of `docs/WORKOUT_ROUTINE.md` for initial prescriptions.
|
||||||
|
|
||||||
|
## ADR-005: Seed, edits, and history have separate authority
|
||||||
|
|
||||||
|
- Status: Accepted
|
||||||
|
- Date: 2026-10-18
|
||||||
|
|
||||||
|
### Decision
|
||||||
|
|
||||||
|
Bundle the documented programme as versioned seed data, initialize a new local store from it once, and preserve subsequent user edits and historical workout data through app updates. Keep exercise-library content independent from prescriptions and logs. React components access IndexedDB through a storage adapter.
|
||||||
|
|
||||||
|
### Context
|
||||||
|
|
||||||
|
`docs/SPEC.md` requires editable routines, immutable historical performance in substance, offline use, and a tested local storage boundary.
|
||||||
|
|
||||||
|
### Consequences
|
||||||
|
|
||||||
|
Routine versions and dated records require distinct identities. Reseeding and schema migrations must never silently replace user edits or completed performance.
|
||||||
@@ -0,0 +1,47 @@
|
|||||||
|
# Exercise Tracker handoff
|
||||||
|
|
||||||
|
> **This handoff is supplementary context. Current repository code and maintained documentation take precedence if they conflict with this file.**
|
||||||
|
|
||||||
|
This file is a replaceable snapshot for conversation/work transfer. Refresh it rather than appending a long transcript.
|
||||||
|
|
||||||
|
- Updated: 2026-10-18
|
||||||
|
- Branch at update: `task/001-foundation`
|
||||||
|
- Commit at update: No commits yet
|
||||||
|
- Working tree: New context files are untracked
|
||||||
|
|
||||||
|
## Current active task
|
||||||
|
|
||||||
|
TASK-001 is in progress. Implementation and automated validation are done; phone/desktop browser visual verification remains.
|
||||||
|
|
||||||
|
## Recently completed
|
||||||
|
|
||||||
|
- Created the React/Vite and React-Bootstrap foundation with responsive shell, top-level navigation, local CSS, and shell test.
|
||||||
|
|
||||||
|
## Relevant files
|
||||||
|
|
||||||
|
- `AGENTS.md` — agent entry instructions
|
||||||
|
- `docs/PROJECT_OVERVIEW.md` — stable project/architecture context
|
||||||
|
- `docs/CURRENT_STATE.md` — current verified state and known issues
|
||||||
|
- `docs/DECISIONS.md` — durable accepted decisions
|
||||||
|
- `docs/TASKS.md` — scoped implementation work
|
||||||
|
- `docs/HANDOFF.md` — replaceable transfer snapshot
|
||||||
|
- `docs/SPEC.md` — application behavior and acceptance criteria
|
||||||
|
- `docs/WORKOUT_ROUTINE.md` — authoritative initial prescriptions
|
||||||
|
- `src/App.jsx` and `src/styles.css` — application shell
|
||||||
|
- `package.json` — scripts and dependencies
|
||||||
|
|
||||||
|
## Recent validation record
|
||||||
|
|
||||||
|
- `npm test` (1 test), `npm run lint`, and `npm run build` passed on Node 24.21.0. Browser visual verification was unavailable because the computer-use browser inventory was empty.
|
||||||
|
|
||||||
|
## Work remaining
|
||||||
|
|
||||||
|
- Finish TASK-001 phone/desktop visual verification and review final diff. Keep TASK-002 proposed until separately selected; do not merge without approval.
|
||||||
|
|
||||||
|
## Blockers and uncertainties
|
||||||
|
|
||||||
|
- Browser visual verification for TASK-001 could not run in this session. The spec's pull-up phrase "4 × 10 minutes" conflicts with the authoritative routine's 10-minute EMOM at 3–4 reps/min; use the routine for seed data and clarify the typo. Exercise illustrations and detailed technique copy require reviewed sources. Editor add/remove scope, backup merge semantics, image source, and deployment remain open decisions for later tasks.
|
||||||
|
|
||||||
|
## Recommended next action
|
||||||
|
|
||||||
|
Visually verify TASK-001 at phone and desktop widths when a browser surface is available, then mark it complete.
|
||||||
@@ -0,0 +1,39 @@
|
|||||||
|
# Exercise Tracker project overview
|
||||||
|
|
||||||
|
This document contains stable, repository-supported project information. See `CURRENT_STATE.md` for current status and `HANDOFF.md` for recent replaceable context.
|
||||||
|
|
||||||
|
This is a newly initialized repository. The user calls the planned product "Workout Tracker"; the repository directory remains `exercise-tracker`.
|
||||||
|
|
||||||
|
## Product
|
||||||
|
|
||||||
|
Planned: a personal, offline-first workout tracker with seven-day date navigation; exclusive Morning and Afternoon views; strength sets, repetitions, and weight components; daily isometrics and hanging practice; separate walk logging; Monday/Friday stretching; exercise details and local illustrations; rest, EMOM, and hold timers; workout history and progress; editable routines; JSON backup and restoration; and responsive mobile and desktop layouts. No product behavior is implemented. `docs/SPEC.md` defines application behavior and `docs/WORKOUT_ROUTINE.md` defines the authoritative initial programme.
|
||||||
|
|
||||||
|
## Technology and architecture
|
||||||
|
|
||||||
|
The application foundation now uses React, Vite, and React-Bootstrap. IndexedDB is planned for persistent local storage in TASK-005. The application has no backend, authentication, or cloud dependency.
|
||||||
|
|
||||||
|
The planned design keeps routine templates, exercise definitions, historical workout records, and UI state separate. The initial routine is bundled as versioned seed data; subsequent user edits are local data and must not be overwritten by updates. A storage adapter separates React components from IndexedDB. A service worker and locally bundled assets are required for offline reload in the release scope.
|
||||||
|
|
||||||
|
## Repository structure
|
||||||
|
|
||||||
|
- `AGENTS.md` — repository agent instructions and context-system version marker.
|
||||||
|
- `docs/` — project overview, current state, decisions, tasks, and handoff.
|
||||||
|
- `docs/SPEC.md` — application requirements and behavior.
|
||||||
|
- `docs/WORKOUT_ROUTINE.md` — authoritative initial training programme.
|
||||||
|
- `src/` — React shell, local styling, and shell test; future domain, storage, timer, and view code will be added here.
|
||||||
|
- `package.json` — development, test, lint, and build commands.
|
||||||
|
|
||||||
|
## Development environment
|
||||||
|
|
||||||
|
Use Node.js 20.19 or newer. Run `npm install`, `npm run dev`, `npm test`, `npm run lint`, and `npm run build` from the repository root.
|
||||||
|
|
||||||
|
## Production/deployment architecture
|
||||||
|
|
||||||
|
No deployment architecture is defined or verified.
|
||||||
|
|
||||||
|
## Documentation map
|
||||||
|
|
||||||
|
- Current status: `docs/CURRENT_STATE.md`
|
||||||
|
- Accepted decisions: `docs/DECISIONS.md`
|
||||||
|
- Active scope: `docs/TASKS.md`
|
||||||
|
- Recent handoff: `docs/HANDOFF.md`
|
||||||
+341
@@ -0,0 +1,341 @@
|
|||||||
|
# Workout Tracker — Project Specification
|
||||||
|
|
||||||
|
**Status:** Handoff candidate v0.2 — planning baseline; implementation begins only when approved
|
||||||
|
|
||||||
|
**Project type:** Personal, offline-first training planner and tracker
|
||||||
|
|
||||||
|
**Implementation:** React, Vite, React-Bootstrap, vanilla CSS/SCSS as needed
|
||||||
|
|
||||||
|
**Backend:** None in initial version; IndexedDB local persistence behind a storage adapter
|
||||||
|
|
||||||
|
**Primary devices:** Debian laptop/desktop browser; responsive mobile browser
|
||||||
|
**Maintainer workflow:** Codex CLI + `roborto-project-context`, Git, isolated per-task branches/worktrees
|
||||||
|
|
||||||
|
## 1. Purpose and success criteria
|
||||||
|
|
||||||
|
Build a small, maintainable, private workout application that replaces the weekly schedule document. It should make it easy to see today's session, understand correct exercise technique, time sets, record performance and change the programme without editing React source.
|
||||||
|
|
||||||
|
A successful first version enables the user to:
|
||||||
|
1. See the complete seven-day plan and today's prescribed sessions using a weekday strip and exclusive Morning/Afternoon switch.
|
||||||
|
2. Open each exercise's instructions, muscles involved, equipment, and image(s), with offline availability.
|
||||||
|
3. Complete and log morning strength sessions, afternoon isometric holds, daily walks and Monday/Friday stretching.
|
||||||
|
4. Use rest/countdown and 10-minute EMOM timers during workouts.
|
||||||
|
5. Edit routine parameters through the UI; log actual per-set reps, loads and hold/hang times, with a durable dated performance history and progress views.
|
||||||
|
6. Back up and restore their own data without cloud accounts, analytics or external services.
|
||||||
|
|
||||||
|
### Out of scope for v1
|
||||||
|
|
||||||
|
- Authentication, registration, user profiles for multiple people.
|
||||||
|
- Flask/API/server database, cloud sync, background jobs, sharing/social features.
|
||||||
|
- Meal tracking, calorie estimation, automated coaching or training advice.
|
||||||
|
- Wearables and Apple/Google Health integrations.
|
||||||
|
- Generated exercise technique images without review, third-party hotlinked images, advertising, analytics or tracking SDKs.
|
||||||
|
- Automatic progressive-overload recommendations (manual review first).
|
||||||
|
|
||||||
|
## 2. Principles and constraints
|
||||||
|
|
||||||
|
- **Offline-first:** After the app has been loaded/installed, the UI, descriptions and images should remain usable without network connectivity. For a true PWA/offline reload, use a service worker and cache the app assets; development server operation alone is not an offline guarantee.
|
||||||
|
- **Private by default:** No account and no network transmission of workout records. No telemetry, ad networks, third-party font CDNs or remote image loading.
|
||||||
|
- **Editable routine:** Store prescribed programme separately from UI code. Changes made in-app must survive updates; historical sessions must retain what was actually performed even when the plan later changes.
|
||||||
|
- **No premature backend:** Keep storage behind an adapter to permit optional sync later without redoing the UI.
|
||||||
|
- **Transparent progress:** Track prescribed versus actual reps, load and duration; avoid made-up estimates.
|
||||||
|
- **Accessibility:** Keyboard navigation, clear focus states, readable text, screen-reader labels, reduced-motion respect, adequate touch targets and accessible timers.
|
||||||
|
- **Safety:** Show exercise descriptions as guidance rather than diagnosis. Allow pain/discomfort notes; do not force floor movements that hurt the user's prominent spine. Make vest load explicit per exercise.
|
||||||
|
- **Scope discipline:** Do not invent pages, new exercises or functionality beyond this spec without an approved decision/task.
|
||||||
|
|
||||||
|
## 3. Information architecture
|
||||||
|
|
||||||
|
Use **one responsive application** with these surfaces:
|
||||||
|
|
||||||
|
| Surface | Primary functions |
|
||||||
|
|---|---|
|
||||||
|
| **Today** | Current calendar day selected automatically; seven-day navigation strip; **Morning/Afternoon exclusive toggle**; show only selected period, not both stacked; timers and logging |
|
||||||
|
| **Week** | Seven-day horizontal navigation strip and date navigation; changing weekday preserves selected Morning/Afternoon period |
|
||||||
|
| **Exercise detail** | Images, setup, step-by-step movement, technique cues, main/secondary muscles, equipment, common mistakes, variations, personal notes |
|
||||||
|
| **History & Progress** | Browse completed sessions by date; actual sets/reps/weights/times and notes; personal bests and basic trends, including longest continuous hang |
|
||||||
|
| **Plan editor** | Edit exercises, order, sets, rep ranges, hold durations, weight presets, rest and session assignment |
|
||||||
|
| **Settings & data** | Export/import backup, unit preferences (kg), storage explanation, offline status |
|
||||||
|
|
||||||
|
Navigation should remain simple (top tabs or bottom navigation on mobile). Avoid creating an account or dashboard-heavy UI. **The day/period selector is the primary workout navigation**, not a page showing both periods. Weekday browsing alone must never create or complete a workout record.
|
||||||
|
|
||||||
|
### 3.1 Session view behavior (approved)
|
||||||
|
|
||||||
|
- Use a seven-day horizontal weekday strip, current calendar day selected initially; the user can navigate other actual dates for past/future weeks.
|
||||||
|
- Place a **Morning | Afternoon** segmented switch above the weekday strip. Only one period is displayed at a time; changing day preserves the period. Remember the last selected period locally.
|
||||||
|
- Morning contains the strength workout, or full-body stretching on Monday/Friday. Afternoon contains the five isometric holds and daily hanging practice, with day-specific targets.
|
||||||
|
- Dog walks are always accessible via a separate compact activity log/control rather than appearing as a third large workout section within either period.
|
||||||
|
- Each exercise presents prescription and recorded progress, with access to an exercise detail panel (local images, form description).
|
||||||
|
- Viewing a day or changing the Morning/Afternoon toggle does **not** automatically start or mark a session complete.
|
||||||
|
|
||||||
|
## 4. Current programme — initial seed data
|
||||||
|
|
||||||
|
The following is **initial editable programme data**, not a permanent hardcoded schedule. Day order and exercise order are significant. Unless specified otherwise, exercises are performed in the **morning**, isometric holds in the **afternoon** and dog walks throughout the day.
|
||||||
|
|
||||||
|
### 4.1 Weekly structure
|
||||||
|
|
||||||
|
| Day | Morning | Afternoon | Additional |
|
||||||
|
|---|---|---|---|
|
||||||
|
| Monday | Rest from resistance exercise | Moderate isometric holds (RPE 5–6) | Full-body stretch; three dog walks |
|
||||||
|
| Tuesday | Pull 1 — Back + Core | Easy isometric holds (RPE 3–4) | Three dog walks |
|
||||||
|
| Wednesday | Push 1 — Chest + Serratus | Easy isometric holds (RPE 3–4) | Three dog walks |
|
||||||
|
| Thursday | Legs + Posterior Chain + Core | Easy isometric holds (RPE 3–4) | Three dog walks |
|
||||||
|
| Friday | Rest from resistance exercise | Challenging isometric holds (RPE 6–7) | Full-body stretch; three dog walks |
|
||||||
|
| Saturday | Pull 2 — Biceps + Grip + Abs | Easy isometric holds (RPE 3–4) | Three dog walks |
|
||||||
|
| Sunday | Push 2 — Shoulders + Triceps + Core | Easy isometric holds (RPE 3–4) | Three dog walks |
|
||||||
|
|
||||||
|
### 4.2 Tuesday — Pull 1
|
||||||
|
|
||||||
|
| Order | Exercise | Prescription | Rest | Notes |
|
||||||
|
|---|---|---|---|---|
|
||||||
|
| 1 | Pull-ups | 10-minute EMOM; aim 3–4 reps/min | Until next minute | **6 kg vest.** Start at 4/min and drop to 3 as needed; work toward 4 × 10 minutes. Occasionally switch to traditional sets. |
|
||||||
|
| 2 | EZ-bar bent-over rows | 4 × 8–12 | 2–3 min | Controlled torso position. |
|
||||||
|
| 3 | Single-arm dumbbell rows | 3–4 × 8–15 per side | 2 min | Alternative to previously easy shrugs. |
|
||||||
|
| 4 | Suitcase carries | 3 × 30–60 seconds per side | 1–2 min | Walk with weight on one side; avoid leaning. |
|
||||||
|
|
||||||
|
### 4.3 Wednesday — Push 1
|
||||||
|
|
||||||
|
| Order | Exercise | Prescription | Rest | Notes |
|
||||||
|
|---|---|---|---|---|
|
||||||
|
| 1 | Deep weighted push-ups using dumbbells as handles | 4 × 6–12 | 2–3 min | **10 kg vest.** Stable dumbbell handles; controlled depth. |
|
||||||
|
| 2 | Dumbbell floor flys | 3–4 × 8–15 | 2 min | Heavier standalone flys. **Floor press removed** from previous fly/press combination. Cushion back or modify if pressure on spine is uncomfortable. |
|
||||||
|
| 3 | Push-up plus | 2–3 × 12–20 | 1–2 min | Initially unweighted; full controlled scapular protraction; placed before final push-up exercise. |
|
||||||
|
| 4 | Feet-elevated weighted push-ups | 3 × 8–15 | 2–3 min | **10 kg vest.** |
|
||||||
|
|
||||||
|
### 4.4 Thursday — Legs
|
||||||
|
|
||||||
|
| Order | Exercise | Prescription | Rest | Notes |
|
||||||
|
|---|---|---|---|---|
|
||||||
|
| 1 | Bulgarian split squats | 4 × 8–12 per leg | 2–3 min | **10 kg vest + dumbbells.** |
|
||||||
|
| 2 | Single-leg Romanian deadlifts | 3–4 × 8–12 per leg | 2–3 min | Posterior chain and erector stabilization; use dumbbells as appropriate. |
|
||||||
|
| 3 | Squats | 4 × 8–12 | 2–3 min | **10 kg vest + dumbbells.** |
|
||||||
|
| 4 | Single-leg calf raises | 4 × 10–20 per leg | 2 min | Vest load as tolerated. |
|
||||||
|
| 5 | Front plank | 3 × 30–60 seconds | 1–2 min | Replaces supine weighted crunch because floor pressure on spine is uncomfortable. |
|
||||||
|
|
||||||
|
### 4.5 Saturday — Pull 2
|
||||||
|
|
||||||
|
| Order | Exercise | Prescription | Rest | Notes |
|
||||||
|
|---|---|---|---|---|
|
||||||
|
| 1 | Chin-ups | 10-minute EMOM; aim 3–4 reps/min | Until next minute | **6 kg vest.** Occasionally switch to conventional sets. |
|
||||||
|
| 2 | Hanging knee raises | 3 × 6–12 | 1–2 min | Controlled pelvic curl; avoid swinging; doubles as grip work. |
|
||||||
|
| 3 | Finger hangs | 2–3 sets, duration tracked | 1–2 min | Reduced from 4 sets because hanging knee raises add grip volume. |
|
||||||
|
| 4 | Single-arm preacher curls over a chair | 3–4 × 8–12 per arm | 2 min | |
|
||||||
|
| 5 | Hammer curls | 3 × 10–15 | 2 min | Replaces wrist curls; **EZ curls removed** to reduce redundant biceps work. |
|
||||||
|
|
||||||
|
### 4.6 Sunday — Push 2
|
||||||
|
|
||||||
|
| Order | Exercise | Prescription | Rest | Notes |
|
||||||
|
|---|---|---|---|---|
|
||||||
|
| 1 | Standing single-arm dumbbell shoulder press | 4 × 8–12 per arm | 2–3 min | |
|
||||||
|
| 2 | Leaning single-arm lateral raises | 3–4 × 10–15 per arm | 2 min | Full rep + half rep technique. |
|
||||||
|
| 3 | Bent-over rear-delt flys | 3 × 12–20 | 2 min | |
|
||||||
|
| 4 | Lying dumbbell triceps extensions | 3–4 × 8–15 | 2 min | Existing bed-supported variation; substitute standing if back/spine is uncomfortable. |
|
||||||
|
| 5 | Single-arm triceps extensions | **Optional** 2–3 × 10–15 | 2 min | |
|
||||||
|
| 6 | Side-plank hip raises | 3 × 10–20 per side | 1–2 min | |
|
||||||
|
|
||||||
|
### 4.7 Daily isometric routine — afternoon
|
||||||
|
|
||||||
|
Each row is **one hold**, with per-side durations as shown. Start at one round; optionally progress to two rounds if recovery is good. Rest around 30–60 sec between holds.
|
||||||
|
|
||||||
|
| Exercise | Monday (moderate) | Tue–Thu (easy) | Friday (challenging) | Sat–Sun (easy) |
|
||||||
|
|---|---|---|---|---|
|
||||||
|
| Deep squat hold | 45 sec | 30 sec | 60 sec | 30 sec |
|
||||||
|
| 90/90 hip hold | 45 sec / side | 30 sec / side | 60 sec / side | 30 sec / side |
|
||||||
|
| Bird-dog hold | 20 sec / side | 15 sec / side | 30 sec / side | 15 sec / side |
|
||||||
|
| Single-leg balance | 45 sec / leg | 30 sec / leg | 60 sec / leg | 30 sec / leg |
|
||||||
|
| Prone swimmer isometric | 20 sec | 15 sec | 30 sec | 15 sec |
|
||||||
|
| Target intensity (RPE) | 5–6 | 3–4 | 6–7 | 3–4 |
|
||||||
|
|
||||||
|
Bird-dog repetitions were removed from Tuesday because these holds occur daily. Longer holds should not become maximal effort or undermine morning training.
|
||||||
|
|
||||||
|
### 4.8 Daily hanging practice — afternoon
|
||||||
|
|
||||||
|
- Hang from the pull-up bar **every day**, during the afternoon isometric session.
|
||||||
|
- Goal is **120 seconds**, but this is a **target**, not an assumed current ability or default completed duration.
|
||||||
|
- Current successful continuous duration, number of attempts, whether hangs are weighted, and whether the two-minute goal is presently cumulative **are not specified**; do not invent these.
|
||||||
|
- Allow logging multiple attempts separately, in seconds, with **longest continuous hang** and **total cumulative hang time** computed independently. A 120-second cumulative total is not equivalent to one continuous 120-second hang.
|
||||||
|
- Keep Saturday finger hangs as distinct morning exercises, independent of the daily afternoon hang.
|
||||||
|
- Watch for accumulated grip, finger, elbow and shoulder fatigue; exercise logging must not force completion.
|
||||||
|
|
||||||
|
### 4.9 Full-body stretching — Monday and Friday
|
||||||
|
|
||||||
|
| Exercise | Prescription |
|
||||||
|
|---|---|
|
||||||
|
| Standing calf stretch | 30 sec / leg |
|
||||||
|
| Standing quadriceps stretch | 30 sec / leg |
|
||||||
|
| Kneeling hip-flexor stretch | 30 sec / side |
|
||||||
|
| Seated hamstring stretch | 30 sec / leg |
|
||||||
|
| Figure-four glute stretch | 30 sec / side |
|
||||||
|
| Doorway chest stretch | 30 sec |
|
||||||
|
| Cross-body shoulder stretch | 30 sec / arm |
|
||||||
|
| Child's pose with side reach | 30 sec / side |
|
||||||
|
| Cat-cow | 8–10 slow repetitions |
|
||||||
|
|
||||||
|
Target 15–20 min, gentle stretching, one or two rounds as appropriate. Modify movements causing pain or uncomfortable spinal pressure.
|
||||||
|
|
||||||
|
### 4.10 Daily dog walks
|
||||||
|
|
||||||
|
- Three walks **every day**, each typically **30–60 min**.
|
||||||
|
- **6 kg weighted vest** currently used during walks.
|
||||||
|
- Record *actual minutes* and optional vest load per walk rather than assuming every walk lasts the same time.
|
||||||
|
- Permit a walk to be logged without a vest, particularly when fatigued after Thursday legs or when joints/back need reduced loading.
|
||||||
|
- No automatic calorie-burn calculations in v1.
|
||||||
|
|
||||||
|
### 4.11 Global strength-training rules
|
||||||
|
|
||||||
|
- Usually **2 min** rest between sets, **2–3 min** for demanding compounds, **~3 min** between different exercises.
|
||||||
|
- EMOM is time-based: each new set starts on a 60-second boundary, for 10 rounds. Count performed reps by round.
|
||||||
|
- Increase load or exercise difficulty after consistently reaching the top of a rep range with clean technique.
|
||||||
|
- Allow recording actual load, reps and time even when they differ from the plan.
|
||||||
|
- Morning resistance training takes priority over optional higher-effort afternoon sessions.
|
||||||
|
|
||||||
|
## 5. Exercise library and media
|
||||||
|
|
||||||
|
Each exercise has a stable `exerciseId` and human-readable name, category, equipment, main/secondary muscles, setup, numbered technique steps, form cues, common mistakes, regressions/progressions, safety notes, and an ordered list of local images (e.g. `start.webp`, `end.webp`).
|
||||||
|
|
||||||
|
**Image rules:**
|
||||||
|
- The app must be usable before illustrations are available; use a clear labeled placeholder.
|
||||||
|
- Images can be commissioned/created or sourced only with suitable rights; track origin/license in metadata.
|
||||||
|
- Do not hotlink remotely or bundle copied copyrighted imagery without permission.
|
||||||
|
- Illustrations should match the *actual variant* (e.g., vested push-ups on stable dumbbell handles, floor flys, hanging knee raises) and be reviewed for technique accuracy.
|
||||||
|
- Provide descriptive alt text and potentially two stages (start/end) for moving exercises.
|
||||||
|
- Images are part of app assets and update through normal Git deployments; personal exercise notes are user data.
|
||||||
|
|
||||||
|
## 6. Interaction and session flow
|
||||||
|
|
||||||
|
1. Default to **Today**, selecting its actual date and the last-used Morning/Afternoon period; show only that period. Walk tracking stays accessible separately.
|
||||||
|
2. Allow navigating to any date/day, not just a repeating abstract weekday; records are tied to actual local dates.
|
||||||
|
3. Tap an exercise to open details. Start a set, log **actual** reps, load and/or duration and mark it completed; log individual sets independently and prefill only suggested values from the previous matching session (never mark them completed automatically).
|
||||||
|
4. Timer presets based on the exercise; audible alert **optional/muted by default**, with visible completion feedback.
|
||||||
|
5. End the session with a compact summary (completed sets, deviations and free-text notes).
|
||||||
|
6. Partial workouts remain saved, and future plan edits do not rewrite previously logged performance.
|
||||||
|
7. Log three independent walks (actual duration, optional vest load, completion); support more/fewer walks in future via editor.
|
||||||
|
8. Check off isometric and stretch exercises and capture actual duration; log daily hang attempts in seconds and surface personal best and 120-second continuous-hang progress.
|
||||||
|
9. Show previous performance and basic progress views without confusing prescribed and achieved values; retain previous records after routine edits.
|
||||||
|
|
||||||
|
### Timer behavior
|
||||||
|
|
||||||
|
- **Rest countdown:** pause/resume/reset, selectable presets including 60, 90, 120 and 180 seconds; custom duration later if useful.
|
||||||
|
- **EMOM:** ten one-minute rounds, clear round number, visible countdown to next boundary, and per-round rep entry. Work/rest timing must use elapsed timestamps rather than incrementing an interval counter (avoid browser-tab drift).
|
||||||
|
- **Hold timer:** countdown from prescribed hold length; optional per-side steps for bilateral holds.
|
||||||
|
- Timers should remain accurate after tab/background throttling on return, although browser restrictions may limit background notification/audio. Never promise guaranteed background alarms.
|
||||||
|
- One active timer at a time in v1; changing timers requires explicit cancel/replace.
|
||||||
|
|
||||||
|
## 7. Local data architecture
|
||||||
|
|
||||||
|
Use **IndexedDB** for persistent routines, exercise definitions if editable, logs, notes and settings. Keep bundled seed routine and base exercise descriptions/images in versioned JSON/JS assets. Use `localStorage` only for small UI preferences if desired.
|
||||||
|
|
||||||
|
**Implementation approach:** use native IndexedDB behind a tested async storage/repository adapter, or a lightweight dependency such as `idb` if approved during implementation. React components must not call IndexedDB directly. Use indexed, date-scoped queries rather than saving one monolithic app object. Transactions must preserve consistency across session and set writes. Ensure useful error handling for quota failures, blocked upgrades and unavailable/private browser storage.
|
||||||
|
|
||||||
|
IndexedDB is **per browser profile and origin**, not a server database; a laptop and phone have separate records. Avoid making persistence depend on running Vite. Serve the built application from a stable origin for reliable data retention; a bundled PWA/service worker can enable offline reloads, subject to browser restrictions.
|
||||||
|
|
||||||
|
### Suggested entities
|
||||||
|
|
||||||
|
| Entity | Essential fields |
|
||||||
|
|---|---|
|
||||||
|
| `ExerciseDefinition` | `id`, `name`, `category`, `equipment`, `muscles`, `instructions`, `cues`, `warnings`, `imageAssets`, `version` |
|
||||||
|
| `Routine` | `id`, `name`, `version`, `effectiveDate`, `weeklySchedule` |
|
||||||
|
| `RoutineExercise` | `exerciseId`, `day`, `sessionType`, `order`, `sets`, `repMin`, `repMax`, `targetDurationSec`, `perSide`, `restSec`, `loadKg`, `optional`, `notes` |
|
||||||
|
| `WorkoutSession` | `id`, `date`, `sessionType`, `routineVersion`, `startedAt`, `endedAt`, `status`, `notes`, `sets` |
|
||||||
|
| `CompletedSet` | `sessionId`, `exerciseId`, `sequence`, `reps`, `durationSec`, `side`, `completedAt`, `notes`, **load components** (`vestKg`, `dumbbellKgEach` / `dumbbellKg`, `ezBarTotalKg`, `bodyweightOnly` when relevant) |
|
||||||
|
| `HangAttempt` | `date`, `sessionId`, `exerciseId`, `attemptNumber`, `durationSec`, `completedAt`, `notes` (daily hangs distinct from Saturday finger hangs) |
|
||||||
|
| `WalkLog` | `date`, `walkNumber`, `durationMin`, `vestKg`, `completed`, `notes` |
|
||||||
|
| `BodyWeightLog` | `date`, `weightKg`, `notes` (optional entry) |
|
||||||
|
| `Settings` | `preferredUnit`, `soundsEnabled`, `timerPresets`, `dataSchemaVersion` |
|
||||||
|
|
||||||
|
The implementation may normalize or refine this model. **Do not treat the suggested shape as frozen API contracts.** Store actual loads, not just vest presets; the 6 kg and 10 kg loads are initial values. For dumbbells distinguish **per-dumbbell mass** from total load; for the EZ bar record **bar plus plates** as total load. Where a prescribed exercise involves vest plus dumbbells, store both rather than merging them into an ambiguous number.
|
||||||
|
|
||||||
|
### 7.1 Tracking requirements (v1, agreed)
|
||||||
|
|
||||||
|
1. Save sets independently: achieved reps, any supported time/duration, actual resistance, side and optional notes. Preserve incomplete/partial sessions.
|
||||||
|
2. For EMOM pull-ups and chin-ups, log **ten distinct minutes**, each with actual repetitions and vest load (initial 6 kg); permit zero/missed rounds. Support conventional-set sessions when the user switches training format.
|
||||||
|
3. For weighted push-ups, track vest load (initial 10 kg); for applicable leg exercises record 10 kg vest plus any dumbbell load separately. No made-up dumbbell weights.
|
||||||
|
4. For daily hangs, track each timed attempt, longest single attempt, accumulated time across attempts, and progression toward a **continuous** two-minute goal. Record Saturday finger-hang work separately.
|
||||||
|
5. For other timed activities (isometrics, planks, carries, walks, stretches), log **actual** duration rather than treating the prescribed value as achieved. Per-side timing should remain distinguishable where relevant.
|
||||||
|
6. Prefill suggested starting weights/reps/durations from the previous matching exercise/session, but require user action before recording completion.
|
||||||
|
7. Show dated exercise history, previous vs current performance and straightforward progress charts/personal bests (particularly vest load, reps, hang duration, optional body weight). Do not fabricate missing data or equate different loading modes in comparisons.
|
||||||
|
8. Never rewrite completed history following routine edits, reseeding, changes to exercise definitions or app upgrades. Future routine edits only change future prescriptions.
|
||||||
|
9. Export all workouts, hang attempts, plan edits, walks, and optional body-weight records to a **versioned JSON backup**; validate on import and ask before overwriting/merging existing records.
|
||||||
|
10. Avoid external analytics and automatic calorie estimates; training data remains local and private.
|
||||||
|
|
||||||
|
### Data integrity and update rules
|
||||||
|
|
||||||
|
- Seed programme on first run only from `docs/WORKOUT_ROUTINE.md`-aligned bundled data; avoid overwriting edits during app upgrades. This document is authoritative for initial prescribed workout data, while subsequent in-app edits become authoritative locally.
|
||||||
|
- Use migrations on schema changes; retain old backups and test migration from prior versions.
|
||||||
|
- Workout history must be immutable in substance unless the user explicitly edits or deletes an entry.
|
||||||
|
- Show export/import controls for versioned JSON backups (with schema validation and import confirmation); consider CSV export for history later. Export must contain enough metadata to reimport into a new browser/profile. Include an explicit backup recommendation because site data can be cleared/evicted.
|
||||||
|
- Make clear that local data is **device/browser-specific** and can be lost if browser storage is cleared, browser data is evicted, or a profile is removed. Request persistent storage where supported, but **do not promise permanence**. Do not add intrusive backup reminders or subscription-like prompts. Only create user-initiated reminders if requested.
|
||||||
|
- Multi-device sync is **not available in v1**. Export/import is the manual transfer path; optional API sync is a future decision.
|
||||||
|
|
||||||
|
## 8. Visual and UX direction
|
||||||
|
|
||||||
|
- Calm, minimal, readable, keyboard-usable layout; neutral/dark styling with clear completion emphasis. Respect light/dark preference if feasible without a large theme system.
|
||||||
|
- The weekday strip and **Morning/Afternoon toggle** should be immediately visible. Display **only one selected session period** on screen, never both together. Walk controls are a separate compact accessible element.
|
||||||
|
- Exercise cards show: name, prescription, prescribed rest, load/vest preset, completed/remaining sets and an expandable description/image view.
|
||||||
|
- Timers must be highly legible and operate with large touch targets.
|
||||||
|
- Avoid busy gamification, badges/streaks and unnecessary dashboards.
|
||||||
|
- Responsive at mobile widths; no horizontal scrolling for primary interaction.
|
||||||
|
- Keep the content editable and data-centric, rather than a static copy of this document.
|
||||||
|
|
||||||
|
## 9. Release scope and development tasks
|
||||||
|
|
||||||
|
Use separate Codex tasks and isolated branches/worktrees in the repository context workflow. Suggested grouping:
|
||||||
|
|
||||||
|
| Task | Deliverable | Dependencies |
|
||||||
|
|---|---|---|
|
||||||
|
| T001 | Repo/bootstrap: Vite + React + React-Bootstrap; project context docs; lint/test scripts; basic responsive shell | None |
|
||||||
|
| T002 | Exercise definitions and accurate **seed** routine for all seven days; validation tests | T001 |
|
||||||
|
| T003 | Day navigation and exclusive Morning/Afternoon views; walk controls accessible separately; selected period persists | T002 |
|
||||||
|
| T004 | Exercise-detail screen and local media placeholders; accessibility | T002–T003 |
|
||||||
|
| T005 | IndexedDB repository, per-set and per-minute EMOM logging, weight components, hangs, walks/holds, history-safe migrations, JSON backup round-trip | T002–T003 |
|
||||||
|
| T006 | Rest, hold and EMOM timers, elapsed-time correctness tests | T003 |
|
||||||
|
| T007 | Routine editor: reorder, adjust prescription, optional exercises, persistence | T005 |
|
||||||
|
| T008 | History and progress views (hang PB, loads, reps), responsive/accessibility polish, offline/PWA build, test pass and documentation | T004–T007 |
|
||||||
|
| T009 (content) | Produce and review licensed/local exercise illustrations for the actual variants | T004; may run separately |
|
||||||
|
|
||||||
|
Do not implement all tasks as a single unreviewed change. Define task boundaries, run unit/integration tests and manually review the UI before merge.
|
||||||
|
|
||||||
|
## 10. Acceptance tests
|
||||||
|
|
||||||
|
- [ ] Today defaults to current local calendar date; seven-day strip works across weeks; exclusive Morning/Afternoon toggle remembers its state and does not show both periods at once.
|
||||||
|
- [ ] Monday and Friday show full-body stretching in the morning, and holds plus hangs in the afternoon; walks remain accessible independently.
|
||||||
|
- [ ] Tuesday pull-ups and Saturday chin-ups are **10 × 60-second EMOMs** with 6 kg vest presets and reps logged per round.
|
||||||
|
- [ ] Wednesday flys have **no floor-press drop set**; push-up plus precedes feet-elevated push-ups.
|
||||||
|
- [ ] Thursday includes single-leg RDLs and front planks, **not weighted floor crunches**.
|
||||||
|
- [ ] Saturday includes hanging knee raises, 2–3 finger-hang sets, preacher curls and hammer curls; **no EZ curls or wrist curls**.
|
||||||
|
- [ ] Sunday includes optional single-arm triceps extensions and side-plank hip raises.
|
||||||
|
- [ ] Holds correctly change between Monday, Tue–Thu, Friday and Sat–Sun targets.
|
||||||
|
- [ ] Daily afternoon hangs appear all seven days with **2:00 goal**, but no invented achieved value; multiple attempts produce longest-continuous and cumulative totals independently. Saturday finger hangs remain separate.
|
||||||
|
- [ ] Monday/Friday full-body stretching lists all nine agreed movements.
|
||||||
|
- [ ] Three daily walk slots initially show 30–60 min and 6 kg vest, but actual duration/load can be changed.
|
||||||
|
- [ ] Weight presets on pull-ups/chin-ups (6 kg) and weighted push-ups/vested leg work (10 kg) display correctly; dumbbell loads are **not invented**.
|
||||||
|
- [ ] Users can enter vest and dumbbell loads separately, total EZ-bar load, per-side values, recorded reps, hold/carry durations, and optional body-weight entries.
|
||||||
|
- [ ] Ten EMOM rounds accept different actual rep counts, including missed rounds; completed sets persist and previous recorded numbers can be offered as **suggestions**, not already-logged results.
|
||||||
|
- [ ] Exercise history and simple progress charts display actual saved values; editing a future prescription leaves existing entries unchanged.
|
||||||
|
- [ ] Timers pause/resume/reset correctly and EMOM remains accurate after background tab throttling.
|
||||||
|
- [ ] All exercise details work offline with useful text even if an image is absent.
|
||||||
|
- [ ] Routine edits persist after refresh/build updates and do not rewrite previous session logs.
|
||||||
|
- [ ] IndexedDB survives refresh/browser restart, saves partial sessions, and handles blocked/unavailable storage or upgrade errors clearly.
|
||||||
|
- [ ] Export → clear/test profile → import round-trip restores all records, including independent hang attempts, historical loads, walk entries and plan edits.
|
||||||
|
- [ ] All major controls work with keyboard and on phone viewport.
|
||||||
|
- [ ] No login, API calls, analytics, third-party remote imagery or browser storage sync is required.
|
||||||
|
|
||||||
|
## 11. Open questions — not blockers to initial spec
|
||||||
|
|
||||||
|
1. **Where to deploy?** Laptop-local only initially, or self-hosted static site on your existing infrastructure? Both can use the same static build.
|
||||||
|
2. **Images:** Generate/review bespoke instructional illustrations or curate permissively licensed exercise drawings; both need review for exercise accuracy.
|
||||||
|
3. **Progress history:** Whether workout records should allow arbitrary additional sets and supersets in v1 or in a later version.
|
||||||
|
4. **Editor scope:** v1 should support modifying seeded routines; fully custom exercise creation may be a follow-up depending on implementation size.
|
||||||
|
5. **Synchronization:** Defer until a real multi-device need is confirmed; does not justify a backend now.
|
||||||
|
|
||||||
|
## 12. Handoff for Codex
|
||||||
|
|
||||||
|
1. Create/choose a dedicated repository for the workout app.
|
||||||
|
2. Run `roborto-project-context` for a **new** repository; follow its existing docs/task/decision conventions and consult `AGENTS.md` and `docs/*` before making changes.
|
||||||
|
3. Place this spec at `docs/SPEC.md` for application requirements and `docs/WORKOUT_ROUTINE.md` for the **authoritative initial training programme**. Verify both are consistent and promote unresolved choices to decisions only when needed.
|
||||||
|
4. Break implementation into tasks above or the closest matching project task format.
|
||||||
|
5. Implement one task per branch/worktree, verify tests/UI behavior, then review and merge.
|
||||||
|
6. Do not introduce Flask, cloud accounts, synchronization or additional exercises without an explicit decision.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
*This is a design specification, not medical guidance. Adjust any exercise causing pain and seek clinical assessment for new or progressive spinal prominence, unexplained weight loss or persistent pain.*
|
||||||
+128
@@ -0,0 +1,128 @@
|
|||||||
|
# Exercise Tracker tasks
|
||||||
|
|
||||||
|
This file holds accepted, scoped implementation work. It is not a speculative backlog. Current status and known issues belong in `CURRENT_STATE.md`; durable decisions belong in `DECISIONS.md`.
|
||||||
|
|
||||||
|
## Proposed implementation sequence
|
||||||
|
|
||||||
|
Reconciled with `docs/SPEC.md` and `docs/WORKOUT_ROUTINE.md`. TASK-001 is accepted and in progress; TASK-002 through TASK-011 remain proposed. Implement one task per isolated branch/worktree. Preserve the documented initial programme, including optional/ranged prescriptions and distinct session types.
|
||||||
|
|
||||||
|
### TASK-001: Application foundation and responsive shell
|
||||||
|
|
||||||
|
- Status: In progress
|
||||||
|
- Objective: Establish the React/Vite, React-Bootstrap, and test foundation with a responsive application shell.
|
||||||
|
- Scope: App entry, local styling, navigation frame, lint/build/test scripts, and boundaries for routine data, storage, timers, and views.
|
||||||
|
- Acceptance criteria: The shell builds and renders at phone and desktop widths with keyboard-usable navigation; no backend, authentication, remote assets, or tracking SDKs are introduced.
|
||||||
|
- Relevant areas: Package configuration, app source, tests.
|
||||||
|
- Required validation: Lint, build, shell test, and mobile/desktop visual check.
|
||||||
|
- Non-goals: Workout data, date navigation, logging, persistence, and timers.
|
||||||
|
- Dependencies or blockers: None; owner selected TASK-001 and branch `task/001-foundation` is active.
|
||||||
|
|
||||||
|
### TASK-002: Exercise definitions and authoritative routine seed
|
||||||
|
|
||||||
|
- Status: Proposed
|
||||||
|
- Objective: Encode the full seven-day baseline as structured, versioned data.
|
||||||
|
- Scope: Stable exercise IDs, prescriptions, order, session types, rest/load components, optional flags, daily hangs, Monday/Friday stretches, and three initial daily walk slots. Keep the exercise library separate from routine prescriptions.
|
||||||
|
- Acceptance criteria: Data matches `docs/WORKOUT_ROUTINE.md`, including ranges and unspecified values; no removed or invented exercises; Saturday finger hangs and daily hangs are distinct.
|
||||||
|
- Relevant areas: Bundled data, domain model, validation tests.
|
||||||
|
- Required validation: Automated data invariants and manual source-to-data audit of every day and exercise.
|
||||||
|
- Non-goals: Exercise imagery, logging, user edits.
|
||||||
|
- Dependencies or blockers: TASK-001; resolve the noted spec/routine wording differences by source-of-truth rule.
|
||||||
|
|
||||||
|
### TASK-003: Date and period navigation with routine views
|
||||||
|
|
||||||
|
- Status: Proposed
|
||||||
|
- Objective: Show the correct routine for an actual local date and one selected period.
|
||||||
|
- Scope: Today default, navigation across weeks, seven-day strip, exclusive Morning/Afternoon switch above it, locally remembered period, morning stretching on rest days, and separately accessible compact walk controls.
|
||||||
|
- Acceptance criteria: Day changes preserve period; only one period is shown; browsing never creates a record; targets and exercise order match the seed.
|
||||||
|
- Relevant areas: Navigation and session UI, preference state, tests.
|
||||||
|
- Required validation: Interaction and keyboard tests, mobile/desktop visual check, build.
|
||||||
|
- Non-goals: Saving performed work or timers.
|
||||||
|
- Dependencies or blockers: TASK-002.
|
||||||
|
|
||||||
|
### TASK-004: Exercise detail and local media placeholders
|
||||||
|
|
||||||
|
- Status: Proposed
|
||||||
|
- Objective: Show useful exercise guidance offline before illustrations are available.
|
||||||
|
- Scope: Detail panel, fields for instructions/muscles/equipment/cues/warnings, personal-note affordance for later storage, labeled placeholders and local asset metadata.
|
||||||
|
- Acceptance criteria: Every seeded exercise opens a useful detail view; missing images have accessible placeholders; no hotlinked images or invented technique guidance.
|
||||||
|
- Relevant areas: Exercise library, detail UI, tests.
|
||||||
|
- Required validation: Detail and accessibility tests, offline asset check, responsive visual check.
|
||||||
|
- Non-goals: Producing final illustrations or logging notes.
|
||||||
|
- Dependencies or blockers: TASK-002 and TASK-003; detailed technique text requires reviewed source/content.
|
||||||
|
|
||||||
|
### TASK-005: IndexedDB repository and workout recording
|
||||||
|
|
||||||
|
- Status: Proposed
|
||||||
|
- Objective: Persist local plans and dated performance while preserving partial and historical records.
|
||||||
|
- Scope: Storage adapter/migrations; first-run seed; per-set strength and per-minute EMOM logs; separate weight components; hangs, holds, stretching, walks, notes, optional body weight; previous-session suggestions; error states.
|
||||||
|
- Acceptance criteria: Actual values survive reload; zero/missed EMOM rounds and multiple hang attempts are distinct; edits/reseeding do not rewrite history; browsing alone writes no workout; storage failures are surfaced.
|
||||||
|
- Relevant areas: IndexedDB adapter, domain model, recording UI, tests.
|
||||||
|
- Required validation: IndexedDB integration tests, migration/error cases, reload and partial-session checks, build.
|
||||||
|
- Non-goals: Progress charts, routine editor, backup UI.
|
||||||
|
- Dependencies or blockers: TASK-002 and TASK-003.
|
||||||
|
|
||||||
|
### TASK-006: Rest, hold, and EMOM timers
|
||||||
|
|
||||||
|
- Status: Proposed
|
||||||
|
- Objective: Provide one active, accessible timer with accurate elapsed-time behavior.
|
||||||
|
- Scope: Rest presets and pause/resume/reset, prescribed hold countdown with optional side steps, ten one-minute EMOM rounds, visible completion, muted-by-default optional sound.
|
||||||
|
- Acceptance criteria: EMOM timing uses timestamps; background-tab return shows correct state; replacing an active timer needs explicit action; per-round logging remains independent.
|
||||||
|
- Relevant areas: Timer logic and UI, tests.
|
||||||
|
- Required validation: Clock-controlled unit tests, interaction tests, background-throttling check, build.
|
||||||
|
- Non-goals: Guaranteed background alarms or custom rest presets.
|
||||||
|
- Dependencies or blockers: TASK-003; integrate with TASK-005 logging when both exist.
|
||||||
|
|
||||||
|
### TASK-007: Routine editor
|
||||||
|
|
||||||
|
- Status: Proposed
|
||||||
|
- Objective: Edit future prescriptions through the UI without changing past records.
|
||||||
|
- Scope: Exercise order, day/period assignment, sets/ranges, durations, load presets, rest and optional state; validation and persistence.
|
||||||
|
- Acceptance criteria: Valid edits survive reload and app updates; historical sessions retain their performed values and prior prescription context; invalid entries are rejected clearly.
|
||||||
|
- Relevant areas: Editor UI, routine versioning, storage, tests.
|
||||||
|
- Required validation: Edit/reload/migration/history-isolation tests and responsive check.
|
||||||
|
- Non-goals: Fully custom exercise creation unless separately approved.
|
||||||
|
- Dependencies or blockers: TASK-005; clarify editor scope for adding/removing exercises before affected controls are built.
|
||||||
|
|
||||||
|
### TASK-008: History and progress
|
||||||
|
|
||||||
|
- Status: Proposed
|
||||||
|
- Objective: Browse actual dated performance and transparent basic trends.
|
||||||
|
- Scope: Completed/partial session history, prior vs current performance, reps and load trends, longest continuous and cumulative hang separately, optional body-weight trend.
|
||||||
|
- Acceptance criteria: Charts and personal bests derive only from saved comparable values; no fabricated data; routine edits leave history intact.
|
||||||
|
- Relevant areas: Queries/aggregations, history/progress UI, tests.
|
||||||
|
- Required validation: Calculation and view tests with mixed loading modes and missing values, responsive check.
|
||||||
|
- Non-goals: Coaching, calorie estimates, streaks.
|
||||||
|
- Dependencies or blockers: TASK-005.
|
||||||
|
|
||||||
|
### TASK-009: JSON backup and restoration
|
||||||
|
|
||||||
|
- Status: Proposed
|
||||||
|
- Objective: Transfer all local data using a versioned JSON file.
|
||||||
|
- Scope: Export, schema validation, import preview/confirmation, replace/merge handling, and failure recovery.
|
||||||
|
- Acceptance criteria: Round trip restores plans, logs, hangs, walks, body weight, notes and settings; invalid files do not corrupt current records; replacement/merge requires explicit confirmation.
|
||||||
|
- Relevant areas: Backup format, storage transaction, settings UI, tests.
|
||||||
|
- Required validation: Full round trip in a fresh profile, invalid/old-version tests, transaction rollback test.
|
||||||
|
- Non-goals: Cloud synchronization or CSV export.
|
||||||
|
- Dependencies or blockers: TASK-005 and TASK-007; decide precise merge conflict behavior before implementing merge.
|
||||||
|
|
||||||
|
### TASK-010: Offline release and full UX verification
|
||||||
|
|
||||||
|
- Status: Proposed
|
||||||
|
- Objective: Make the built app usable on reload without a network connection and verify v1 end-to-end.
|
||||||
|
- Scope: Service worker/cache, offline status, storage explanation and backup guidance, accessibility/responsive polish, complete acceptance checklist.
|
||||||
|
- Acceptance criteria: Built app opens offline after initial load; all major controls work by keyboard and at phone width; no data transmission or remote asset dependency is required.
|
||||||
|
- Relevant areas: Build configuration, app shell/settings, integration tests, documentation.
|
||||||
|
- Required validation: Production build served from stable origin, offline reload, cross-feature smoke tests, accessibility and mobile/desktop review.
|
||||||
|
- Non-goals: Deployment to a chosen host or multi-device sync.
|
||||||
|
- Dependencies or blockers: TASK-004 through TASK-009.
|
||||||
|
|
||||||
|
### TASK-011: Reviewed exercise illustrations
|
||||||
|
|
||||||
|
- Status: Proposed
|
||||||
|
- Objective: Add accurate, licensed local illustrations for the documented exercise variants.
|
||||||
|
- Scope: Create or source images, document rights/origin, review technique, add alt text and local assets.
|
||||||
|
- Acceptance criteria: Added images match the prescribed variant, have reviewed technique and origin metadata, and load offline.
|
||||||
|
- Relevant areas: Local assets, exercise library metadata, tests.
|
||||||
|
- Required validation: Human technique/rights review and offline visual check.
|
||||||
|
- Non-goals: Unreviewed generated or hotlinked imagery.
|
||||||
|
- Dependencies or blockers: TASK-004; approved image source/review process. May proceed independently after that task.
|
||||||
@@ -0,0 +1,178 @@
|
|||||||
|
# Workout Routine — Source of Truth
|
||||||
|
|
||||||
|
**Status:** Current agreed baseline
|
||||||
|
|
||||||
|
**Last consolidated:** 2026-10-18
|
||||||
|
|
||||||
|
**Purpose:** Authoritative description of the user's present training programme for the workout application.
|
||||||
|
**Proposed repository location:** `docs/WORKOUT_ROUTINE.md`
|
||||||
|
|
||||||
|
> **Source-of-truth rule:** This document defines the initial workout data and agreed training rules. App features and architecture belong in `docs/SPEC.md`. Do not silently change this programme during implementation. When the user approves a training change, update this document and the app's routine data together. Once the app includes a routine editor, document how live user-edited routines supersede the initial seed data; never overwrite user records during an app update.
|
||||||
|
|
||||||
|
## 1. Goals and constraints
|
||||||
|
|
||||||
|
- Primary goals: gradual muscle and body-weight gain; improved chest, back, core and spinal-support musculature; stronger grip; better mobility, balance and posture; a relatively stable waist.
|
||||||
|
- Training: five morning strength sessions weekly, two non-lifting days, daily afternoon isometric holds **plus a daily hanging practice (2-minute target)**, and full-body stretching at least Monday and Friday.
|
||||||
|
- Walks: walk the dog **three times every day**, generally **30–60 minutes per walk**, currently with a **6 kg weighted vest**.
|
||||||
|
- Equipment: pull-up bar, dumbbells, EZ-curl bar, weighted vest, chair, bed and available floor space.
|
||||||
|
- Weighted vest: **6 kg** for pull-ups, chin-ups and walks; **10 kg** total for weighted push-ups and applicable leg exercises. Dumbbells may be added for leg movements as described.
|
||||||
|
- The user experiences discomfort when bony spinal structures press against the floor. Avoid prescribing direct pressure on the spine as a necessary part of a movement; floor flys should be performed only if comfortable, with appropriate cushioning if helpful. Some lying triceps extensions are done on a bed; replace or adapt if uncomfortable.
|
||||||
|
- Intermittent fasting has been **postponed** while prioritising muscle and weight gain.
|
||||||
|
|
||||||
|
## 2. Weekly overview
|
||||||
|
|
||||||
|
| Day | Morning strength | Afternoon isometric intensity | Other activity |
|
||||||
|
|---|---|---|---|
|
||||||
|
| Monday | Rest from strength training | Moderate (RPE 5–6) + daily hang | Full-body stretching; three dog walks |
|
||||||
|
| Tuesday | Pull 1 — Back + Core | Easy (RPE 3–4) + daily hang | Three dog walks |
|
||||||
|
| Wednesday | Push 1 — Chest + Serratus | Easy (RPE 3–4) + daily hang | Three dog walks |
|
||||||
|
| Thursday | Legs + Posterior Chain + Core | Easy (RPE 3–4) + daily hang | Three dog walks |
|
||||||
|
| Friday | Rest from strength training | Challenging (RPE 6–7) + daily hang | Full-body stretching; three dog walks |
|
||||||
|
| Saturday | Pull 2 — Biceps + Grip + Abs | Easy (RPE 3–4) + daily hang | Three dog walks |
|
||||||
|
| Sunday | Push 2 — Shoulders + Triceps + Core | Easy (RPE 3–4) + daily hang | Three dog walks |
|
||||||
|
|
||||||
|
## 3. Morning strength sessions
|
||||||
|
|
||||||
|
### Tuesday — Pull 1: Back + Core
|
||||||
|
|
||||||
|
| Order | Exercise | Prescription | Rest | Notes |
|
||||||
|
|---|---|---|---|---|
|
||||||
|
| 1 | Pull-ups | 10-minute EMOM, 3–4 reps each minute | Remaining part of each minute | **6 kg vest**. Start with 4 reps/minute and use 3 when necessary. Aim to add at least one total rep over time. Periodically alternate with conventional sets (previously around 10, 8, 7, 6). |
|
||||||
|
| 2 | EZ-bar bent-over rows | 4 × 8–12 | 2–3 min | Hold controlled torso position. |
|
||||||
|
| 3 | Single-arm dumbbell rows | 3–4 × 8–15 per side | ~2 min | Replaced EZ-bar shrugs, which were too easy at available load. |
|
||||||
|
| 4 | Suitcase carries | 3 × 30–60 sec per side | 1–2 min | Walk carrying one dumbbell, resist leaning to either side. |
|
||||||
|
|
||||||
|
**Important:** Separate Tuesday bird-dog repetitions were removed when daily bird-dog isometric holds were added.
|
||||||
|
|
||||||
|
### Wednesday — Push 1: Chest + Serratus
|
||||||
|
|
||||||
|
| Order | Exercise | Prescription | Rest | Notes |
|
||||||
|
|---|---|---|---|---|
|
||||||
|
| 1 | Weighted deep push-ups using dumbbells as handles | 4 × 6–12 | 2–3 min | **10 kg vest**; stable dumbbells/handles and comfortable depth. |
|
||||||
|
| 2 | Dumbbell floor flys | 3–4 × 8–15 | ~2 min | Performed as standalone flys, with somewhat more weight; **floor presses removed** from former fly→press sets. Avoid uncomfortable pressure on spine. |
|
||||||
|
| 3 | Push-up plus | 2–3 × 12–20 | 1–2 min | Initially unweighted; focus on shoulder-blade protraction, before final elevated push-ups to avoid excessive fatigue. |
|
||||||
|
| 4 | Feet-elevated weighted push-ups | 3 × 8–15 | 2–3 min | **10 kg vest**; final chest pressing movement. |
|
||||||
|
|
||||||
|
### Thursday — Legs + Posterior Chain + Core
|
||||||
|
|
||||||
|
| Order | Exercise | Prescription | Rest | Notes |
|
||||||
|
|---|---|---|---|---|
|
||||||
|
| 1 | Bulgarian split squats | 4 × 8–12 per leg | 2–3 min | **10 kg vest + dumbbells**. |
|
||||||
|
| 2 | Single-leg Romanian deadlifts | 3–4 × 8–12 per leg | 2–3 min | Hip hinge; use suitable dumbbell loading and controlled balance. |
|
||||||
|
| 3 | Squats | 4 × 8–12 | 2–3 min | **10 kg vest + dumbbells**. |
|
||||||
|
| 4 | Single-leg calf raises | 4 × 10–20 per leg | ~2 min | Weighted vest; dumbbell if appropriate. |
|
||||||
|
| 5 | Front plank | 3 × 30–60 sec | 1–2 min | Replaces weighted floor crunches to avoid spinal pressure. |
|
||||||
|
|
||||||
|
### Saturday — Pull 2: Biceps + Grip + Abs
|
||||||
|
|
||||||
|
| Order | Exercise | Prescription | Rest | Notes |
|
||||||
|
|---|---|---|---|---|
|
||||||
|
| 1 | Chin-ups | 10-minute EMOM, 3–4 reps each minute | Remaining part of each minute | **6 kg vest**. Periodically alternate with conventional sets. |
|
||||||
|
| 2 | Hanging knee raises | 3 × 6–12 | 1–2 min | Control swinging; include gentle pelvic curl; works abs and grip. |
|
||||||
|
| 3 | Finger hangs | 2–3 sets | 1–2 min | Reduced from four sets due to added hanging knee raises; duration not yet specified. |
|
||||||
|
| 4 | Single-arm preacher curls over a chair | 3–4 × 8–12 per arm | ~2 min | Controlled reps. |
|
||||||
|
| 5 | Hammer curls | 3 × 10–15 | ~2 min | Replaced reverse wrist curls. **EZ-bar curls removed** to avoid redundant curl volume. |
|
||||||
|
|
||||||
|
### Sunday — Push 2: Shoulders + Triceps + Core
|
||||||
|
|
||||||
|
| Order | Exercise | Prescription | Rest | Notes |
|
||||||
|
|---|---|---|---|---|
|
||||||
|
| 1 | Standing single-arm dumbbell shoulder press | 4 × 8–12 per arm | 2–3 min | Standing unilateral press. |
|
||||||
|
| 2 | Leaning single-arm lateral raises | 3–4 × 10–15 per arm | ~2 min | Doorframe-assisted diagonal lean; a full raise plus half raise counts as one rep. |
|
||||||
|
| 3 | Bent-over rear-delt flys | 3 × 12–20 | ~2 min | Added for rear delts. |
|
||||||
|
| 4 | Lying dumbbell triceps extensions | 3–4 × 8–15 | ~2 min | Performed on bed with head over edge if comfortable; use safe, supported positioning. |
|
||||||
|
| 5 | Single-arm triceps extensions | **Optional** 2–3 × 10–15 | ~2 min | Additional work only if recovery and time allow. |
|
||||||
|
| 6 | Side-plank hip raises | 3 × 10–20 per side | 1–2 min | Lateral core/obliques. |
|
||||||
|
|
||||||
|
## 4. Daily afternoon isometric routine
|
||||||
|
|
||||||
|
Perform **separately in the afternoon**, after the morning workout on lifting days. Begin with **one round**; a second round is a progression only if recovery remains good. Approximate rest between holds: **30–60 seconds**, or longer if needed. Times below are targets, not mandatory minimums. Keep controlled positions and do not aim for failure.
|
||||||
|
|
||||||
|
| Exercise | Monday (moderate) | Tue–Thu (easy) | Friday (challenging) | Sat–Sun (easy) |
|
||||||
|
|---|---:|---:|---:|---:|
|
||||||
|
| Deep squat hold | 45 sec | 30 sec | 60 sec | 30 sec |
|
||||||
|
| 90/90 hip hold | 45 sec/side | 30 sec/side | 60 sec/side | 30 sec/side |
|
||||||
|
| Bird-dog hold | 20 sec/side | 15 sec/side | 30 sec/side | 15 sec/side |
|
||||||
|
| Single-leg balance | 45 sec/leg | 30 sec/leg | 60 sec/leg | 30 sec/leg |
|
||||||
|
| Prone swimmer iso | 20 sec | 15 sec | 30 sec | 15 sec |
|
||||||
|
| Target effort (RPE) | 5–6 | 3–4 | 6–7 | 3–4 |
|
||||||
|
|
||||||
|
- Friday is the longer-hold progression day, **not a maximal-effort workout**.
|
||||||
|
- Keep squat holds gentle if fatigued after Thursday leg day, and prone swimmers gentle after Sunday shoulders.
|
||||||
|
- Avoid pain, loss of balance or excessive spinal arching. Use suitable padding/support when needed.
|
||||||
|
|
||||||
|
### Daily hanging practice (added)
|
||||||
|
|
||||||
|
| Field | Agreed plan |
|
||||||
|
|---|---|
|
||||||
|
| Activity | Hang from pull-up bar |
|
||||||
|
| Frequency | **Every day**, including Monday and Friday |
|
||||||
|
| Timing | **Afternoon**, alongside isometric holds, separate from morning strength training |
|
||||||
|
| Goal | Work toward a **2-minute hang** |
|
||||||
|
| Current duration | **Not specified** — 2 minutes is the target, not a confirmed current ability |
|
||||||
|
| Sets / breaks | **Not specified** — do not assume 2 minutes continuous or cumulative |
|
||||||
|
| Weight | **Not specified** for daily hangs — do not assume weighted vest |
|
||||||
|
|
||||||
|
The daily hang is **additional to the existing programme**. Saturday also currently lists 2–3 sets of finger hangs in the morning; retain those for now rather than silently replacing them. Track the daily hang and Saturday finger hangs separately. Since pull-ups, chin-ups, hanging knee raises and finger hangs already load the hands and elbows, ease off if grip, finger, elbow or shoulder discomfort develops.
|
||||||
|
|
||||||
|
|
||||||
|
## 5. Full-body stretching — Monday and Friday (at least)
|
||||||
|
|
||||||
|
Target **15–20 minutes**, gently and without forcing positions. The same stretches may be done on other days if desired.
|
||||||
|
|
||||||
|
| Exercise | Duration |
|
||||||
|
|---|---|
|
||||||
|
| Standing calf stretch | 30 sec/leg |
|
||||||
|
| Standing quadriceps stretch | 30 sec/leg |
|
||||||
|
| Kneeling hip-flexor stretch | 30 sec/side |
|
||||||
|
| Seated hamstring stretch | 30 sec/leg |
|
||||||
|
| Figure-four glute stretch | 30 sec/side |
|
||||||
|
| Doorway chest stretch | 30 sec |
|
||||||
|
| Cross-body shoulder stretch | 30 sec/arm |
|
||||||
|
| Child's pose with side reach | 30 sec/side |
|
||||||
|
| Cat-cow | 8–10 slow reps |
|
||||||
|
|
||||||
|
## 6. Daily dog walks
|
||||||
|
|
||||||
|
| Item | Current routine |
|
||||||
|
|---|---|
|
||||||
|
| Number of walks | **3 every day** |
|
||||||
|
| Duration per walk | **30–60 minutes** |
|
||||||
|
| Total walking time | **90–180 minutes/day**, approximately **10.5–21 hours/week** |
|
||||||
|
| Added load | **6 kg weighted vest** |
|
||||||
|
| Recovery adjustment | On leg day or if fatigue/discomfort develops, lower vest load or walk without it. |
|
||||||
|
|
||||||
|
Walking remains part of the user's overall training load, including on Monday and Friday rest days.
|
||||||
|
|
||||||
|
## 7. General training rules
|
||||||
|
|
||||||
|
| Topic | Agreed rule |
|
||||||
|
|---|---|
|
||||||
|
| Between normal strength sets | About **2 minutes** |
|
||||||
|
| More demanding compound sets | **2–3 minutes**, extending if needed for quality reps |
|
||||||
|
| Between different strength exercises | Approximately **3 minutes** |
|
||||||
|
| Pull-up and chin-up EMOM | Begin work every **60 seconds**; remaining time is rest |
|
||||||
|
| Rep progression | When the top of a rep range is consistently completed with good form, increase difficulty/load or use a harder progression |
|
||||||
|
| Limited equipment load | Progress using available weight, weighted vest, unilateral variants, control, range of motion and pauses |
|
||||||
|
| Isometric progression | Increase by around **5 seconds** when easy, with form and recovery maintained |
|
||||||
|
| Recovery priority | Do not allow afternoon isometrics, stretching or vest walks to compromise morning strength progression |
|
||||||
|
| Nutrition priority | Support gradual muscle/weight gain; don't deliberately reduce calories to chase a small amount of belly fat |
|
||||||
|
|
||||||
|
## 8. Implementation notes for the workout app
|
||||||
|
|
||||||
|
- Preserve **exercise order**, **prescription ranges**, **optional status**, and **vest load** in structured data; do not flatten a range (e.g. `3–4 sets`) to a mandatory count without representing the difference.
|
||||||
|
- Separate the routine template from workout logs. Logged sets, weights, repetitions, timings and notes are **historical user data**.
|
||||||
|
- The EMOM is a 10-minute protocol and is different from a normal 10-set workout timer.
|
||||||
|
- Daily walks, afternoon isometrics, **daily hanging practice**, and rest-day stretching are separate session types; track them independently from morning strength workouts.
|
||||||
|
- Record daily hang duration and whether the 2-minute goal was achieved; do not default duration to 120 seconds or assume it is one continuous attempt. Keep Saturday finger hangs independently logged.
|
||||||
|
- Include exercise instructions/images as independent exercise-library data; this source document records the *agreed programme*, not an exhaustive technique manual.
|
||||||
|
- Any exercise weight omitted above is **not specified**. Do not infer a dumbbell or EZ-bar load.
|
||||||
|
- No fixed finger-hang duration is agreed.
|
||||||
|
- This is the initial baseline, not evidence that every listed exercise has already been performed on every date.
|
||||||
|
|
||||||
|
## 9. Revision log
|
||||||
|
|
||||||
|
| Date | Change |
|
||||||
|
|---|---|
|
||||||
|
| 2026-10-18 | Added daily afternoon hangs alongside isometric holds, with a goal of 2 minutes; current duration and continuous/cumulative format remain unspecified. |
|
||||||
|
| 2026-10-18 | Consolidated current strength routine, seven-day isometrics, Monday/Friday stretching, walking volume and known vest loads into one authoritative document. |
|
||||||
@@ -0,0 +1,17 @@
|
|||||||
|
import js from '@eslint/js'
|
||||||
|
import globals from 'globals'
|
||||||
|
import react from 'eslint-plugin-react'
|
||||||
|
|
||||||
|
export default [
|
||||||
|
{ ignores: ['dist/**', 'node_modules/**'] },
|
||||||
|
js.configs.recommended,
|
||||||
|
{
|
||||||
|
files: ['**/*.{js,jsx}'],
|
||||||
|
plugins: { react },
|
||||||
|
languageOptions: {
|
||||||
|
globals: { ...globals.browser, ...globals.node },
|
||||||
|
parserOptions: { ecmaFeatures: { jsx: true } },
|
||||||
|
},
|
||||||
|
rules: { 'react/jsx-uses-vars': 'error' },
|
||||||
|
},
|
||||||
|
]
|
||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8" />
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
|
<meta name="theme-color" content="#f4f1ea" />
|
||||||
|
<title>Workout Tracker</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="root"></div>
|
||||||
|
<script type="module" src="/src/main.jsx"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Generated
+5548
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"name": "workout-tracker",
|
||||||
|
"private": true,
|
||||||
|
"version": "0.1.0",
|
||||||
|
"type": "module",
|
||||||
|
"engines": { "node": ">=20.19.0" },
|
||||||
|
"scripts": {
|
||||||
|
"dev": "vite",
|
||||||
|
"build": "vite build",
|
||||||
|
"preview": "vite preview",
|
||||||
|
"lint": "eslint .",
|
||||||
|
"test": "vitest run"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"bootstrap": "5.3.8",
|
||||||
|
"react": "19.2.8",
|
||||||
|
"react-bootstrap": "2.10.10",
|
||||||
|
"react-dom": "19.2.8"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@eslint/js": "9.39.3",
|
||||||
|
"@testing-library/react": "16.3.2",
|
||||||
|
"@vitejs/plugin-react": "6.0.1",
|
||||||
|
"eslint": "9.39.3",
|
||||||
|
"eslint-plugin-react": "7.37.2",
|
||||||
|
"globals": "16.4.0",
|
||||||
|
"jsdom": "29.1.1",
|
||||||
|
"vite": "8.0.3",
|
||||||
|
"vitest": "4.1.11"
|
||||||
|
}
|
||||||
|
}
|
||||||
+68
@@ -0,0 +1,68 @@
|
|||||||
|
import { useState } from 'react'
|
||||||
|
import { Button, Container, Nav, Navbar } from 'react-bootstrap'
|
||||||
|
|
||||||
|
const sections = [
|
||||||
|
{ id: 'today', label: 'Today', title: 'Your workout, at a glance', description: 'Your daily sessions will appear here when the routine is added.' },
|
||||||
|
{ id: 'week', label: 'Week', title: 'The week ahead', description: 'The seven-day programme will appear here when the routine is added.' },
|
||||||
|
{ id: 'history', label: 'History', title: 'Your training history', description: 'Completed workouts will appear here once tracking is available.' },
|
||||||
|
{ id: 'plan', label: 'Plan', title: 'Your training plan', description: 'Routine editing will become available in a later task.' },
|
||||||
|
{ id: 'settings', label: 'Settings', title: 'Your data and preferences', description: 'Local backup and app settings will become available in a later task.' },
|
||||||
|
]
|
||||||
|
|
||||||
|
export default function App() {
|
||||||
|
const [activeId, setActiveId] = useState('today')
|
||||||
|
const activeSection = sections.find((section) => section.id === activeId)
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div className="app-shell">
|
||||||
|
<a className="skip-link" href="#main-content">Skip to content</a>
|
||||||
|
<Navbar className="site-header" aria-label="Main navigation">
|
||||||
|
<Container className="header-inner">
|
||||||
|
<Navbar.Brand className="brand" href="#main-content" onClick={() => setActiveId('today')}>
|
||||||
|
<span className="brand-mark" aria-hidden="true">W</span>
|
||||||
|
<span>Workout Tracker</span>
|
||||||
|
</Navbar.Brand>
|
||||||
|
<span className="header-note">A private space to keep moving</span>
|
||||||
|
</Container>
|
||||||
|
</Navbar>
|
||||||
|
|
||||||
|
<Container className="page-content">
|
||||||
|
<div className="page-heading">
|
||||||
|
<div>
|
||||||
|
<p className="eyebrow">YOUR TRAINING SPACE</p>
|
||||||
|
<h1>{activeSection.title}</h1>
|
||||||
|
<p className="intro">A simple place for your plan, sessions and progress.</p>
|
||||||
|
</div>
|
||||||
|
<span className="local-badge">Local to this browser</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<Nav className="section-nav" aria-label="App sections">
|
||||||
|
{sections.map((section) => (
|
||||||
|
<Nav.Item key={section.id}>
|
||||||
|
<Button
|
||||||
|
className="section-link"
|
||||||
|
variant="link"
|
||||||
|
aria-current={activeId === section.id ? 'page' : undefined}
|
||||||
|
onClick={() => setActiveId(section.id)}
|
||||||
|
>
|
||||||
|
{section.label}
|
||||||
|
</Button>
|
||||||
|
</Nav.Item>
|
||||||
|
))}
|
||||||
|
</Nav>
|
||||||
|
|
||||||
|
<main id="main-content" tabIndex="-1">
|
||||||
|
<section className="content-panel" aria-labelledby="panel-title">
|
||||||
|
<div className="panel-icon" aria-hidden="true">{activeId === 'today' ? '↗' : '•'}</div>
|
||||||
|
<div>
|
||||||
|
<p className="panel-kicker">{activeSection.label}</p>
|
||||||
|
<h2 id="panel-title">A clear place to begin</h2>
|
||||||
|
<p>{activeSection.description}</p>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
<p className="shell-note">Your workout data will stay on this device when local storage is added.</p>
|
||||||
|
</main>
|
||||||
|
</Container>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
import { fireEvent, render, screen } from '@testing-library/react'
|
||||||
|
import { describe, expect, it } from 'vitest'
|
||||||
|
import App from './App.jsx'
|
||||||
|
|
||||||
|
describe('application shell', () => {
|
||||||
|
it('shows the Today section and changes sections without workout behavior', () => {
|
||||||
|
render(<App />)
|
||||||
|
expect(screen.getByRole('heading', { level: 1, name: 'Your workout, at a glance' })).toBeTruthy()
|
||||||
|
const week = screen.getByRole('button', { name: 'Week' })
|
||||||
|
fireEvent.click(week)
|
||||||
|
expect(screen.getByRole('heading', { level: 1, name: 'The week ahead' })).toBeTruthy()
|
||||||
|
expect(week.getAttribute('aria-current')).toBe('page')
|
||||||
|
expect(screen.getByRole('main')).toBeTruthy()
|
||||||
|
})
|
||||||
|
})
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import React from 'react'
|
||||||
|
import { createRoot } from 'react-dom/client'
|
||||||
|
import 'bootstrap/dist/css/bootstrap.min.css'
|
||||||
|
import './styles.css'
|
||||||
|
import App from './App.jsx'
|
||||||
|
|
||||||
|
createRoot(document.getElementById('root')).render(
|
||||||
|
<React.StrictMode>
|
||||||
|
<App />
|
||||||
|
</React.StrictMode>,
|
||||||
|
)
|
||||||
@@ -0,0 +1,29 @@
|
|||||||
|
:root { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #202923; background: #f4f1ea; }
|
||||||
|
body { min-width: 320px; margin: 0; }
|
||||||
|
button { font: inherit; }
|
||||||
|
.app-shell { min-height: 100vh; background: #f4f1ea; }
|
||||||
|
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 10; padding: .6rem 1rem; background: #fff; color: #173d32; }
|
||||||
|
.skip-link:focus { top: .5rem; }
|
||||||
|
.site-header { min-height: 76px; background: #173d32; color: #fff; }
|
||||||
|
.header-inner { display: flex; justify-content: space-between; gap: 1rem; }
|
||||||
|
.brand, .brand:hover, .brand:focus { display: inline-flex; align-items: center; gap: .75rem; color: #fff; font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
|
||||||
|
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: #d6ec77; color: #173d32; font-weight: 800; }
|
||||||
|
.header-note { color: #d0e3db; font-size: .875rem; }
|
||||||
|
.page-content { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: 3rem; }
|
||||||
|
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; }
|
||||||
|
.eyebrow, .panel-kicker { color: #476656; font-size: .73rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
|
||||||
|
h1 { max-width: 16ch; margin: .25rem 0 .7rem; font-size: clamp(2.2rem, 5vw, 3.75rem); line-height: 1.08; letter-spacing: -.045em; }
|
||||||
|
.intro { margin: 0; color: #5b685f; font-size: 1.08rem; }
|
||||||
|
.local-badge { flex: 0 0 auto; margin-bottom: .25rem; padding: .45rem .75rem; border: 1px solid #bbccc0; border-radius: 999px; color: #315847; font-size: .8rem; font-weight: 600; }
|
||||||
|
.section-nav { display: flex; flex-wrap: wrap; gap: .2rem; margin: 2.5rem 0 1.25rem; padding-bottom: .55rem; border-bottom: 1px solid #d4dcd4; }
|
||||||
|
.section-link.btn { min-height: 44px; padding: .55rem 1rem; border-radius: 8px; color: #445e50; font-weight: 650; text-decoration: none; }
|
||||||
|
.section-link.btn:hover { background: #e6ebe2; color: #173d32; }
|
||||||
|
.section-link.btn[aria-current="page"] { background: #173d32; color: #fff; }
|
||||||
|
.section-link.btn:focus-visible, .brand:focus-visible { outline: 3px solid #9fc45c; outline-offset: 3px; }
|
||||||
|
.content-panel { display: flex; align-items: flex-start; gap: 1.5rem; min-height: 280px; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid #e0e5dd; border-radius: 20px; background: #fff; box-shadow: 0 14px 36px rgba(22, 54, 43, .045); }
|
||||||
|
.panel-icon { display: grid; flex: 0 0 56px; width: 56px; height: 56px; place-items: center; border-radius: 16px; background: #e8efd9; color: #315847; font-size: 2rem; line-height: 1; }
|
||||||
|
.content-panel h2 { margin: .4rem 0 .7rem; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.03em; }
|
||||||
|
.content-panel p:last-child { max-width: 48ch; color: #5b685f; line-height: 1.6; }
|
||||||
|
.shell-note { margin: 1rem 0; color: #627067; font-size: .875rem; }
|
||||||
|
@media (max-width: 575px) { .site-header { min-height: 68px; } .header-note, .local-badge { display: none; } .page-heading { display: block; } .section-nav { flex-wrap: wrap; margin-top: 2rem; } .section-link.btn { white-space: nowrap; padding-inline: .75rem; } .content-panel { gap: 1rem; min-height: 240px; border-radius: 16px; } .panel-icon { flex-basis: 42px; width: 42px; height: 42px; font-size: 1.5rem; } }
|
||||||
|
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import { defineConfig } from 'vite'
|
||||||
|
import react from '@vitejs/plugin-react'
|
||||||
|
|
||||||
|
export default defineConfig({
|
||||||
|
plugins: [react()],
|
||||||
|
test: {
|
||||||
|
environment: 'jsdom',
|
||||||
|
},
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user