From 9de5e3c6f1e4debfe89d4162b283822a9a48d0a0 Mon Sep 17 00:00:00 2001 From: Nathan Burg Date: Mon, 4 May 2026 18:55:49 -0700 Subject: [PATCH] task: update auth success and failure screens --- src/services/auth-service.ts | 243 ++++++++++++++++++++++++++++------- 1 file changed, 199 insertions(+), 44 deletions(-) diff --git a/src/services/auth-service.ts b/src/services/auth-service.ts index 8a04e5c9..6a7eb57a 100644 --- a/src/services/auth-service.ts +++ b/src/services/auth-service.ts @@ -370,43 +370,121 @@ function parseRefreshTokenResponse(data: unknown): RefreshTokenResponse { function successHtml(title = "Authentication successful"): string { return ` -GitHits CLI + +GitHits CLI + + + + -
-

${escapeHtml(title)}

-

You can close this window and return to the terminal.

+
+ +
+

${escapeHtml(title)}

+

You can close this window and return to the terminal.

+
+ + + GitHits + + + + + + + + + + + +

TIP: Run npx githits --help to discover what else you can do.

`; } @@ -463,44 +541,121 @@ export function evaluateCallback( function errorHtml(error: string, nextStep?: string): string { const nextStepHtml = nextStep ? `

${escapeHtml(nextStep)}

` : ""; return ` -GitHits CLI + +GitHits CLI + + + + -
-

Authentication failed

-

${escapeHtml(error)}

+
+ + +
+

Authentication failed

+

${escapeHtml(error)}

+
+ ${nextStepHtml} + + + GitHits + + + + + + + + + + + +
`; }