Flag models deleted from the Hub; tag picker, tags in settings, account menu

- Worker checks each model's repo and pinned commit on the Hub every
  UPDATE_CHECK_INTERVAL_HOURS and after failed downloads; missing repos or
  commits are flagged (badge, banner, Status filter) and block new
  downloads. Local files are never touched. "Check now" on the model page.
- Tag picker dropdown ("Create new tag…" first, then existing tags) on the
  model page and in Add model.
- Settings: separate File labels and Tags pages; create tags there. Unused
  tags are no longer deleted automatically.
- Header: app icon, nav with active state, account menu with the OIDC
  profile picture, theme switch and sign out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Pascal LinxweilerandClaude Opus 5.5 committed 2026-10-05 22:53:57 +02:00
1 parent df18415e02
commit 3603742637
33 files changed
+1708 -122

No files matched your search

+12 -1
View File
@@ -15,7 +15,16 @@ import { formatBytes, percent } from "@/lib/format";
const OPEN = ["queued", "downloading", "verifying"];
/** Sidebar card: current download state, actions and (while running) per-file progress. */
export function DownloadCard({ modelId, status }: { modelId: string; status: ModelStatus }) {
export function DownloadCard({
modelId,
status,
hubMissing,
}: {
modelId: string;
status: ModelStatus;
/** The repo or pinned commit is gone from the Hub; no new downloads. */
hubMissing: boolean;
}) {
const { snapshot } = useLive({ model: modelId });
const [busy, setBusy] = useState(false);
const latest = snapshot?.jobs[0];
@@ -35,6 +44,7 @@ export function DownloadCard({ modelId, status }: { modelId: string; status: Mod
if (open?.state === "queued") hint = snapshot?.worker.online ? "Waiting for a free download slot." : "Queued, but the worker is offline.";
else if (open) hint = "Runs in the background; you can close this page.";
else if (status === "ready") hint = "All selected files are present.";
else if (hubMissing) hint = "Can't download: no longer available on Hugging Face. Local files are kept.";
return (
<div className="flex flex-col gap-3">
@@ -84,6 +94,7 @@ export function DownloadCard({ modelId, status }: { modelId: string; status: Mod
</Button>
) : (
status !== "ready" &&
!hubMissing &&
snapshot && (
<Button size="sm" disabled={busy} onClick={() => run(() => startDownload(modelId))}>
{latest ? "Download again" : "Download"}