Skip to content

Commit c892153

Browse files
guidooswaldDBclaude
andcommitted
Add account ID to user dropdown, widen panel, refresh on connection change
- Show account_id from current profile in user details (or "not available") - Widen dropdown panel to 520px to fit full workspace URLs - Auto-refresh user details when connection config changes Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 04e1b90 commit c892153

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ def toggle_about_modal(n, is_open):
14171417
Output("profile-select", "value"),
14181418
Output("profile-select", "options"),
14191419
Input("dropdown-open", "data"),
1420-
State("conn-config", "data"),
1420+
Input("conn-config", "data"),
14211421
prevent_initial_call=True,
14221422
)
14231423
def populate_dropdown(is_open, conn_config):
@@ -1470,9 +1470,11 @@ def populate_dropdown(is_open, conn_config):
14701470
except Exception:
14711471
auth_type_display = "Unknown"
14721472

1473+
account_id = get_account_id(conn_config.get("profile"))
14731474
auth_details = html.Div([
14741475
html.Div([html.Span("Auth", className="auth-info-label"), html.Span(auth_type_display, className="auth-info-value font-mono")], className="auth-info-row"),
14751476
html.Div([html.Span("Host", className="auth-info-label"), html.Span((host or "—").replace("https://", ""), className="auth-info-value font-mono small")], className="auth-info-row"),
1477+
html.Div([html.Span("Account ID", className="auth-info-label"), html.Span(account_id or "not available", className="auth-info-value font-mono small")], className="auth-info-row"),
14761478
html.Div([html.Span("Email", className="auth-info-label"), html.Span(primary_email or "—", className="auth-info-value small")], className="auth-info-row") if primary_email else None,
14771479
html.Div([html.Span("User ID", className="auth-info-label"), html.Span(user_id or "—", className="auth-info-value font-mono small")], className="auth-info-row") if user_id else None,
14781480
], className="auth-info-table")

assets/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1080,7 +1080,7 @@ body {
10801080
position: fixed;
10811081
top: 56px;
10821082
right: 0;
1083-
width: 370px;
1083+
width: 520px;
10841084
background: #0a0f20;
10851085
border-left: 1px solid rgba(0,212,255,0.18);
10861086
border-bottom: 1px solid rgba(0,212,255,0.18);

0 commit comments

Comments
 (0)