Admin pages: one shared specification, builders, fragments, caps and live refresh
Adds admin_sections registry, shared admin partials, WorkspaceList, admin CLAUDE.md spec, capped node/flag listings, and api/unit tests enforcing the spec. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -34,6 +34,8 @@ def test_admin_overview_shape(client, admin):
|
||||
listed = {row["uid"]: row for row in body["devices"]}
|
||||
assert listed[device["uid"]]["owner_username"] == owner["username"]
|
||||
assert len(body["devices"]) <= 100
|
||||
assert body["devices_total"] >= len(body["devices"])
|
||||
assert body["flags_total"] >= len(body["flags"])
|
||||
assert "secret_hash" not in listed[device["uid"]]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user