0.2.45 - Server side git commits

This commit is contained in:
ponzischeme89
2026-08-10 20:39:26 +12:00
parent 56c1167382
commit 4c47a5f8a0
12 changed files with 321 additions and 132 deletions
+22
View File
@@ -166,6 +166,28 @@ func adminPreviewData() map[string]any {
map[string]any{"rowId": "favorites", "title": "Favourites", "impressions": 1610,
"focuses": 300, "selections": 74, "averageDwellMs": 1800},
}},
"/admin/api/journeys": map[string]any{
"days": 30, "retentionDays": 90,
"stats": map[string]any{"events": 184, "journeys": 28, "viewers": 2,
"completed": 21, "abandoned": 5, "active": 2, "averageSteps": 6.6,
"averageTimeMs": 1140000, "completionRate": 0.81},
"users": []any{
map[string]any{"userId": "u-1", "username": "matt", "events": 120, "journeys": 18, "lastActiveAt": stamp(9 * time.Minute)},
map[string]any{"userId": "u-2", "username": "sam", "events": 64, "journeys": 10, "lastActiveAt": stamp(3 * time.Hour)},
},
"features": []any{
map[string]any{"feature": "playback", "uses": 31, "lastUsedAt": stamp(9 * time.Minute)},
map[string]any{"feature": "search", "uses": 12, "lastUsedAt": stamp(3 * time.Hour)},
},
"actions": []any{
map[string]any{"category": "content", "action": "open", "events": 44, "journeys": 22},
map[string]any{"category": "playback", "action": "start", "events": 24, "journeys": 18},
},
"paths": []any{
map[string]any{"from": "home", "to": "details", "count": 31},
map[string]any{"from": "details", "to": "playback", "count": 18},
},
},
"/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.