Apply new frontend theme

Full style rewrite (holographic/chrome dark theme) plus matching favicon,
authored externally and dropped in at /home/andrew/alembic-theme. Verified
every template's variable names, form field names, and action URLs match
the actual data each router passes before importing -- all matched exactly
with zero router/service changes needed. Validated all templates parse
(Jinja2 env.get_template over the full tree) and confirmed the live
container serves the new theme after rebuild+redeploy.
This commit is contained in:
andrew
2026-07-08 15:01:39 -06:00
parent a1f5bbb121
commit ee21251f3e
13 changed files with 927 additions and 346 deletions
+36 -31
View File
@@ -1,42 +1,47 @@
{% extends "base.html" %}
{% block title %}Genres — alembic{% endblock %}
{% block content %}
<h1>Genre review</h1>
<p class="muted">
The weekly scheduled run still writes genres automatically (low-risk,
reversible, GENRE_LOCK-protected) -- this shows what the last run changed.
</p>
<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>
<form method="post" action="/genres/scan">
<label><input type="checkbox" name="force" value="true"> force (overwrite existing genres)</label>
<button type="submit">Preview now (dry run)</button>
</form>
<div class="panel" style="max-width:560px;">
<form method="post" action="/genres/scan">
<label class="checkbox-field"><input type="checkbox" name="force" value="true"> Force (overwrite existing genres)</label>
<button type="submit" class="btn btn-primary">Preview now (dry run)</button>
</form>
</div>
<h2>Last run</h2>
{% if latest_run %}
<p class="muted">{{ latest_run.mode }} — {{ candidates | length }} change(s)</p>
<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" style="display:inline">
<input type="hidden" name="artist" value="{{ c.artist }}">
<input type="hidden" name="genre" value="{{ c.old_genre or '' }}">
<button type="submit" title="Revert to old genre and lock it">lock old genre</button>
</form>
</td>
</tr>
{% else %}
<tr><td colspan="5" class="muted">No changes in the last run.</td></tr>
{% endfor %}
</tbody>
</table>
<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 %}