feat: Refactor queue page to use jobs panel rendering for improved performance

This commit is contained in:
JB
2025-10-06 12:55:44 -07:00
parent fc4c41c7cf
commit b75e1c1b2e
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -363,8 +363,7 @@ def index() -> str:
@web_bp.get("/queue")
def queue_page() -> str:
jobs = _service().list_jobs()
return render_template("queue.html", jobs=jobs)
return render_template("queue.html", jobs_panel=_render_jobs_panel())
@web_bp.route("/settings", methods=["GET", "POST"])
+1 -1
View File
@@ -4,6 +4,6 @@
{% block content %}
<section class="card" id="jobs-panel" hx-get="{{ url_for('web.jobs_partial') }}" hx-trigger="load, every 3s" hx-target="#jobs-panel" hx-swap="innerHTML">
{% include "partials/jobs.html" %}
{{ jobs_panel|safe }}
</section>
{% endblock %}