Files
jobboard/app/templates/settings/pulls.html
T
WolfandClaude Fable 5.1 a5af47349f Pulls: Pull now on top, one stage at a time tucked away
Pull now moves from the Sources page's own button to Pulls, wired the same
way (POST /api/jobs {kind: "pull"}), sitting beside what is running. The
schedule follows, then extract, embed and score move under a "Run one
stage" details -- jobs.js still draws them from /api/jobs/kinds, minus
pull, which gets the dedicated button instead of appearing twice.

Messages' lede drops the file's own vocabulary (a "fix", "cleared yet") for
the reader's: a fortnight, not a job kind or a config key.

Found but not fixed: at 375px the refreshed desk-schedules still squeezes
its name and cadence columns to a sliver, because kind/next/last size to
their untruncated content instead of the width their own ellipsis implies.
No page-level horizontal scroll comes of it, so overflow-x: auto stays as
the safety net, with a comment pointing at the cause. The fix belongs in
../boilerplate, ahead of the next refresh -- out of reach from this
worktree.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-25 21:52:31 +02:00

47 lines
1.7 KiB
HTML

{% extends "base.html" %}
{% block title %}Pulls — roledesk{% endblock %}
{% block content %}
<h1>Settings</h1>
{% include "settings/_tabs.html" %}
<p class="lede">Every 6 hours roledesk reads every board and search, then fills in what each posting says, embeds and scores. Change the cadence below.</p>
<section class="card">
<div class="row-between">
<h2>What is running</h2>
<button type="button" id="pull-now" class="secondary">Pull now</button>
</div>
{# The heading and the idle line are the app's: the element takes up no
space while the queue is idle — that is its `idle="hide"` default, and a
strip that is always there is furniture — and a card with nothing in it
and nothing above it reads as something that failed to load. The element
and its script are the queue's own, served by its own router — see
pipeline/web/static/jobs.js. #}
<p class="muted small" id="idle">Nothing at the moment.</p>
<script type="module" src="/_jobs/jobs.js"></script>
<desk-jobs></desk-jobs>
</section>
<section class="card">
{# The element and its script are the scheduler's own, served by its own
router — see pipeline/web/static/schedules.js. A cadence is typed as
`every 15m`, `every 6h`, `daily at 06:00` or `weekly mon 07:00`; its add
row's placeholder shows two. #}
<h2>Schedule</h2>
<script type="module" src="/_jobs/schedules.js"></script>
<desk-schedules></desk-schedules>
</section>
<details class="stage">
<summary>Run one stage</summary>
<div id="kinds" class="buttons">
<span class="muted">loading…</span>
</div>
</details>
{% endblock %}
{% block scripts %}
<script src="{{ asset('jobs.js') }}"></script>
{% endblock %}