Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: vertically align ready status icon in media gen status pill

[._.]/ Adam Eivy2f2d55691985
diff --git a/client/src/pages/ImageGen.jsx b/client/src/pages/ImageGen.jsx
index 1e57c3e694..0b836f265d 100644
--- a/client/src/pages/ImageGen.jsx
+++ b/client/src/pages/ImageGen.jsx
@@ -1344,10 +1344,10 @@ export default function ImageGen() {
<div className="flex min-w-0 flex-wrap items-center gap-2">
{statusLoading ? (
<span className="inline-flex items-center gap-1.5 px-2 py-1 rounded-full border border-port-border bg-port-card text-gray-400">
- <RefreshCw className="w-3 h-3 animate-spin" /> Checking {effectiveMode}…
+ <RefreshCw className="w-3 h-3 animate-spin shrink-0" /> Checking {effectiveMode}…
</span>
) : status ? (
- <span className={`inline-flex min-w-0 max-w-full items-start gap-1.5 px-2 py-1 rounded-full border ${
+ <span className={`inline-flex min-w-0 max-w-full items-center gap-1.5 px-2 py-1 rounded-full border ${
statusReady
? 'border-port-success/40 bg-port-success/10 text-port-success'
: statusUnknown
@@ -1355,10 +1355,10 @@ export default function ImageGen() {
: 'border-port-error/40 bg-port-error/10 text-port-error'
}`}>
{statusReady ? (
- <><span className="w-2 h-2 rounded-full bg-port-success" /> Ready — {status.model || CONNECTED_MODE_LABELS[status.mode] || 'external SD API'}</>
+ <><span className="w-2 h-2 rounded-full bg-port-success shrink-0" /> Ready — {status.model || CONNECTED_MODE_LABELS[status.mode] || 'external SD API'}</>
) : (
<>
- <AlertTriangle className="w-3 h-3" />
+ <AlertTriangle className="w-3 h-3 shrink-0" />
{statusUnknown ? 'Could not verify' : 'Unavailable'}: {status.reason || 'Not connected'} —
{/* The probe names the ONE action that fixes this state
(server/services/imageGen/localRuntime.js). Offer it here:
diff --git a/client/src/pages/ImageGen.probeGating.test.jsx b/client/src/pages/ImageGen.probeGating.test.jsx
index 29721fb3fe..92873d1d94 100644
--- a/client/src/pages/ImageGen.probeGating.test.jsx
+++ b/client/src/pages/ImageGen.probeGating.test.jsx
@@ -94,6 +94,20 @@ describe('ImageGen backend-probe gating', () => {
expect(screen.getByLabelText('Negative Prompt')).not.toBeDisabled();
});
+ it('vertically centers the ready status icon with the text in the status pill', async () => {
+ await mount();
+ await act(async () => {
+ resolveStatus({ connected: true, mode: 'local', model: 'Qwen-Image 2.1' });
+ });
+
+ const badge = await screen.findByText(/Ready — Qwen-Image 2\.1/);
+ expect(badge.className).toContain('items-center');
+ expect(badge.className).not.toContain('items-start');
+ const dot = badge.querySelector('.rounded-full.bg-port-success');
+ expect(dot).toBeInTheDocument();
+ expect(dot.className).toContain('shrink-0');
+ });
+
// A live form has a live implicit submit: Enter inside a number input fires
// onSubmit even when the default button is disabled, so the handler carries
// the same probe gate the button does.
diff --git a/client/src/pages/VideoGen.jsx b/client/src/pages/VideoGen.jsx
index dc55763f07..afcdb61c36 100644
--- a/client/src/pages/VideoGen.jsx
+++ b/client/src/pages/VideoGen.jsx
@@ -1095,10 +1095,10 @@ export default function VideoGen() {
title={status.pythonPath || 'Local Python'}
>
{status.connected ? (
- <><span className="w-2 h-2 rounded-full bg-port-success" /> {status.pythonVersion ? `Python ${status.pythonVersion}` : 'Python'}</>
+ <><span className="w-2 h-2 rounded-full bg-port-success shrink-0" /> {status.pythonVersion ? `Python ${status.pythonVersion}` : 'Python'}</>
) : (
<>
- <AlertTriangle className="w-3 h-3" />
+ <AlertTriangle className="w-3 h-3 shrink-0" />
{status.reason || 'Local Python not configured — set one up below'}
</>
)}