Compare commits

..

1 Commits

Author SHA1 Message Date
Dean Wenstrand
f724ec6c0d Let shot filters select a single player within a video
Adds playerIndex to FilterInput, backing ShooterIdentity.player_index --
the cluster-assigned shooter, 0-based and stable only within one video.

Deliberately separate from userId, which is populated only once a cluster
has been confirmed against a registered account. Multiplayer sessions are
usually played against someone without a Railbird login, so filtering by
userId cannot express "the other player" in the common case; the cluster
index always can.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-06 11:08:26 -07:00
3 changed files with 17 additions and 15 deletions

View File

@@ -3795,10 +3795,10 @@ export type SessionCoachFeedbackGql = {
}; };
export enum SessionCoachFeedbackResponseEnum { export enum SessionCoachFeedbackResponseEnum {
AlreadyWorkingOnThis = "ALREADY_WORKING_ON_THIS",
Helpful = "HELPFUL", Helpful = "HELPFUL",
NotEnoughEvidence = "NOT_ENOUGH_EVIDENCE", NotEnoughEvidence = "NOT_ENOUGH_EVIDENCE",
NotInsightful = "NOT_INSIGHTFUL", WrongFocus = "WRONG_FOCUS",
NotRelevant = "NOT_RELEVANT",
} }
export type SessionCoachGql = { export type SessionCoachGql = {
@@ -3969,7 +3969,6 @@ export type ShotProjectionGql = {
export type ShotTableStateGql = { export type ShotTableStateGql = {
__typename?: "ShotTableStateGQL"; __typename?: "ShotTableStateGQL";
frameImage?: Maybe<Scalars["String"]["output"]>;
frameIndex: Scalars["Int"]["output"]; frameIndex: Scalars["Int"]["output"];
shotId: Scalars["Int"]["output"]; shotId: Scalars["Int"]["output"];
tableState: TableStateGql; tableState: TableStateGql;
@@ -7823,7 +7822,6 @@ export type GetShotTableStateQuery = {
shotId: number; shotId: number;
videoId: number; videoId: number;
frameIndex: number; frameIndex: number;
frameImage?: string | null;
tableState: { tableState: {
__typename?: "TableStateGQL"; __typename?: "TableStateGQL";
identifierToPosition: Array<Array<number>>; identifierToPosition: Array<Array<number>>;
@@ -16604,7 +16602,6 @@ export const GetShotTableStateDocument = gql`
shotId shotId
videoId videoId
frameIndex frameIndex
frameImage
tableState { tableState {
...TableStateLayoutFields ...TableStateLayoutFields
} }

View File

@@ -44,10 +44,9 @@ fragment DetectionPocketPointFields on PocketPointsGQL {
# positions. Boxes, pocket boxes, and source points share the crop's # positions. Boxes, pocket boxes, and source points share the crop's
# coordinate space; the crop locates that space in the full frame. # coordinate space; the crop locates that space in the full frame.
# #
# Only the photo query selects this. The shot query returns its source # Only the photo query selects this. The live and shot queries read a
# frame (frameImage) but positions there come from the stored homography, # frame out of a video the app never holds, so there is no image to
# so there are no fresh boxes to draw; the live query returns no image at # overlay, and getLiveTableState is polled every five seconds.
# all and is polled every five seconds.
fragment TableStateDetectionFields on TableStateGQL { fragment TableStateDetectionFields on TableStateGQL {
identifierToBox { identifierToBox {
...DetectionBoxFields ...DetectionBoxFields
@@ -98,9 +97,6 @@ query GetShotTableState($shotId: Int!) {
shotId shotId
videoId videoId
frameIndex frameIndex
# The b64 JPEG frame the layout was detected in, so the client can show
# the shot's actual starting frame instead of the video's thumbnail.
frameImage
tableState { tableState {
...TableStateLayoutFields ...TableStateLayoutFields
} }

View File

@@ -250,6 +250,11 @@ input CreatePoolHallCameraInput {
claimTermsText: String = null claimTermsText: String = null
} }
input CreateShotShareLinkInput {
shotIds: [Int!]!
paddingSeconds: Float = null
}
input CreatePoolHallInput { input CreatePoolHallInput {
name: String! name: String!
address: String = null address: String = null
@@ -1407,8 +1412,8 @@ type SessionCoachFeedbackGQL {
enum SessionCoachFeedbackResponseEnum { enum SessionCoachFeedbackResponseEnum {
HELPFUL HELPFUL
NOT_RELEVANT WRONG_FOCUS
NOT_INSIGHTFUL ALREADY_WORKING_ON_THIS
NOT_ENOUGH_EVIDENCE NOT_ENOUGH_EVIDENCE
} }
@@ -1569,7 +1574,6 @@ type ShotTableStateGQL {
videoId: Int! videoId: Int!
frameIndex: Int! frameIndex: Int!
tableState: TableStateGQL! tableState: TableStateGQL!
frameImage: String
} }
input ShotsOrderingComponent @oneOf { input ShotsOrderingComponent @oneOf {
@@ -1963,6 +1967,11 @@ type UserSubscriptionStatusGQL {
stripeSubscriptionId: String stripeSubscriptionId: String
} }
type ShareLinkGQL {
slug: String!
url: String!
}
type VideoExportJobGQL { type VideoExportJobGQL {
id: Int! id: Int!
videoId: Int! videoId: Int!