Add username + profileImageUri to PlayerClusterGQL
All checks were successful
Tests / Tests (pull_request) Successful in 9s

The labeling UI was falling back to "user N" for any assigned cluster
whose user wasn't the video owner — e.g. an admin re-labels a video
they don't own. With the resolver now resolving usernames for every
confirmed cluster, the FE can render real names regardless of who's
viewing.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Dean Wenstrand
2026-05-11 17:16:28 -07:00
parent 5cf2dbaf01
commit 9250e4c639
3 changed files with 14 additions and 0 deletions

View File

@@ -2701,9 +2701,11 @@ export type PlayerClusterGql = {
clusterId: Scalars["Int"]["output"]; clusterId: Scalars["Int"]["output"];
confirmed: Scalars["Boolean"]["output"]; confirmed: Scalars["Boolean"]["output"];
nShots: Scalars["Int"]["output"]; nShots: Scalars["Int"]["output"];
profileImageUri?: Maybe<Scalars["String"]["output"]>;
score?: Maybe<Scalars["Int"]["output"]>; score?: Maybe<Scalars["Int"]["output"]>;
shots: Array<PlayerClusterShotGql>; shots: Array<PlayerClusterShotGql>;
userId?: Maybe<Scalars["Int"]["output"]>; userId?: Maybe<Scalars["Int"]["output"]>;
username?: Maybe<Scalars["String"]["output"]>;
videoId: Scalars["Int"]["output"]; videoId: Scalars["Int"]["output"];
}; };
@@ -5040,6 +5042,8 @@ export type PlayerClusterFieldsFragment = {
clusterId: number; clusterId: number;
nShots: number; nShots: number;
userId?: number | null; userId?: number | null;
username?: string | null;
profileImageUri?: string | null;
confirmed: boolean; confirmed: boolean;
score?: number | null; score?: number | null;
shots: Array<{ shots: Array<{
@@ -5068,6 +5072,8 @@ export type VideoPlayerClustersQuery = {
clusterId: number; clusterId: number;
nShots: number; nShots: number;
userId?: number | null; userId?: number | null;
username?: string | null;
profileImageUri?: string | null;
confirmed: boolean; confirmed: boolean;
score?: number | null; score?: number | null;
shots: Array<{ shots: Array<{
@@ -5097,6 +5103,8 @@ export type FinalizePlayerAssignmentsMutation = {
clusterId: number; clusterId: number;
nShots: number; nShots: number;
userId?: number | null; userId?: number | null;
username?: string | null;
profileImageUri?: string | null;
confirmed: boolean; confirmed: boolean;
score?: number | null; score?: number | null;
shots: Array<{ shots: Array<{
@@ -6874,6 +6882,8 @@ export const PlayerClusterFieldsFragmentDoc = gql`
clusterId clusterId
nShots nShots
userId userId
username
profileImageUri
confirmed confirmed
score score
shots { shots {

View File

@@ -30,6 +30,8 @@ fragment PlayerClusterFields on PlayerClusterGQL {
clusterId clusterId
nShots nShots
userId userId
username
profileImageUri
confirmed confirmed
score score
shots { shots {

View File

@@ -882,6 +882,8 @@ type PlayerClusterGQL {
clusterId: Int! clusterId: Int!
nShots: Int! nShots: Int!
userId: Int userId: Int
username: String
profileImageUri: String
confirmed: Boolean! confirmed: Boolean!
score: Int score: Int
shots: [PlayerClusterShotGQL!]! shots: [PlayerClusterShotGQL!]!