Compare commits

..

4 Commits

Author SHA1 Message Date
ef4782fc14 Select detected ball colors for Shot Lab
All checks were successful
Tests / Tests (pull_request) Successful in 33s
2026-07-10 00:12:06 -07:00
905a1ca6db Merge pull request 'Add RGBColorGQL and identifierToColor to TableStateGQL' (#290) from shot-lab-ball-colors into master 2026-07-10 03:36:33 +00:00
6f63189703 Add RGBColorGQL and identifierToColor to TableStateGQL
All checks were successful
Tests / Tests (pull_request) Successful in 12s
Regenerated from backend: Shot Lab table-state endpoints now expose a
per-ball dominant color (RGB + hex) index-aligned with ball positions.
2026-07-09 20:35:48 -07:00
958057764c Merge pull request 'Add getLiveTableState query and live-stream operations' (#288) from live-table-state into master 2026-07-10 02:12:31 +00:00
3 changed files with 37 additions and 0 deletions

View File

@@ -3338,6 +3338,14 @@ export type QuotaStatusGql = {
tierName: Scalars["String"]["output"];
};
export type RgbColorGql = {
__typename?: "RGBColorGQL";
b: Scalars["Int"]["output"];
g: Scalars["Int"]["output"];
hex: Scalars["String"]["output"];
r: Scalars["Int"]["output"];
};
export enum ReactionEnum {
Bullseye = "BULLSEYE",
Heart = "HEART",
@@ -3803,6 +3811,7 @@ export type SyncAppleSubscriptionResultGql = {
export type TableStateGql = {
__typename?: "TableStateGQL";
homography?: Maybe<HomographyInfoGql>;
identifierToColor: Array<Maybe<RgbColorGql>>;
identifierToPosition: Array<Array<Scalars["Float"]["output"]>>;
};
@@ -6736,6 +6745,10 @@ export type GetTableStateQuery = {
getTableState: {
__typename?: "TableStateGQL";
identifierToPosition: Array<Array<number>>;
identifierToColor: Array<{
__typename?: "RGBColorGQL";
hex: string;
} | null>;
};
};
@@ -6752,6 +6765,10 @@ export type GetLiveTableStateQuery = {
tableState: {
__typename?: "TableStateGQL";
identifierToPosition: Array<Array<number>>;
identifierToColor: Array<{
__typename?: "RGBColorGQL";
hex: string;
} | null>;
homography?: {
__typename?: "HomographyInfoGQL";
id: number;
@@ -14417,6 +14434,9 @@ export const GetTableStateDocument = gql`
useHomography: $useHomography
) {
identifierToPosition
identifierToColor {
hex
}
}
}
`;
@@ -14495,6 +14515,9 @@ export const GetLiveTableStateDocument = gql`
frameIndex
tableState {
identifierToPosition
identifierToColor {
hex
}
homography {
...HomographyInfo
}

View File

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

View File

@@ -1020,6 +1020,14 @@ type PlayerClusterShotGQL {
type TableStateGQL {
identifierToPosition: [[Float!]!]!
homography: HomographyInfoGQL
identifierToColor: [RGBColorGQL]!
}
type RGBColorGQL {
r: Int!
g: Int!
b: Int!
hex: String!
}
input HomographyInputGQL {