Files
alembic/app/templates/genres/index.html
T
andrew b4dd2286a9 Restructure Settings nav, modernize import page, dedup/genres UX polish
Settings is now one top-nav entry with Credentials and Jobs as sidebar
sub-pages (jobs moved from /jobs to /settings/jobs). Manual import page
replaces the bare file input and free-text filename field with a drag-drop
dropzone and a proper file-picker table. Genres page drops the "force"
checkbox for two explicit buttons (Preview / Fix genres now). Dedup's
"Scan now" runs both the file-naming and acoustic passes together, and the
table labels which pass caught each candidate instead of showing the raw
pass name. .btn-ghost gets a visible border so it reads as a real button
next to Delete/Danger actions instead of looking unaligned. Job names
throughout the UI are now human-readable instead of raw job_key strings.

Also includes the fpcalc exit-code fix from earlier (fingerprint index
was discarding valid fingerprints on files with a benign decode warning).
2026-07-09 10:26:40 -06:00

54 lines
1.9 KiB
HTML

{% extends "base.html" %}
{% block title %}Genres — alembic{% endblock %}
{% block content %}
<div class="page-header">
<div>
<h1>Genre review</h1>
<p class="subtitle muted">The weekly scheduled run auto-writes genres (low-risk, reversible, GENRE_LOCK-protected) — this shows what it last changed.</p>
</div>
</div>
<div class="panel" style="max-width:560px;">
<p class="muted" style="margin-top:0;">Preview shows what would change, including overwriting existing genres. Fix writes those changes for real.</p>
<div class="btn-row">
<form method="post" action="/genres/scan" class="inline">
<button type="submit" class="btn btn-ghost">Preview changes</button>
</form>
<form method="post" action="/genres/apply" class="inline">
<button type="submit" class="btn btn-primary">Fix genres now</button>
</form>
</div>
</div>
<h2>Last run</h2>
{% if latest_run %}
<p class="muted">{{ latest_run.mode }} — {{ candidates | length }} change(s)</p>
<div class="table-wrap scroll">
<table>
<thead><tr><th>Artist</th><th>Title</th><th>Old genre</th><th>New genre</th><th></th></tr></thead>
<tbody>
{% for c in candidates %}
<tr>
<td>{{ c.artist }}</td>
<td>{{ c.title }}</td>
<td class="muted">{{ c.old_genre or '(empty)' }}</td>
<td>{{ c.new_genre }}</td>
<td>
<form method="post" action="/genres/lock" class="inline">
<input type="hidden" name="artist" value="{{ c.artist }}">
<input type="hidden" name="genre" value="{{ c.old_genre or '' }}">
<button type="submit" class="btn btn-sm btn-ghost" title="Revert to old genre and lock it">Lock old genre</button>
</form>
</td>
</tr>
{% else %}
<tr class="empty-row"><td colspan="5" class="muted">No changes in the last run.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<p class="muted">No runs yet.</p>
{% endif %}
{% endblock %}