Give the mirror a page, so managing it is not a curl command
/admin/mirror, behind the same admin session as the other admin pages. What is held, what is arriving with its byte count, what failed and why; start a fetch, retry a failed one, remove a version. Not mounted at all without a mirror configured. The right page for a deployment with no mirror is no page, rather than an empty one pointing at nothing. It reloads itself only while something is downloading. A reload at any other moment takes with it whatever is half-typed into the fetch form, and there is nothing to watch when nothing is moving. A failed row offers Retry, not Remove. A fetch that failed left nothing on disk, so the remove could only answer "the mirror holds nothing for this" — a button whose single outcome is a confusing error. Starting the same download again is what somebody looking at that row wants, and the mirror allows it: only a download still running is refused. An unreachable mirror is said outright instead of rendering as an empty table. The two look nearly identical and mean opposite things: one is a mirror waiting to be filled, the other is a machine to go and look at. Dashboard takes NavExtras rather than a second bool. Two adjacent booleans at a call site get swapped silently and are discovered by somebody clicking the wrong link. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
744a283cf1
commit
cd7eedf09e
17 files changed
+889
-24
No files matched your search
@@ -262,3 +262,18 @@ pre .copy:hover { color: var(--fg); filter: none; }
|
||||
.endpoints > li span { color: var(--muted); font-size: .85rem; }
|
||||
/* A button revealed by hover is a button a phone never has. */
|
||||
@media (hover: none) { pre .copy { opacity: 1; } }
|
||||
|
||||
/* The mirror page. A model version spills onto a second line under its row:
|
||||
the catalog URL is long, and a column wide enough for it would squeeze every
|
||||
other column on the table into uselessness. */
|
||||
.url-row code, .error-row { font-size: .78rem; padding-top: 0; }
|
||||
.url-row { color: var(--muted); }
|
||||
.url-row code { color: var(--muted); }
|
||||
.error-row { color: var(--bad); }
|
||||
tr:has(+ .url-row) td, tr:has(+ .error-row) td { border-bottom: none; }
|
||||
/* The fetch form's three short fields sit on one line on a wide screen and
|
||||
stack on a narrow one, because two of them are a word long and a full-width
|
||||
input for "2026-09" reads as though more is wanted. */
|
||||
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
|
||||
.field-row label { flex: 1 1 12rem; }
|
||||
.opt { font-weight: 400; color: var(--muted); font-size: .8rem; }
|
||||
Reference in new issue
Block a user