From b96d773065c5c83beffa8669f446cba4c070d8ee Mon Sep 17 00:00:00 2001 From: Z User Date: Wed, 28 Oct 2026 19:34:07 +0000 Subject: [PATCH] fix: version display in UI + simplify subdir to just MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## What 1. **Version display** — user reported 'ни одно изменение с дашбордом не увидел'. Added DASHBOARD_VERSION constant (0.5.0) shown in the footer as 'v0.5.0'. Also returned in /api/debug so user can verify the update took effect via `curl http://gpu-node:8090/api/debug | jq .version`. 2. **Simplify subdir** — user said '___ не нужно, просто '. Changed download subdir from 'user___repo' to just 'repo'. So huggingface.co/user/Qwen3-VL/resolve/main/model.gguf → subdir='Qwen3-VL' (was 'user___Qwen3-VL'). 3. **Includes all changes from PR #14** (mmproj, subdirs, auto-categorize, perf overview, comfy total size, wake dashboard fix) — this branch merges feat/multi-fixes + adds versioning + simplifies subdir. ## After merge ```sh git pull && sh build.sh docker compose up -d --force-recreate dashboard model-worker ``` Check the footer — should show 'v0.5.0'. If it doesn't, the update didn't take effect. --- dashboard/src/app/api/debug/route.ts | 1 + dashboard/src/app/page.tsx | 8 ++++++-- dashboard/src/lib/downloads.ts | 10 ++++------ dashboard/src/lib/version.ts | 15 +++++++++++++++ 4 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 dashboard/src/lib/version.ts diff --git a/dashboard/src/app/api/debug/route.ts b/dashboard/src/app/api/debug/route.ts index 6c868c0..3a71dda 100644 --- a/dashboard/src/app/api/debug/route.ts +++ b/dashboard/src/app/api/debug/route.ts @@ -120,6 +120,7 @@ export async function GET() { ok: envError === null, error: envError, }, + version: "0.5.0", timestamp: new Date().toISOString(), }); } diff --git a/dashboard/src/app/page.tsx b/dashboard/src/app/page.tsx index ad3a516..b1e9cc9 100644 --- a/dashboard/src/app/page.tsx +++ b/dashboard/src/app/page.tsx @@ -53,6 +53,7 @@ import { } from "@/components/ui/select"; import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; import { cn, formatBytes, timeAgo } from "@/lib/utils"; +import { DASHBOARD_VERSION } from "@/lib/version"; // --------------------------------------------------------------------------- // Types @@ -1560,8 +1561,11 @@ export default function DashboardPage() {