Sign in

Search issue titles and bodies, change requests and comments. Private repositories you cannot read are not included.

vole
Clone

Read only, no credentials:

https://rodent.software/git/vole.git

Write over SSH with a registered key:

git clone ssh://git@0.0.0.0:2222/vole.git

A free and open-source forge that lives in your Git repo.

Summarize accounts, activity, and configuration on the Admin overview

0db980ee6b820127a0310be661b5d2c98fcdde92 · Keenan Nemetz · 4d ago · parent 43e681d8

Summarize accounts, activity, and configuration on the Admin overview

The overview is the whole admin surface at a glance now, so it repeats the
head of the other tabs: active people, bots, instance admins, and retired
accounts from the roster; the newest audit records with their detail and a
link into the log; and the configuration warnings, including a browser that
cannot sign anyone in.

Refs #198 (01M6MK0NNZ2XR1D5TQKNWYT4HN).

server/status_test.go +7−6

@@ -27,19 +27,20 @@ func TestAdminOverviewSummarizesTheInstance(t *testing.T) {
27 27 if code != 200 {
28 28 t.Fatalf("status page = %d:\n%s", code, body)
29 29 }
30 for _, want := range []string{"Overview", "Storage", "Runners", "Configuration", "Storage used", "Free space", "LFS objects", "Page views", "Unique users", "Today (UTC)"} {
30 for _, want := range []string{
31 "Overview", "Storage", "Runners", "Configuration", "Storage used", "Free space",
32 "LFS objects", "Page views", "Unique users", "Today (UTC)",
33 "Accounts", "Active people", "Recent admin activity", "Read the full audit log",
34 } {
31 35 if !strings.Contains(body, want) {
32 36 t.Fatalf("status overview does not show %q:\n%s", want, body)
33 37 }
34 38 }
35 for _, gone := range []string{"Service health", "All core services are responding", "identity", "Runners and queue", "Instance and access"} {
39 for _, gone := range []string{"Service health", "All core services are responding", "Runners and queue", "Instance and access"} {
36 40 if strings.Contains(body, gone) {
37 t.Fatalf("status overview shows content from another tab or removed health text %q:\n%s", gone, body)
41 t.Fatalf("status overview shows a section heading that belongs to another tab %q:\n%s", gone, body)
38 42 }
39 43 }
40 if strings.Contains(body, f.repo) {
41 t.Fatalf("status page named a repository:\n%s", body)
42 }
43 44 }
44 45
45 46 func TestAdminConfigurationShowsToAdmins(t *testing.T) {