fix(status): provider setup vs warn

This commit is contained in:
Peter Steinberger
2026-01-11 01:05:06 +01:00
parent 5fa3ac1e01
commit 518dfd4e42
5 changed files with 171 additions and 47 deletions

View File

@@ -360,11 +360,14 @@ export async function statusAllCommand(
const providerRows = providers.rows.map((row) => ({
Provider: row.provider,
Enabled: row.enabled ? ok("ON") : muted("OFF"),
Configured: row.configured
? ok("OK")
: row.enabled
? warn("WARN")
: muted("OFF"),
State:
row.state === "ok"
? ok("OK")
: row.state === "warn"
? warn("WARN")
: row.state === "off"
? muted("OFF")
: theme.accentDim("SETUP"),
Detail: row.detail,
}));
@@ -373,7 +376,7 @@ export async function statusAllCommand(
columns: [
{ key: "Provider", header: "Provider", minWidth: 10 },
{ key: "Enabled", header: "Enabled", minWidth: 7 },
{ key: "Configured", header: "Configured", minWidth: 10 },
{ key: "State", header: "State", minWidth: 8 },
{ key: "Detail", header: "Detail", flex: true, minWidth: 28 },
],
rows: providerRows,