Skip to content

Commit 50862ca

Browse files
Restore Jun 4 auth portal UI
1 parent d3a61e2 commit 50862ca

7 files changed

Lines changed: 226 additions & 77 deletions

File tree

ax_browser_broker/api.py

Lines changed: 147 additions & 73 deletions
Large diffs are not rendered by default.
Lines changed: 10 additions & 0 deletions
Loading
Lines changed: 10 additions & 0 deletions
Loading
Binary file not shown.
Lines changed: 9 additions & 0 deletions
Loading
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"brand": {
3+
"name": "OpenBrowser",
4+
"tagline": "The browser infrastructure for AI agents.",
5+
"one_liner": "Real browsers. Real logins. Human in the loop."
6+
},
7+
"color": {
8+
"ink": "#0B1220",
9+
"slate_900": "#0F172A",
10+
"slate_700": "#334155",
11+
"slate_500": "#64748B",
12+
"slate_300": "#CBD5E1",
13+
"slate_200": "#E2E8F0",
14+
"slate_100": "#F1F5F9",
15+
"surface": "#FFFFFF",
16+
"glass": "rgba(255,255,255,0.72)",
17+
"glass_strong": "rgba(255,255,255,0.86)",
18+
"success": "#10B981",
19+
"link": "#2563EB"
20+
},
21+
"typography": {
22+
"display": "Inter Display, Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif",
23+
"body": "Inter, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif",
24+
"mono": "JetBrains Mono, SFMono-Regular, Consolas, monospace"
25+
},
26+
"radius": {
27+
"sm": "8px",
28+
"md": "12px",
29+
"lg": "18px",
30+
"xl": "28px",
31+
"panel": "32px"
32+
},
33+
"shadow": {
34+
"panel": "0 24px 80px rgba(15, 23, 42, 0.16)",
35+
"card": "0 10px 40px rgba(15, 23, 42, 0.10)",
36+
"hairline": "0 0 0 1px rgba(15, 23, 42, 0.08)"
37+
},
38+
"blur": {
39+
"glass": "24px",
40+
"hero_panel": "40px"
41+
}
42+
}

tests/test_api.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,14 @@ def test_auth_portal_keeps_password_prompt_for_untrusted_ip(tmp_path, monkeypatc
106106
assert "enter it in the browser prompt" in response.text
107107
assert "manual-pass" in response.text
108108
assert "#password=manual-pass" not in response.text
109-
assert 'id="authPasswordCard"' in response.text
110-
assert 'id="showPasswordCard"' in response.text
111-
assert "authPasswordCard?.classList.add('is-hidden')" in response.text
112-
assert "showPasswordCard?.classList.add('is-visible')" in response.text
109+
assert 'id="authCard"' in response.text
110+
assert 'id="minimizeAuth"' in response.text
111+
assert 'id="minimizeAuthSecondary"' in response.text
112+
assert 'id="restoreAuth"' in response.text
113+
assert "auth-card is-warning is-minimized" in response.text
114+
assert "copy-password" in response.text
115+
assert "setTimeout(minimizeAuthCard, 450)" in response.text
116+
assert "if (event.key === 'Escape') minimizeAuthCard();" in response.text
113117

114118

115119
def test_auth_portal_reuses_existing_vnc_without_restart(tmp_path, monkeypatch) -> None:

0 commit comments

Comments
 (0)