Download more, file labels, split-file grouping, settings for labels and tags
- Files tab: "Download more" adds files to a model's selection and queues them - Colored file labels (Model, MTP, Vision/mmproj, imatrix, Config, …) - Split GGUF/safetensors parts shown and selected as one entry everywhere - Settings page with a Labels section: file label names/colors, tag rename/recolor/delete; new settings table and tags.color - Quants only count model weights Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5211ec9064
commit
df18415e02
34 files changed
+2256
-132
No files matched your search
@@ -9,6 +9,7 @@ import { Button } from "@/components/ui/button";
|
||||
import { Progress } from "@/components/ui/progress";
|
||||
import { useLive } from "@/hooks/use-live";
|
||||
import type { ModelStatus } from "@/lib/db/schema";
|
||||
import { groupJobFiles } from "@/lib/file-groups";
|
||||
import { formatBytes, percent } from "@/lib/format";
|
||||
|
||||
const OPEN = ["queued", "downloading", "verifying"];
|
||||
@@ -19,7 +20,7 @@ export function DownloadCard({ modelId, status }: { modelId: string; status: Mod
|
||||
const [busy, setBusy] = useState(false);
|
||||
const latest = snapshot?.jobs[0];
|
||||
const open = latest && OPEN.includes(latest.state) ? latest : undefined;
|
||||
const files = open ? (snapshot?.files ?? []) : [];
|
||||
const files = open ? groupJobFiles(snapshot?.files ?? []) : [];
|
||||
|
||||
async function run(fn: () => Promise<void>) {
|
||||
setBusy(true);
|
||||
@@ -57,10 +58,11 @@ export function DownloadCard({ modelId, status }: { modelId: string; status: Mod
|
||||
{files.length > 0 && (
|
||||
<ul className="flex flex-col gap-1.5">
|
||||
{files.map((f) => (
|
||||
<li key={f.modelFileId} className="flex flex-col gap-1">
|
||||
<li key={f.path} className="flex flex-col gap-1">
|
||||
<div className="flex justify-between gap-2 text-xs">
|
||||
<span className="truncate font-mono" title={f.path}>
|
||||
{f.path}
|
||||
{f.parts > 1 && <span className="text-muted-foreground"> · {f.parts} parts</span>}
|
||||
</span>
|
||||
<span className="shrink-0 text-muted-foreground tabular-nums">{formatBytes(f.expectedBytes)}</span>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user