deepagent-bot commited on
Commit
bc79872
·
1 Parent(s): f291c90

ci: sync dashboard from d157313

Browse files

Source: github.com/CouLiBaLy-B/gh-deepagents@d157313104a1240617a78c7b420215a69fefde2e

Files changed (1) hide show
  1. src/gh_deepagent/dashboard/app.py +6 -2
src/gh_deepagent/dashboard/app.py CHANGED
@@ -54,8 +54,12 @@ render_user_badge()
54
 
55
  # ---------- HOME page ----------
56
  st.title("Overview")
57
- st.caption(f"Signed in as **{user['login']}** — "
58
- f"{'admin (sees all)' if user.get('is_admin') else f'{len(user.get(\"installation_ids\") or [])} installation(s)'}.")
 
 
 
 
59
 
60
  # For admins, show the global Prometheus state. For users, build KPIs from
61
  # their own jobs (which are already scoped server-side).
 
54
 
55
  # ---------- HOME page ----------
56
  st.title("Overview")
57
+ if user.get("is_admin"):
58
+ _scope = "admin (sees all)"
59
+ else:
60
+ _n = len(user.get("installation_ids") or [])
61
+ _scope = f"{_n} installation(s)"
62
+ st.caption(f"Signed in as **{user['login']}** — {_scope}.")
63
 
64
  # For admins, show the global Prometheus state. For users, build KPIs from
65
  # their own jobs (which are already scoped server-side).