10 Commits

Author SHA1 Message Date
Peter Stockings
78436b230b feat: Refactor notes functionality into blueprint
- Moved notes-related routes (viewing/editing workout notes) from `app.py` into a new blueprint at `routes/notes.py`.
- Integrated notes-specific database logic (fetching and updating notes) directly into `routes/notes.py` helper functions, removing the corresponding methods from `db.py` for better encapsulation.
- Registered the new `notes_bp` blueprint in `app.py`.
- Removed the original notes route definitions from `app.py`.
- Updated `url_for` calls in `templates/partials/workout_note.html` to reference the new blueprint endpoints (e.g., `notes.get_person_notes`).
- Updated `templates/changelog/changelog.html` to document this refactoring in its own entry.
2025-03-31 22:08:47 +11:00
Peter Stockings
32a81df82a Add fade in transition to work out start date, tags, & note 2024-04-11 18:40:21 +10:00
Peter Stockings
dae4fcbf44 Add view to list workout notes for a person 2024-03-09 18:50:44 +11:00
Peter Stockings
d2d8b73398 Dont float right 'add note' button on mobile 2023-07-25 21:41:08 +10:00
Peter Stockings
ee35e0b317 Refactor workout note template to use hyperscript and also render note with newlines preserved(Potentially switch to using Markdown?) 2023-07-25 17:40:39 +10:00
Peter Stockings
8802d37124 Auto set number of rows for workout note edit textarea 2023-07-12 21:40:07 +10:00
Peter Stockings
7d1bb0b291 Add button to cancel workout note edit 2023-07-12 20:52:49 +10:00
Peter Stockings
acf11c2693 Minor enhancement, when no note is present float right add new note button 2023-07-12 20:16:49 +10:00
Peter Stockings
81882e1969 Fix issue arising from last commits refactor where multiple calls to edit workout start date/note would create multiple instances of the dom 2023-07-12 19:50:51 +10:00
Peter Stockings
c457002d1e Add editable notes to workouts 2023-07-12 19:35:55 +10:00