From 072fdca64131f272d562b0a35563f488258170e5 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Fri, 1 May 2026 17:08:24 +0300 Subject: [PATCH] Replace migrate group solution --- .../match-page/MatchActionPickBanTab.tsx | 1 - .../components/RematchVotePanel.tsx | 30 ++++++++++++++----- .../components/SendouQMatchActionTab.tsx | 10 +++++-- .../components/SendouQMatchTabs.tsx | 17 ++++------- .../loaders/q.match.$id.server.ts | 10 ------- app/features/sendouq/q-constants.ts | 2 +- .../loaders/u.$identifier.seasons.server.ts | 5 +++- locales/da/q.json | 2 ++ locales/de/q.json | 2 ++ locales/en/q.json | 2 ++ locales/es-ES/q.json | 2 ++ locales/es-US/q.json | 2 ++ locales/fr-CA/q.json | 2 ++ locales/fr-EU/q.json | 2 ++ locales/he/q.json | 2 ++ locales/it/q.json | 2 ++ locales/ja/q.json | 2 ++ locales/ko/q.json | 2 ++ locales/nl/q.json | 2 ++ locales/pl/q.json | 2 ++ locales/pt-BR/q.json | 2 ++ locales/ru/q.json | 2 ++ locales/zh/q.json | 2 ++ 23 files changed, 72 insertions(+), 35 deletions(-) diff --git a/app/components/match-page/MatchActionPickBanTab.tsx b/app/components/match-page/MatchActionPickBanTab.tsx index 8bc49883c..32f1116ce 100644 --- a/app/components/match-page/MatchActionPickBanTab.tsx +++ b/app/components/match-page/MatchActionPickBanTab.tsx @@ -266,7 +266,6 @@ function ModeOnlyGrid({ ); } -// xxx: maybe we should just have a shared custom component for stage image + label function StageTile({ option, type, diff --git a/app/features/sendouq-match/components/RematchVotePanel.tsx b/app/features/sendouq-match/components/RematchVotePanel.tsx index 88c042774..2358a7e4f 100644 --- a/app/features/sendouq-match/components/RematchVotePanel.tsx +++ b/app/features/sendouq-match/components/RematchVotePanel.tsx @@ -1,9 +1,10 @@ -import { Check, Clock, X } from "lucide-react"; +import { Check, Clock, RotateCcw, X } from "lucide-react"; import { useTranslation } from "react-i18next"; -import type { FetcherWithComponents } from "react-router"; +import { type FetcherWithComponents, Link } from "react-router"; import { Avatar } from "~/components/Avatar"; import { SendouButton } from "~/components/elements/Button"; import { FormWithConfirm } from "~/components/FormWithConfirm"; +import { SENDOUQ_LOOKING_PAGE } from "~/utils/urls"; import * as RejoinVote from "../core/RejoinVote"; import styles from "./RematchVotePanel.module.css"; @@ -37,10 +38,18 @@ export function RematchVotePanel({ members.map((m) => m.id), ).length; + const voteResolved = RejoinVote.result(votes).type === "RESOLVED"; + const viewerVotedYes = + RejoinVote.userContinueStatus(votes, viewerUserId) === true; + const viewerVotedNo = + RejoinVote.userContinueStatus(votes, viewerUserId) === false; + return (