From e3a3190f9e2914aa419769a66da12ff9f752e401 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Sun, 12 Dec 2021 15:38:37 +0000 Subject: [PATCH] Add the option to change your score bucket --- .../_game/_playtype/UGPTSettingsPage.tsx | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) 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 36a704cc6..20b2ef33d 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 @@ -10,6 +10,7 @@ import useQueryString from "components/util/useQueryString"; import { UGPTSettingsContext } from "context/UGPTSettingsContext"; import deepmerge from "deepmerge"; import { useFormik } from "formik"; +import { TachiConfig } from "lib/config"; import React, { useContext, useEffect, useState } from "react"; import { Button, Form } from "react-bootstrap"; import { @@ -83,6 +84,7 @@ function PreferencesForm({ reqUser, game, playtype }: Props) { preferredSessionAlg: settings!.preferences.preferredSessionAlg || gptConfig.defaultSessionRatingAlg, gameSpecific: settings!.preferences.gameSpecific, + scoreBucket: settings!.preferences.scoreBucket ?? gptConfig.scoreBucket, }, onSubmit: async values => { const rj = await APIFetchV1( @@ -157,6 +159,24 @@ function PreferencesForm({ reqUser, game, playtype }: Props) { used for things like leaderboards. + + Preferred Score Info + + + + + + What should {TachiConfig.name} prefer to show you about scores? +
+ Note: This will only affect defaults, such as what graph is shown in the folder + breakdown. You can still view all the same stats! +
+
{game === "iidx" && (