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

+8
View File
@@ -46,6 +46,10 @@ export const MODEL_STATUSES = [
] as const;
export type ModelStatus = (typeof MODEL_STATUSES)[number];
/** Is the repo (at the pinned commit) still on the Hub? Local files are never touched either way. */
export const HUB_STATES = ["available", "repo_missing", "commit_missing"] as const;
export type HubState = (typeof HUB_STATES)[number];
export const models = sqliteTable(
"models",
{
@@ -73,6 +77,10 @@ export const models = sqliteTable(
remoteSha: text("remote_sha"),
lastCheckedAt: ts("last_checked_at"),
lastCheckError: text("last_check_error"),
/** Result of the last successful Hub check; null until checked. */
hubState: text("hub_state", { enum: HUB_STATES }),
/** When the repo or pinned commit was first seen missing; cleared when it's back. */
hubMissingSince: ts("hub_missing_since"),
lastVerifiedAt: ts("last_verified_at"),
downloadedAt: ts("downloaded_at"),
// Hub metadata (for search/filters), refreshed by the worker. Null until fetched.