From 95d1fdd32712721ce065780d4be44ea8f6b6db59 Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Fri, 26 Sep 2025 00:51:22 -0700
Subject: implement dancearound custom score view

---
 frontend/src/pages/Chart.tsx | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

(limited to 'frontend/src/pages/Chart.tsx')

diff --git a/frontend/src/pages/Chart.tsx b/frontend/src/pages/Chart.tsx
index 19f57cc..757cbbb 100644
--- a/frontend/src/pages/Chart.tsx
+++ b/frontend/src/pages/Chart.tsx
@@ -10,6 +10,7 @@ type SortField = string;
 type SortDirection = "asc" | "desc";
 
 import { getFilterOptions } from "../types/constants";
+import DancearoundScoreDisplay from "../components/displays/DancearoundScoreDisplay";
 
 const Chart = () => {
   const { user, isLoading, logout } = useAuth();
@@ -82,6 +83,7 @@ const Chart = () => {
         url.searchParams.append("sortKey", requestOrder);
         url.searchParams.append("direction", "asc");
         url.searchParams.append("pbOnly", "true");
+        url.searchParams.append("game", gameName);
 
         const response = await fetch(url.toString(), {credentials: 'include'});
         if (!response.ok) throw new Error("Failed to fetch scores");
@@ -97,7 +99,7 @@ const Chart = () => {
         setLoading(false);
       }
     },
-    [user, requestOrder, chartIdHash],
+    [user, requestOrder, chartIdHash, gameName],
   );
 
   useEffect(() => {
@@ -184,6 +186,18 @@ const Chart = () => {
                   hideTitleArtist={true}
                 />
               );
+              case "dancearound":
+                return (
+                  <DancearoundScoreDisplay
+                    scores={scores}
+                    viewMode={viewMode}
+                    sortField={sortField}
+                    sortDirection={sortDirection}
+                    onSort={handleSort}
+                    showUsername={true}
+                    hideTitleArtist={true}
+                  />
+                );
             default:
               return (
                 <ScoreDisplay
-- 
cgit v1.2.3

