From fb22fb698a00eb3386771db3f5edb5e3594adeea Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Thu, 6 Aug 2026 15:31:17 +0300 Subject: [PATCH] Remove pronouns from GroupCards --- .../sendouq-match/SQMatchRepository.server.ts | 1 - app/features/sendouq/SQGroupRepository.server.ts | 1 - .../sendouq/components/GroupCard.browser.test.tsx | 2 -- app/features/sendouq/components/GroupCard.tsx | 5 ----- .../TournamentLFGRepository.server.ts | 1 - .../tournament-lfg/components/LFGGroupCard.tsx | 7 ------- .../tournament-lfg/loaders/to.$id.looking.server.ts | 13 ------------- 7 files changed, 30 deletions(-) diff --git a/app/features/sendouq-match/SQMatchRepository.server.ts b/app/features/sendouq-match/SQMatchRepository.server.ts index b96c5414a..e9ef28fea 100644 --- a/app/features/sendouq-match/SQMatchRepository.server.ts +++ b/app/features/sendouq-match/SQMatchRepository.server.ts @@ -157,7 +157,6 @@ function groupWithTeamAndMembers( "GroupMember.role", "GroupMember.note", "User.inGameName", - "User.pronouns", "User.vc", "User.languages", "User.noScreen", diff --git a/app/features/sendouq/SQGroupRepository.server.ts b/app/features/sendouq/SQGroupRepository.server.ts index f4c2184eb..4ae632291 100644 --- a/app/features/sendouq/SQGroupRepository.server.ts +++ b/app/features/sendouq/SQGroupRepository.server.ts @@ -75,7 +75,6 @@ export async function findCurrentGroups() { "Group.status", "GroupMatch.id as matchId", commonUserMembersAgg(eb, { - pronouns: eb.ref("User.pronouns"), mapModePreferences: eb.ref("User.mapModePreferences"), noScreen: eb.ref("User.noScreen"), role: eb.ref("GroupMember.role"), diff --git a/app/features/sendouq/components/GroupCard.browser.test.tsx b/app/features/sendouq/components/GroupCard.browser.test.tsx index 4b58eb9b9..623e506a0 100644 --- a/app/features/sendouq/components/GroupCard.browser.test.tsx +++ b/app/features/sendouq/components/GroupCard.browser.test.tsx @@ -32,7 +32,6 @@ function createMember(overrides: Partial = {}): SQGroupMember { friendCode: null, inGameName: null, note: null, - pronouns: null, skillDifference: undefined, noScreen: undefined, @@ -84,7 +83,6 @@ function createOwnGroupMember( friendCode: null, inGameName: null, note: null, - pronouns: null, skillDifference: undefined, noScreen: undefined, diff --git a/app/features/sendouq/components/GroupCard.tsx b/app/features/sendouq/components/GroupCard.tsx index ead7671e5..946168960 100644 --- a/app/features/sendouq/components/GroupCard.tsx +++ b/app/features/sendouq/components/GroupCard.tsx @@ -291,11 +291,6 @@ function GroupMember({ - {member.pronouns ? ( - - {member.pronouns.subject}/{member.pronouns.object} - - ) : null}
{member.username} - {member.pronouns ? ( - - {member.pronouns.subject}/{member.pronouns.object} - - ) : null}
{showActions || (!showActions && member.role === "OWNER") ? ( diff --git a/app/features/tournament-lfg/loaders/to.$id.looking.server.ts b/app/features/tournament-lfg/loaders/to.$id.looking.server.ts index 377236cad..4dc428394 100644 --- a/app/features/tournament-lfg/loaders/to.$id.looking.server.ts +++ b/app/features/tournament-lfg/loaders/to.$id.looking.server.ts @@ -1,6 +1,5 @@ import type { LoaderFunctionArgs } from "react-router"; import * as R from "remeda"; -import type { Pronouns } from "~/db/tables-json"; import type { getUser } from "~/features/auth/core/user.server"; import { tournamentFromDBCached, @@ -183,7 +182,6 @@ async function resolveOwnTeam({ customUrl: m.customUrl, languages: [], vc: null, - pronouns: null, role: m.role, isStayAsSub: false, weapons: null, @@ -210,7 +208,6 @@ function transformMembers( const languages = m.languages ?? []; const weapons = parseWeapons(m.weapons); - const pronouns = parsePronouns(m.pronouns); return { id: m.id, @@ -221,7 +218,6 @@ function transformMembers( customUrl: m.customUrl, languages, vc: m.vc, - pronouns, role: m.role, isStayAsSub: m.isStayAsSub === 1, weapons, @@ -252,12 +248,3 @@ function parseWeapons(raw: unknown): Array<{ }), ); } - -function parsePronouns(raw: unknown): Pronouns | null { - if (!raw) return null; - - const parsed = typeof raw === "string" ? JSON.parse(raw) : raw; - if (!parsed || typeof parsed !== "object") return null; - - return parsed as Pronouns; -}