Simplifies the progression model to a universal rep ladder: every exercise follows 6→8→10→12 reps at current weight, then +5 lbs and reset to 6. Replaces per-user wk1/wk4 rep and weight targets with a single starting_weight field. - Add Alembic migration to drop wk1_reps/wk4_reps/wk1_weight/wk4_weight, add starting_weight (migrated from wk1_weight) - Run Alembic migrations on app startup instead of create_all, with auto-detection and stamping for legacy databases - Include alembic/ and alembic.ini in Docker image - Rewrite progression_service.get_suggestion() with ladder logic: climb, hold, weight_increase, hold_at_top, deload - Replace wk1/wk4 grid in exercise cards with rep ladder progress bar - Add color-coded progression badges by type - Change weight log input from text to number with pre-filled suggestion - Normalize weight input in routes (0→BW, bare number→N lbs) - Remove schedule page (route, template, nav link, tests) - Simplify user_programs.yaml from 4 fields to 1 per exercise - Update all tests for new schema and progression logic Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
{% set profiles = request.state.profiles %}
|
|
{% set active_profile = request.state.active_profile %}
|
|
<li>
|
|
<details class="dropdown">
|
|
<summary>
|
|
{% if active_profile %}
|
|
{{ active_profile.display_name }}
|
|
{% else %}
|
|
Select Profile
|
|
{% endif %}
|
|
</summary>
|
|
<ul dir="rtl">
|
|
{% for profile in profiles %}
|
|
<li>
|
|
<form method="POST" action="/profiles/switch" style="margin:0;">
|
|
<input type="hidden" name="profile_id" value="{{ profile.id }}">
|
|
<button type="submit" class="outline secondary"
|
|
style="width:100%; text-align:left; border:none;">
|
|
{{ profile.display_name }}
|
|
</button>
|
|
</form>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|
|
</details>
|
|
</li>
|
|
<li><a href="/">Home</a></li>
|
|
<li><a href="/workouts">Workouts</a></li>
|
|
<li><a href="/dashboard">Dashboard</a></li>
|
|
<li><a href="/history">History</a></li>
|
|
<li><a href="/exercises">Exercises</a></li>
|
|
<li><a href="/profiles">Profiles</a></li>
|