From 4ece29b6d455ab3a30221c9f78fb567ab0f4153b Mon Sep 17 00:00:00 2001 From: Chris Sherwood Date: Mon, 8 Jun 2026 12:44:51 -0700 Subject: [PATCH] feat(supply-depot): show installed version on cards + make Update pill stand out MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two card tweaks for the update workflow: - Show the installed image tag next to the powered-by name (e.g. "Kiwix · 3.7.0"), so the running version is visible at a glance. Only rendered for installed apps; falls back to just the version when powered_by is unset. - Change the "Update available" pill from a muted light-green tint to a solid desert-orange fill with white text, so an available update actually draws the eye instead of blending into the card. --- admin/inertia/pages/supply-depot.tsx | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/admin/inertia/pages/supply-depot.tsx b/admin/inertia/pages/supply-depot.tsx index 8c8dcac..0729356 100644 --- a/admin/inertia/pages/supply-depot.tsx +++ b/admin/inertia/pages/supply-depot.tsx @@ -818,9 +818,20 @@ function AppCard({

{service.friendly_name ?? service.service_name}

- {service.powered_by && ( -

{service.powered_by}

- )} + {(() => { + // Show the installed image tag next to the powered-by name (e.g. "Kiwix · 3.7.0"). + // Only for installed apps — a not-yet-installed catalog entry has no meaningful + // running version. Falls back to just the version if powered_by is unset. + const version = service.installed ? extractTag(service.container_image) : '' + if (!service.powered_by && !version) return null + return ( +

+ {service.powered_by} + {service.powered_by && version ? ' · ' : ''} + {version ? {version} : null} +

+ ) + })()} @@ -882,7 +893,7 @@ function AppCard({ type="button" onClick={onUpdateVersion} title={`Update to ${service.available_update_version}`} - className="flex items-center gap-1 text-xs px-2 py-0.5 rounded-full font-medium border border-desert-green-light bg-desert-green-lighter text-desert-green-dark cursor-pointer transition-colors hover:bg-desert-green-light" + className="flex items-center gap-1 text-xs px-2 py-0.5 rounded-full font-semibold bg-desert-orange text-white shadow-sm cursor-pointer transition-colors hover:bg-desert-orange-dark" > Update available