Compare commits

..

2 Commits

Author SHA1 Message Date
Dean Wenstrand
f40c223dfc Add getUsageStats operation + hook
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-11 10:30:13 -07:00
Dean Wenstrand
4758c95149 Add getUsageStats admin query types
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-11 10:29:07 -07:00
4 changed files with 5300 additions and 14485 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -9,9 +9,6 @@ query GetTableState(
useHomography: $useHomography useHomography: $useHomography
) { ) {
identifierToPosition identifierToPosition
identifierToColor {
hex
}
} }
} }
@@ -21,9 +18,6 @@ query GetLiveTableState($videoId: Int!) {
frameIndex frameIndex
tableState { tableState {
identifierToPosition identifierToPosition
identifierToColor {
hex
}
homography { homography {
...HomographyInfo ...HomographyInfo
} }

View File

@@ -1,17 +1,5 @@
query getUsageStats($days: Int! = 30) { query getUsageStats($days: Int! = 30) {
getUsageStats(days: $days) { getUsageStats(days: $days) {
funnel {
freemiumEpoch
eraSignups
eraPaying
activationCohort
activationActivated
payingUsers
newPaid7d
newPaid30d
retentionPrevActive
retentionReturned
}
totalUsers totalUsers
totalVideos totalVideos
totalShots totalShots

View File

@@ -1170,7 +1170,6 @@ input CreatedAfter @oneOf {
} }
type UsageStatsGQL { type UsageStatsGQL {
funnel: FunnelStatsGQL!
totalUsers: Int! totalUsers: Int!
totalVideos: Int! totalVideos: Int!
totalShots: Int! totalShots: Int!
@@ -1180,19 +1179,6 @@ type UsageStatsGQL {
processingLast24h: [ProcessingStatusCountGQL!]! processingLast24h: [ProcessingStatusCountGQL!]!
} }
type FunnelStatsGQL {
freemiumEpoch: Date!
eraSignups: Int!
eraPaying: Int!
activationCohort: Int!
activationActivated: Int!
payingUsers: Int!
newPaid7d: Int!
newPaid30d: Int!
retentionPrevActive: Int!
retentionReturned: Int!
}
type UsageStatsWindowGQL { type UsageStatsWindowGQL {
label: String! label: String!
newUsers: Int! newUsers: Int!