Compare commits

..

8 Commits

Author SHA1 Message Date
1b46160e95 Rename social auth contract to external sign-in
All checks were successful
Tests / Tests (pull_request) Successful in 10s
2026-08-17 23:46:44 -07:00
33707523f0 Add social SSO auth contract
All checks were successful
Tests / Tests (pull_request) Successful in 11s
2026-08-14 17:18:07 -07:00
308c60c93b Merge pull request 'Rename Session Coach feedback enums' (#323) from loewy/session-coach-feedback-enums into master
Reviewed-on: #323
2026-08-10 19:56:23 +00:00
19ba43ad6d Rename Session Coach feedback enums
All checks were successful
Tests / Tests (pull_request) Successful in 10s
2026-08-10 12:26:43 -07:00
03b565dc7d Merge pull request 'Let shot filters select a single player within a video' (#322) from dean/filter-by-player-index into master
Reviewed-on: #322
2026-08-06 20:21:37 +00:00
Dean Wenstrand
901f4222a4 Let shot filters select a single player within a video
All checks were successful
Tests / Tests (pull_request) Successful in 11s
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 13:14:00 -07:00
0f6e7b28d4 Merge pull request 'Return the shot's start frame image from getShotTableState' (#321) from ivan/shot-table-state-frame-image into master 2026-08-06 19:11:59 +00:00
9b6b08c1ec Return the shot's start frame image from getShotTableState
All checks were successful
Tests / Tests (pull_request) Successful in 12s
Shot Lab was showing the video's single thumbnail next to every shot's
layout. The backend now returns the frame the layout was detected in as
a base64 JPEG (frameImage), selected by the GetShotTableState operation.
Also dedupes ShareLinkGQL/CreateShotShareLinkInput, which appeared twice
in the committed schema after a bad merge.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-06 09:56:38 -07:00
3 changed files with 116 additions and 17 deletions

View File

@@ -88,6 +88,26 @@ export type AppleIapSubscriptionOptionsGql = {
productIds: Array<Scalars["String"]["output"]>;
};
export type AuthBootstrapGql = {
__typename?: "AuthBootstrapGQL";
status: AuthBootstrapStatusEnum;
user?: Maybe<UserGql>;
};
export enum AuthBootstrapStatusEnum {
NeedsProfile = "NEEDS_PROFILE",
Registered = "REGISTERED",
RegistrationDisabled = "REGISTRATION_DISABLED",
}
export enum AuthRegistrationErrorEnum {
InvalidUsername = "INVALID_USERNAME",
RegistrationDisabled = "REGISTRATION_DISABLED",
UnsupportedProvider = "UNSUPPORTED_PROVIDER",
UsernameUnavailable = "USERNAME_UNAVAILABLE",
VerifiedEmailRequired = "VERIFIED_EMAIL_REQUIRED",
}
export type BallTrajectoryGql = {
__typename?: "BallTrajectoryGQL";
ballId: Scalars["Int"]["output"];
@@ -279,6 +299,12 @@ export type CommentGql = {
user: UserGql;
};
export type CompleteAuthRegistrationGql = {
__typename?: "CompleteAuthRegistrationGQL";
errorCode?: Maybe<AuthRegistrationErrorEnum>;
user?: Maybe<UserGql>;
};
export type CountLeaderboardGql = {
__typename?: "CountLeaderboardGQL";
entries: Array<UserShotCountEntry>;
@@ -383,6 +409,7 @@ export type DeployedConfigGql = {
defaultAndroidRecordingFormat: StreamSegmentTypeEnum;
devMode: Scalars["Boolean"]["output"];
environment: Scalars["String"]["output"];
externalSignInProviderAvailability: Array<ExternalSignInProviderAvailability>;
firebase: Scalars["Boolean"]["output"];
minimumAllowedAppVersion: Scalars["String"]["output"];
quotaEnforcementEnabled: Scalars["Boolean"]["output"];
@@ -445,6 +472,25 @@ export type EnumAggregation = {
feature: Scalars["String"]["input"];
};
export enum ExternalSignInPlatform {
Android = "ANDROID",
Ios = "IOS",
Web = "WEB",
}
export enum ExternalSignInProvider {
Apple = "APPLE",
Facebook = "FACEBOOK",
Google = "GOOGLE",
}
export type ExternalSignInProviderAvailability = {
__typename?: "ExternalSignInProviderAvailability";
enabled: Scalars["Boolean"]["output"];
platform: ExternalSignInPlatform;
provider: ExternalSignInProvider;
};
export type FilterInput =
| {
andFilters: Array<FilterInput>;
@@ -2618,6 +2664,7 @@ export type Mutation = {
cancelCameraClaimSession: CameraClaimSession;
cancelSubscription: UserSubscriptionStatusGql;
commentOnVideo: Scalars["Boolean"]["output"];
completeAuthRegistration: CompleteAuthRegistrationGql;
createBucketSet: BucketSetGql;
createCameraClaimSession: CameraClaimSession;
createChallenge: Challenge;
@@ -2702,6 +2749,11 @@ export type MutationCommentOnVideoArgs = {
videoId: Scalars["Int"]["input"];
};
export type MutationCompleteAuthRegistrationArgs = {
agreesToMarketing: Scalars["Boolean"]["input"];
username: Scalars["String"]["input"];
};
export type MutationCreateBucketSetArgs = {
params: CreateBucketSetInput;
};
@@ -3201,6 +3253,7 @@ export type Query = {
doesUsernameExist: Scalars["Boolean"]["output"];
getAggregatedShotMetrics: Array<AggregateResultGql>;
getAppleAppAccountToken: Scalars["String"]["output"];
getAuthBootstrap: AuthBootstrapGql;
getAvailableSubscriptionOptions: StripeSubscriptionOptionsGql;
getBucketSet?: Maybe<BucketSetGql>;
getDeployedConfig: DeployedConfigGql;
@@ -3795,10 +3848,10 @@ export type SessionCoachFeedbackGql = {
};
export enum SessionCoachFeedbackResponseEnum {
AlreadyWorkingOnThis = "ALREADY_WORKING_ON_THIS",
Helpful = "HELPFUL",
NotEnoughEvidence = "NOT_ENOUGH_EVIDENCE",
WrongFocus = "WRONG_FOCUS",
NotInsightful = "NOT_INSIGHTFUL",
NotRelevant = "NOT_RELEVANT",
}
export type SessionCoachGql = {
@@ -3969,6 +4022,7 @@ export type ShotProjectionGql = {
export type ShotTableStateGql = {
__typename?: "ShotTableStateGQL";
frameImage?: Maybe<Scalars["String"]["output"]>;
frameIndex: Scalars["Int"]["output"];
shotId: Scalars["Int"]["output"];
tableState: TableStateGql;
@@ -7822,6 +7876,7 @@ export type GetShotTableStateQuery = {
shotId: number;
videoId: number;
frameIndex: number;
frameImage?: string | null;
tableState: {
__typename?: "TableStateGQL";
identifierToPosition: Array<Array<number>>;
@@ -16602,6 +16657,7 @@ export const GetShotTableStateDocument = gql`
shotId
videoId
frameIndex
frameImage
tableState {
...TableStateLayoutFields
}

View File

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

View File

@@ -42,6 +42,25 @@ type AppleIapSubscriptionOptionsGQL {
productIds: [String!]!
}
type AuthBootstrapGQL {
status: AuthBootstrapStatusEnum!
user: UserGQL
}
enum AuthBootstrapStatusEnum {
REGISTERED
NEEDS_PROFILE
REGISTRATION_DISABLED
}
enum AuthRegistrationErrorEnum {
USERNAME_UNAVAILABLE
REGISTRATION_DISABLED
VERIFIED_EMAIL_REQUIRED
INVALID_USERNAME
UNSUPPORTED_PROVIDER
}
type BallTrajectoryGQL {
ballId: Int!
points: [TrajectoryPointGQL!]!
@@ -225,6 +244,11 @@ type CommentGQL {
replyToCommentId: Int
}
type CompleteAuthRegistrationGQL {
user: UserGQL
errorCode: AuthRegistrationErrorEnum
}
type CountLeaderboardGQL {
entries: [UserShotCountEntry!]!
}
@@ -250,11 +274,6 @@ input CreatePoolHallCameraInput {
claimTermsText: String = null
}
input CreateShotShareLinkInput {
shotIds: [Int!]!
paddingSeconds: Float = null
}
input CreatePoolHallInput {
name: String!
address: String = null
@@ -342,6 +361,7 @@ type DeployedConfigGQL {
storageLimitEnforcementEnabled: Boolean!
capabilityEnforcementEnabled: Boolean!
bannerMessages: [BannerGQL!]!
externalSignInProviderAvailability: [ExternalSignInProviderAvailability!]!
defaultAndroidRecordingFormat: StreamSegmentTypeEnum!
bucketUrl: String!
}
@@ -398,6 +418,24 @@ input EnumAggregation {
feature: String!
}
enum ExternalSignInPlatform {
WEB
IOS
ANDROID
}
enum ExternalSignInProvider {
GOOGLE
APPLE
FACEBOOK
}
type ExternalSignInProviderAvailability {
provider: ExternalSignInProvider!
platform: ExternalSignInPlatform!
enabled: Boolean!
}
input FilterInput @oneOf {
andFilters: [FilterInput!]
orFilters: [FilterInput!]
@@ -743,6 +781,10 @@ type Mutation {
response: SessionCoachFeedbackResponseEnum!
): SessionCoachFeedbackGQL!
requestSessionCoachGeneration(videoId: Int!): SessionCoachGQL!
completeAuthRegistration(
username: String!
agreesToMarketing: Boolean!
): CompleteAuthRegistrationGQL!
getProfileImageUploadLink(
fileExt: String = ".png"
): GetProfileUploadLinkReturn!
@@ -1124,6 +1166,7 @@ type Query {
): [ShotGQL!]!
getShotsByIds(ids: [Int!]!): [ShotGQL!]!
getUsageStats(days: Int! = 30): UsageStatsGQL!
getAuthBootstrap: AuthBootstrapGQL!
getUser(userId: Int!): UserGQL
doesUsernameExist(candidateUsername: String!): Boolean!
getLoggedInUser: UserGQL
@@ -1412,8 +1455,8 @@ type SessionCoachFeedbackGQL {
enum SessionCoachFeedbackResponseEnum {
HELPFUL
WRONG_FOCUS
ALREADY_WORKING_ON_THIS
NOT_RELEVANT
NOT_INSIGHTFUL
NOT_ENOUGH_EVIDENCE
}
@@ -1574,6 +1617,7 @@ type ShotTableStateGQL {
videoId: Int!
frameIndex: Int!
tableState: TableStateGQL!
frameImage: String
}
input ShotsOrderingComponent @oneOf {
@@ -1967,11 +2011,6 @@ type UserSubscriptionStatusGQL {
stripeSubscriptionId: String
}
type ShareLinkGQL {
slug: String!
url: String!
}
type VideoExportJobGQL {
id: Int!
videoId: Int!