feat(query): include session totals and stable framework names

This commit is contained in:
William Valentin
2026-05-20 17:35:56 -07:00
parent db73eca6fd
commit 78376bdd83
5 changed files with 82 additions and 3 deletions
+9
View File
@@ -207,6 +207,15 @@ func main() {
if nextCursor != nil {
resp["next_cursor"] = nextCursor.Format(time.RFC3339Nano)
}
// Include total count on the first page (no cursor) so the UI can show "X of Y"
if f.Cursor == nil {
total, err := db.CountSessions(r.Context(), f)
if err == nil {
resp["total"] = total
}
}
httpx.WriteJSON(w, http.StatusOK, resp)
})