Compare commits
18 Commits
dean/drill
...
loewy/sess
| Author | SHA1 | Date | |
|---|---|---|---|
| 7c795cc5bf | |||
| 17a518429a | |||
| 33eb213cc9 | |||
| 3b66cb3270 | |||
| d67fdd9fee | |||
| d787e5e9a2 | |||
| 1d73b2d67b | |||
|
|
aa731b85fc | ||
| 644f70c3b0 | |||
| 1a95439ed2 | |||
| 5e14cd2201 | |||
|
|
9ec52d9d94 | ||
| 4576b25dae | |||
| 650b3bc13c | |||
| 6d9cb4126e | |||
| feeb5b7038 | |||
| 3340314166 | |||
| 6b8fdd4262 |
1005
src/index.tsx
1005
src/index.tsx
File diff suppressed because it is too large
Load Diff
@@ -55,14 +55,6 @@ fragment VideoCardFields on VideoGQL {
|
||||
name
|
||||
}
|
||||
}
|
||||
drillResult {
|
||||
drillTag
|
||||
longestRun
|
||||
longestRunId
|
||||
prRank
|
||||
isPersonalBest
|
||||
attemptCount
|
||||
}
|
||||
playerSummaries {
|
||||
...PlayerSummaryFields
|
||||
}
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
query GetMakesLeaderboard($interval: TimeInterval, $when: DateTime) {
|
||||
getMakesLeaderboard(interval: $interval, when: $when) {
|
||||
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
|
||||
) {
|
||||
entries {
|
||||
user {
|
||||
id
|
||||
@@ -13,8 +29,24 @@ query GetMakesLeaderboard($interval: TimeInterval, $when: DateTime) {
|
||||
}
|
||||
}
|
||||
|
||||
query GetRunsLeaderboard($interval: TimeInterval, $when: DateTime) {
|
||||
getLongestRunsLeaderboard(interval: $interval, when: $when) {
|
||||
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
|
||||
) {
|
||||
entries {
|
||||
id
|
||||
runLength
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
# 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,10 +1,12 @@
|
||||
# Lightweight two-step picker data for loading a recorded shot into Shot Lab.
|
||||
query GetRecordedStreams($limit: Int! = 25) {
|
||||
# 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
|
||||
filters: { isStreamCompleted: true, excludeVideosWithNoShots: true }
|
||||
includeCallersVideos: false
|
||||
includePrivate: MINE
|
||||
feedInput: { allUsers: true }
|
||||
feedInput: { userId: $userId }
|
||||
) {
|
||||
videos {
|
||||
id
|
||||
@@ -18,6 +20,11 @@ query GetRecordedStreams($limit: Int! = 25) {
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
stream {
|
||||
id
|
||||
isCompleted
|
||||
lastSegmentUploadedAt
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -36,26 +43,11 @@ query GetRecordedStreamShots($videoId: Int!, $limit: Int! = 200) {
|
||||
serializedShotPaths {
|
||||
b64EncodedBuffer
|
||||
}
|
||||
cueObjectFeatures {
|
||||
cueObjectDistance
|
||||
cueObjectAngle
|
||||
cueBallSpeed
|
||||
shotDirection
|
||||
spinType
|
||||
}
|
||||
pocketingIntentionFeatures {
|
||||
make
|
||||
targetPocketDistance
|
||||
targetPocketAngle
|
||||
targetPocketAngleDirection
|
||||
marginOfErrorInDegrees
|
||||
intendedPocketType
|
||||
difficulty
|
||||
}
|
||||
pocketingIntentionInfo {
|
||||
ballId
|
||||
pocketId
|
||||
pathMetadataIndex
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
100
src/operations/session-coach.gql
Normal file
100
src/operations/session-coach.gql
Normal file
@@ -0,0 +1,100 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
3190
src/schema.gql
3190
src/schema.gql
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user