bigbiggerbiggestbot/tests
Danny 9f146d60fa feat: last-session recall when starting an exercise
When you start an exercise, the Mini App now fetches the most
recent time you logged it and shows a hint line in the sets card
("Last time: 8×60, 6×60, 5×60 · 3 days ago"), plus pre-fills the
weight input with the last set's weight.

- db.get_last_exercise(user_id, name): most recent non-deleted
  entry, case-insensitive name match, sets_detail parsed.
- GET /api/exercises/last?name=<name>.
- webapp: loadLastSession() on startExercise + draft restore;
  hint cleared on editExercise (the set rows are the reference
  there). Pre-fill only when the weight field is empty and no
  sets logged yet, so it never clobbers user input.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 12:52:37 +02:00
..
__init__.py feat(tg-fitness-bot): add test suite with pre-commit hook 2026-04-13 20:41:03 +02:00
conftest.py feat(tg-fitness-bot): add test suite with pre-commit hook 2026-04-13 20:41:03 +02:00
test_db.py feat: last-session recall when starting an exercise 2026-05-22 12:52:37 +02:00
test_parser.py feat(tg-fitness-bot): add test suite with pre-commit hook 2026-04-13 20:41:03 +02:00