Release v0.2.34
This commit is contained in:
@@ -167,5 +167,26 @@ func adminPreviewData() map[string]any {
|
||||
"focuses": 300, "selections": 74, "averageDwellMs": 1800},
|
||||
}},
|
||||
"/admin/api/requests": map[string]any{"requests": []any{}},
|
||||
// A prefix among the terms and an unattributed row in the log, because both are
|
||||
// ordinary here and a preview showing neither would not be a preview of this page.
|
||||
"/admin/api/searches": map[string]any{
|
||||
"days": 7, "retentionDays": searchWindowDays,
|
||||
"termLimit": searchTermLimit, "eventLimit": searchEventLimit,
|
||||
"totals": map[string]any{"searches": 214, "queries": 96, "viewers": 2},
|
||||
"terms": []any{
|
||||
map[string]any{"query": "severance", "searches": 18, "viewers": 2, "lastAt": stamp(40 * time.Minute)},
|
||||
map[string]any{"query": "dune", "searches": 11, "viewers": 1, "lastAt": stamp(3 * time.Hour)},
|
||||
map[string]any{"query": "sev", "searches": 9, "viewers": 2, "lastAt": stamp(40 * time.Minute)},
|
||||
map[string]any{"query": "the bear", "searches": 4, "viewers": 1, "lastAt": stamp(2 * 24 * time.Hour)},
|
||||
},
|
||||
"recent": []any{
|
||||
map[string]any{"occurredAt": stamp(40 * time.Minute), "userId": "u-1",
|
||||
"username": "matt", "query": "severance"},
|
||||
map[string]any{"occurredAt": stamp(3 * time.Hour), "userId": "u-2",
|
||||
"username": "sam", "query": "dune"},
|
||||
map[string]any{"occurredAt": stamp(26 * time.Hour), "userId": "u-9",
|
||||
"username": "", "query": "the bear"},
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user