From 362c03fc9e5061467d74cecece43add65833af3f Mon Sep 17 00:00:00 2001 From: Polaris Date: Thu, 15 Aug 2024 00:47:10 -0400 Subject: [PATCH] added quick comment explaing recent action.ts file --- components/RecentChunithmScores/action.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/RecentChunithmScores/action.ts b/components/RecentChunithmScores/action.ts index d25368d..801238f 100644 --- a/components/RecentChunithmScores/action.ts +++ b/components/RecentChunithmScores/action.ts @@ -47,6 +47,15 @@ export async function getUserRatingBaseList() { }, }); + // chartId is the difficutly i.e + // easy, hard, expert, master, ultima, worlds end + + // songId is the id of the specific song so we are mapping the song in the profile recent to the song + // in the chuni static music table so we can get name and jacket path etc + // then we are mapping the musicId to the chartId to get the proper difficutly from above + // this is very confusing and my brain hurts + // if someone could make this cleaner id highly appreciate it + // Create a map const songIdtoChartId = new Map( staticMusicInfo.map((music) => [