Spaces:
Runtime error
Runtime error
deepagent-bot commited on
Commit ·
bc79872
1
Parent(s): f291c90
ci: sync dashboard from d157313
Browse filesSource: github.com/CouLiBaLy-B/gh-deepagents@d157313104a1240617a78c7b420215a69fefde2e
src/gh_deepagent/dashboard/app.py
CHANGED
|
@@ -54,8 +54,12 @@ render_user_badge()
|
|
| 54 |
|
| 55 |
# ---------- HOME page ----------
|
| 56 |
st.title("Overview")
|
| 57 |
-
|
| 58 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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).
|