- Moved workout-related routes (create/delete/edit workouts, topsets, tags, start dates, show workout) from `app.py` into a new blueprint at `routes/workout.py`. - Integrated workout view model logic from `features/workout.py` directly into `routes/workout.py` helper function `_get_workout_view_model`. - Removed `features/workout.py` and the corresponding class instantiation in `db.py`. - Registered the new `workout_bp` blueprint in `app.py`. - Removed the original workout route definitions from `app.py`. - Updated `url_for` calls in relevant templates (`workout.html`, `person_overview.html`, `partials/workout_tags.html`, `partials/topset.html`, `partials/start_date.html`, `partials/new_set_form.html`, `notes.html`, `calendar.html`) to reference the new blueprint endpoints (e.g., `workout.create_workout`). - Updated `templates/changelog/changelog.html` to document this refactoring.
75 lines
3.8 KiB
HTML
75 lines
3.8 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<div class="p-4 md:p-6"> {# Add some overall padding for the page content area #}
|
|
<div class="bg-white shadow-md rounded-lg p-6"> {# Card container #}
|
|
<h1 class="text-2xl font-semibold text-gray-900 mb-6 border-b pb-2">Changelog</h1> {# Added bottom border to
|
|
heading #}
|
|
|
|
{# Container for the actual changelog entries with prose styling #}
|
|
<div class="prose max-w-none">
|
|
<p>Updates and changes to the site will be documented here, with the most recent changes listed first.</p>
|
|
|
|
<!-- New Entry for Workout Refactoring -->
|
|
<hr class="my-6">
|
|
<h2 class="text-xl font-semibold mb-2">March 31, 2025</h2>
|
|
<ul class="list-disc pl-5 space-y-1">
|
|
<li>Refactored workout functionality (create/delete/edit workouts, topsets, tags) into its own blueprint
|
|
(`routes/workout.py`).</li>
|
|
<li>Moved workout view model logic from `features/workout.py` into the `routes/workout.py` blueprint.
|
|
</li>
|
|
<li>Updated relevant `url_for` calls in templates to use the new `workout.` prefix.</li>
|
|
</ul>
|
|
|
|
<!-- New Entry for Calendar Year View Fix -->
|
|
<hr class="my-6">
|
|
<h2 class="text-xl font-semibold mb-2">March 31, 2025</h2>
|
|
<ul class="list-disc pl-5 space-y-1">
|
|
<li>Fixed `AttributeError` in calendar year view caused by passing a date string instead of a date
|
|
object to the template.</li>
|
|
</ul>
|
|
|
|
<!-- New Entry for Notes Refactoring -->
|
|
<hr class="my-6">
|
|
<h2 class="text-xl font-semibold mb-2">March 31, 2025</h2>
|
|
<ul class="list-disc pl-5 space-y-1">
|
|
<li>Refactored notes functionality (viewing/editing workout notes) into its own blueprint
|
|
(`routes/notes.py`).</li>
|
|
<li>Moved notes-specific database logic from `db.py` into the `routes/notes.py` blueprint for better
|
|
encapsulation.</li>
|
|
</ul>
|
|
|
|
<!-- New Entry for Refactoring -->
|
|
<hr class="my-6">
|
|
<h2 class="text-xl font-semibold mb-2">March 30, 2025</h2>
|
|
<ul class="list-disc pl-5 space-y-1">
|
|
<li>Refactored the calendar view and logic into its own blueprint (`routes/calendar.py`).</li>
|
|
<li>Cleaned up calendar code, removing the `Calendar` class and `pandas` dependency.</li>
|
|
<li>Fixed various bugs related to the calendar refactoring (circular imports, HTMX checks, `url_for`
|
|
build errors, date comparisons).</li>
|
|
</ul>
|
|
|
|
<!-- Example Entry Structure -->
|
|
<hr class="my-6"> {# Increased margin for HR #}
|
|
<h2 class="text-xl font-semibold mb-2">March 30, 2025</h2> {# Reduced margin-bottom for H2 #}
|
|
<ul class="list-disc pl-5 space-y-1"> {# Added space between list items #}
|
|
<li>Added the initial changelog page.</li>
|
|
<li>Fixed a minor styling issue on the dashboard.</li>
|
|
<li>Improved visual styling of the changelog page itself.</li> {# Added an entry for this change #}
|
|
<li>Refactored the calendar view and logic into its own blueprint (`routes/calendar.py`).</li>
|
|
</ul>
|
|
|
|
{# Add more entries below, following the pattern above #}
|
|
<!--
|
|
<hr class="my-6">
|
|
<h2 class="text-xl font-semibold mb-2">March 29, 2025</h2>
|
|
<ul class="list-disc pl-5 space-y-1">
|
|
<li>Implemented feature X.</li>
|
|
<li>Refactored component Y.</li>
|
|
</ul>
|
|
-->
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |