From 67ef99a27b673cc2b50705dda96b780487971ef5 Mon Sep 17 00:00:00 2001 From: nairobi <61069237+nyairobi@users.noreply.github.com> Date: Sun, 4 May 2025 13:40:09 +0000 Subject: [PATCH] fix: add missing rating name overrides (#1291) --- .../games/_game/_playtype/ScoresPage.tsx | 4 +++- .../_game/_playtype/UGPTSettingsPage.tsx | 20 +++++++++++++++---- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/client/src/app/pages/dashboard/users/games/_game/_playtype/ScoresPage.tsx b/client/src/app/pages/dashboard/users/games/_game/_playtype/ScoresPage.tsx index f16f477c2..2d39089be 100644 --- a/client/src/app/pages/dashboard/users/games/_game/_playtype/ScoresPage.tsx +++ b/client/src/app/pages/dashboard/users/games/_game/_playtype/ScoresPage.tsx @@ -130,7 +130,9 @@ function AlgSelector({
Best 100 PBs according to
setAlg(e.target.value as any)}> {Object.keys(gptConfig.scoreRatingAlgs).map((e) => ( - + ))} diff --git a/client/src/app/pages/dashboard/users/games/_game/_playtype/UGPTSettingsPage.tsx b/client/src/app/pages/dashboard/users/games/_game/_playtype/UGPTSettingsPage.tsx index 2b309a672..d14b29334 100644 --- a/client/src/app/pages/dashboard/users/games/_game/_playtype/UGPTSettingsPage.tsx +++ b/client/src/app/pages/dashboard/users/games/_game/_playtype/UGPTSettingsPage.tsx @@ -1,5 +1,11 @@ import { APIFetchV1 } from "util/api"; -import { ToFixedFloor, UppercaseFirst } from "util/misc"; +import { + FormatGPTProfileRatingName, + FormatGPTScoreRatingName, + FormatGPTSessionRatingName, + ToFixedFloor, + UppercaseFirst, +} from "util/misc"; import { ErrorPage } from "app/pages/ErrorPage"; import useSetSubheader from "components/layout/header/useSetSubheader"; import Card from "components/layout/page/Card"; @@ -178,7 +184,9 @@ function PreferencesForm({ reqUser, game, playtype }: UGPT) { onChange={formik.handleChange} > {Object.keys(gptConfig.scoreRatingAlgs).map((e) => ( - + ))} @@ -196,7 +204,9 @@ function PreferencesForm({ reqUser, game, playtype }: UGPT) { onChange={formik.handleChange} > {Object.keys(gptConfig.sessionRatingAlgs).map((e) => ( - + ))} @@ -214,7 +224,9 @@ function PreferencesForm({ reqUser, game, playtype }: UGPT) { onChange={formik.handleChange} > {Object.keys(gptConfig.profileRatingAlgs).map((e) => ( - + ))}