feat: onboarding UX for the TUI (#8513)

This commit is contained in:
Alex Hancock
2026-04-14 10:17:01 -04:00
committed by GitHub
parent 2f018285a4
commit 17a404d4f9
26 changed files with 2325 additions and 423 deletions
+20
View File
@@ -0,0 +1,20 @@
export function isErrorStatus(status: string): boolean {
return status.startsWith("error") || status.startsWith("failed");
}
export function formatError(e: unknown): string {
if (e instanceof Error) {
return e.message || e.toString();
}
if (typeof e === "string") {
return e;
}
if (e && typeof e === "object") {
try {
return JSON.stringify(e, null, 2);
} catch {
return String(e);
}
}
return String(e);
}