Release / release (push) Successful in 4m33s
- Dot-matrix "Creation of Adam" page banners behind a floating menu, glass cards and tables, library header with live stats, table toolbar with pagination, Cmd/Ctrl+K search across models, endpoints, runs, tags, settings and actions. - Remove single files from a model (selection + disk, via a worker job). - Containers start as root to prepare folders and drop to PUID:PGID; AUTH_SECRET is generated when unset; sandbox runs as nobody; KANAME_IMAGE and image docs in the README. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
18 lines
643 B
TypeScript
18 lines
643 B
TypeScript
// Human-readable job names (shared by UI components).
|
|
|
|
const DOWNLOAD_PURPOSE: Record<string, string> = {
|
|
initial: "Download",
|
|
add: "Download more",
|
|
import: "Import",
|
|
repair: "Repair",
|
|
update: "Update",
|
|
};
|
|
|
|
const KIND: Record<string, string> = { download: "Download", verify: "Verify", deep_verify: "Deep verify", delete: "Delete" };
|
|
|
|
export function jobLabel(job: { kind: string; purpose: string | null }): string {
|
|
if (job.kind === "download") return DOWNLOAD_PURPOSE[job.purpose ?? "initial"] ?? "Download";
|
|
if (job.kind === "delete" && job.purpose === "remove") return "Remove files";
|
|
return KIND[job.kind] ?? job.kind;
|
|
}
|