Compare commits
1 Commits
loewy/sess
...
live-table
| Author | SHA1 | Date | |
|---|---|---|---|
| a7ac7c0f31 |
1497
src/index.tsx
1497
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -41,7 +41,6 @@ fragment VideoCardFields on VideoGQL {
|
||||
stream {
|
||||
id
|
||||
lastIntendedSegmentBound
|
||||
uploadCompletionCursor
|
||||
streamSegmentType
|
||||
isCompleted
|
||||
lastSegmentUploadedAt
|
||||
|
||||
@@ -1,21 +1,5 @@
|
||||
query GetMakesLeaderboard(
|
||||
$interval: TimeInterval
|
||||
$when: DateTime
|
||||
$gameType: String
|
||||
$tableSizeMin: Float
|
||||
$tableSizeMax: Float
|
||||
$pocketSizeMin: Float
|
||||
$pocketSizeMax: Float
|
||||
) {
|
||||
getMakesLeaderboard(
|
||||
interval: $interval
|
||||
when: $when
|
||||
gameType: $gameType
|
||||
tableSizeMin: $tableSizeMin
|
||||
tableSizeMax: $tableSizeMax
|
||||
pocketSizeMin: $pocketSizeMin
|
||||
pocketSizeMax: $pocketSizeMax
|
||||
) {
|
||||
query GetMakesLeaderboard($interval: TimeInterval, $when: DateTime) {
|
||||
getMakesLeaderboard(interval: $interval, when: $when) {
|
||||
entries {
|
||||
user {
|
||||
id
|
||||
@@ -29,24 +13,8 @@ query GetMakesLeaderboard(
|
||||
}
|
||||
}
|
||||
|
||||
query GetRunsLeaderboard(
|
||||
$interval: TimeInterval
|
||||
$when: DateTime
|
||||
$gameType: String
|
||||
$tableSizeMin: Float
|
||||
$tableSizeMax: Float
|
||||
$pocketSizeMin: Float
|
||||
$pocketSizeMax: Float
|
||||
) {
|
||||
getLongestRunsLeaderboard(
|
||||
interval: $interval
|
||||
when: $when
|
||||
gameType: $gameType
|
||||
tableSizeMin: $tableSizeMin
|
||||
tableSizeMax: $tableSizeMax
|
||||
pocketSizeMin: $pocketSizeMin
|
||||
pocketSizeMax: $pocketSizeMax
|
||||
) {
|
||||
query GetRunsLeaderboard($interval: TimeInterval, $when: DateTime) {
|
||||
getLongestRunsLeaderboard(interval: $interval, when: $when) {
|
||||
entries {
|
||||
id
|
||||
runLength
|
||||
|
||||
34
src/operations/live_streams.gql
Normal file
34
src/operations/live_streams.gql
Normal file
@@ -0,0 +1,34 @@
|
||||
# Lightweight listing of live (in-progress) streams for pickers like the
|
||||
# Shot Lab "follow a live stream" flow. Selects only what a picker card
|
||||
# needs; intentionally avoids the heavy VideoCardFields fragment.
|
||||
query GetLiveStreams($limit: Int! = 25) {
|
||||
getFeedVideos(
|
||||
limit: $limit
|
||||
filters: { isStreamCompleted: false, requireCursorCompletion: false }
|
||||
includePrivate: MINE
|
||||
feedInput: { allUsers: true }
|
||||
) {
|
||||
videos {
|
||||
id
|
||||
name
|
||||
startTime
|
||||
createdAt
|
||||
screenshotUri
|
||||
elapsedTime
|
||||
owner {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
stream {
|
||||
id
|
||||
isCompleted
|
||||
lastSegmentUploadedAt
|
||||
}
|
||||
}
|
||||
pageInfo {
|
||||
hasNextPage
|
||||
endCursor
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
# Lightweight two-step picker data for Shot Lab's video-first source: the
|
||||
# caller's recent videos (completed or still uploading), then that video's
|
||||
# shots. The stream fields hint at "actively updating" without gating.
|
||||
query GetShotLabVideos($userId: Int!, $limit: Int! = 25) {
|
||||
getFeedVideos(
|
||||
limit: $limit
|
||||
includeCallersVideos: false
|
||||
includePrivate: MINE
|
||||
feedInput: { userId: $userId }
|
||||
) {
|
||||
videos {
|
||||
id
|
||||
name
|
||||
createdAt
|
||||
screenshotUri
|
||||
framesPerSecond
|
||||
totalShots
|
||||
owner {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
stream {
|
||||
id
|
||||
isCompleted
|
||||
lastSegmentUploadedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetRecordedStreamShots($videoId: Int!, $limit: Int! = 200) {
|
||||
getOrderedShots(
|
||||
filterInput: { videoId: [$videoId] }
|
||||
shotsOrdering: { orderings: [{ startFrame: { descending: false } }] }
|
||||
limit: $limit
|
||||
) {
|
||||
shots {
|
||||
id
|
||||
videoId
|
||||
startFrame
|
||||
endFrame
|
||||
serializedShotPaths {
|
||||
b64EncodedBuffer
|
||||
}
|
||||
pocketingIntentionFeatures {
|
||||
make
|
||||
}
|
||||
pocketingIntentionInfo {
|
||||
pocketId
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,100 +0,0 @@
|
||||
query GetSessionCoach($videoId: Int!) {
|
||||
getSessionCoach(videoId: $videoId) {
|
||||
videoId
|
||||
processingId
|
||||
analysisVersion
|
||||
state
|
||||
generatedAt
|
||||
processingStatus
|
||||
ineligibilityReason
|
||||
summary
|
||||
shotCount
|
||||
madeCount
|
||||
missedCount
|
||||
unknownOutcomeCount
|
||||
analyzedShotCount
|
||||
makePercentage
|
||||
primaryCandidate {
|
||||
...SessionCoachCandidateFields
|
||||
}
|
||||
candidates {
|
||||
...SessionCoachCandidateFields
|
||||
}
|
||||
agentGeneration {
|
||||
...SessionCoachGenerationFields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mutation RequestSessionCoachGeneration($videoId: Int!) {
|
||||
requestSessionCoachGeneration(videoId: $videoId) {
|
||||
state
|
||||
agentGeneration {
|
||||
...SessionCoachGenerationFields
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fragment SessionCoachCandidateFields on SessionCoachCandidateGQL {
|
||||
id
|
||||
rank
|
||||
family
|
||||
kind
|
||||
title
|
||||
body
|
||||
action
|
||||
supportingShotIds
|
||||
drillId
|
||||
limitations
|
||||
evidence {
|
||||
bucketKey
|
||||
bucketLabel
|
||||
attemptCount
|
||||
madeCount
|
||||
missedCount
|
||||
makePercentage
|
||||
comparisonAttemptCount
|
||||
comparisonMadeCount
|
||||
comparisonMakePercentage
|
||||
patternShotCount
|
||||
score
|
||||
rankReason
|
||||
}
|
||||
}
|
||||
|
||||
fragment SessionCoachGenerationFields on SessionCoachGenerationGQL {
|
||||
id
|
||||
state
|
||||
createdAt
|
||||
completedAt
|
||||
decision {
|
||||
selectedCandidateId
|
||||
sessionSummary
|
||||
title
|
||||
body
|
||||
suggestedAction
|
||||
drillId
|
||||
drillReason
|
||||
practiceAttemptCount
|
||||
practiceTarget
|
||||
}
|
||||
diagnostics {
|
||||
analysisVersion
|
||||
promptVersion
|
||||
providerKey
|
||||
modelName
|
||||
inputHash
|
||||
attemptCount
|
||||
maxAttempts
|
||||
enqueueCount
|
||||
latencyMs
|
||||
inputTokens
|
||||
cachedInputTokens
|
||||
outputTokens
|
||||
failureCode
|
||||
updatedAt
|
||||
startedAt
|
||||
lastEnqueuedAt
|
||||
abstentionReason
|
||||
}
|
||||
}
|
||||
@@ -9,9 +9,6 @@ query GetTableState(
|
||||
useHomography: $useHomography
|
||||
) {
|
||||
identifierToPosition
|
||||
identifierToColor {
|
||||
hex
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,22 +18,8 @@ query GetLiveTableState($videoId: Int!) {
|
||||
frameIndex
|
||||
tableState {
|
||||
identifierToPosition
|
||||
identifierToColor {
|
||||
hex
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetShotTableState($shotId: Int!) {
|
||||
getShotTableState(shotId: $shotId) {
|
||||
shotId
|
||||
videoId
|
||||
frameIndex
|
||||
tableState {
|
||||
identifierToPosition
|
||||
identifierToColor {
|
||||
hex
|
||||
homography {
|
||||
...HomographyInfo
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
query getUsageStats($days: Int! = 30) {
|
||||
getUsageStats(days: $days) {
|
||||
funnel {
|
||||
freemiumEpoch
|
||||
eraSignups
|
||||
eraPaying
|
||||
activationCohort
|
||||
activationActivated
|
||||
payingUsers
|
||||
newPaid7d
|
||||
newPaid30d
|
||||
retentionPrevActive
|
||||
retentionReturned
|
||||
}
|
||||
cohorts {
|
||||
weekStart
|
||||
signups
|
||||
activated7d
|
||||
paid7d
|
||||
activatedNotPaid7d
|
||||
}
|
||||
totalUsers
|
||||
totalVideos
|
||||
totalShots
|
||||
totalRuns
|
||||
windows {
|
||||
label
|
||||
newUsers
|
||||
activeUsers
|
||||
sessions
|
||||
shots
|
||||
}
|
||||
daily {
|
||||
day
|
||||
newUsers
|
||||
activeUsers
|
||||
sessions
|
||||
shots
|
||||
}
|
||||
processingLast24h {
|
||||
status
|
||||
count
|
||||
}
|
||||
}
|
||||
}
|
||||
3111
src/schema.gql
3111
src/schema.gql
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user