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

View File

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

View File

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