From f3b6b3f1a7509fd7ea0037f2ca40b1c448800e22 Mon Sep 17 00:00:00 2001 From: mohiit1502 Date: Fri, 21 Aug 2026 19:06:15 +0530 Subject: [PATCH] =?UTF-8?q?feat:=20high-fidelity=20callback=20page=20?= =?UTF-8?q?=E2=80=94=20animated=20check,=20glass=20card,=20agos.stuffle.ai?= =?UTF-8?q?=20links?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Revamped login callback HTML with animated mesh background, floating particles, SVG animated checkmark/X, glass-morphism card, countdown progress bar, auto-close timer, and proper link hierarchy (agos.stuffle.ai). Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- cli/agos.py | 329 ++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 256 insertions(+), 73 deletions(-) diff --git a/cli/agos.py b/cli/agos.py index dc6e705..fe19e41 100644 --- a/cli/agos.py +++ b/cli/agos.py @@ -229,77 +229,189 @@ _CALLBACK_SUCCESS_HTML = """ - Agos — Logged in + Agos \u2014 Signed in +
-
✓
-

You're logged in to Agos

-

Authentication successful. Return to your terminal.

- {user_block} - Open Agos → - """ @@ -309,44 +421,112 @@ _CALLBACK_ERROR_HTML = """ - Agos — Login failed + Agos \u2014 Login failed
-
✗
+
+ + + + + +

Login failed

Something went wrong during authentication.

-
{error_detail}
-

Return to your terminal and run agos login to try again.

+
{error_detail}
+

Return to your terminal and run agos login to try again.

""" @@ -369,9 +549,12 @@ def _start_callback_server(host, port, expected_state, timeout_seconds, correlat callback_payload['valid_state'] = callback_payload.get('state') == expected_state success = callback_payload['valid_state'] and not callback_payload.get('error') + _auto_close_sec = 5 if success: - user_block = '' # filled in post-token-exchange; safe placeholder - body = _CALLBACK_SUCCESS_HTML.format(user_block=user_block) + body = _CALLBACK_SUCCESS_HTML.format( + close_seconds=_auto_close_sec, + close_ms=_auto_close_sec * 1000, + ) status = 200 else: error_detail = (