From 779393106d53f77153cee12bf01bb52471987655 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Gremaud?= Date: Fri, 15 May 2026 03:05:33 +0200 Subject: [PATCH] fix(opus): wrong frontend ordering points -> rank-points --- polylan_submitter/src/OpusMagnum.vue | 34 +-- polylan_submitter/src/components/Results.vue | 296 ++++++++++--------- 2 files changed, 156 insertions(+), 174 deletions(-) diff --git a/polylan_submitter/src/OpusMagnum.vue b/polylan_submitter/src/OpusMagnum.vue index 6dfefd4..1e8cb74 100644 --- a/polylan_submitter/src/OpusMagnum.vue +++ b/polylan_submitter/src/OpusMagnum.vue @@ -126,17 +126,10 @@ const goHome = () => {

Opus Magnum Puzzle Submitter

-
+
{{ userInfo.username }} - Admin + Admin
Not logged in
@@ -158,10 +151,7 @@ const goHome = () => {
-
+

Loading puzzles...

@@ -210,12 +200,8 @@ const goHome = () => {
- +
@@ -234,18 +220,12 @@ const goHome = () => {
diff --git a/polylan_submitter/src/components/Results.vue b/polylan_submitter/src/components/Results.vue index e4c3e94..0e03766 100644 --- a/polylan_submitter/src/components/Results.vue +++ b/polylan_submitter/src/components/Results.vue @@ -101,7 +101,7 @@ const getPuzzleRanking = (puzzleId: number) => { points: response.points, rank_points: response.rank_points || 0, }; - }); + }).reverse(); }; const togglePuzzleExpanded = (puzzleId: number) => { @@ -186,7 +186,7 @@ onMounted(() => {

Current Rank

- #{{ userInfo.rank }} +

No rank yet

@@ -223,158 +223,162 @@ onMounted(() => {
-
-

No results available yet

-
- -
- -
- - -
- - -
-
-

No submissions yet

+
+

No results available yet

-
- - - - - - - - - - - - - - - - - -
RankPlayerPuzzles SolvedTotal Points
- - {{ user.username }}{{ user.puzzlesSolved }}{{ user.totalPoints }}
-
-
+
+ +
+ + +
- -
-
- - - -
-
-

No submissions yet

+ +
+
+

No submissions yet

-
- -
-
-
-
- {{ index === 0 ? '🏆 1st Place' : index === 1 ? '🥈 2nd Place' : '🥉 3rd Place' }} -
-

{{ response.username }}

-
-
-
- Cost - {{ response.cost || 'N/A' }} -
-
- Cycles - {{ response.cycles || 'N/A' }} -
-
- Area - {{ response.area || 'N/A' }} -
-
- Total (with coef.) - {{ response.points || 'N/A' }} -
-
- Points - {{ response.rank_points }} pts +
+ + + + + + + + + + + + + + + + + +
RankPlayerPuzzles SolvedTotal Points
+ + {{ user.username }}{{ user.puzzlesSolved }}{{ user.totalPoints }}
+
+
+ + +
+
+ + + +
+
+

No submissions yet

+
+ +
+ +
+
+
+
+ {{ index === 0 ? '🏆 1st Place' : index === 1 ? '🥈 2nd Place' : '🥉 3rd Place' }} +
+

{{ response.username }}

+
+
+
+ Cost + {{ response.cost || 'N/A' }} +
+
+ Cycles + {{ response.cycles || 'N/A' }} +
+
+ Area + {{ response.area || 'N/A' }} +
+
+ Total (with coef.) + {{ response.points || 'N/A' }} +
+
+ Points + {{ response.rank_points }} pts +
+
-
-
- -
- - - - - - - - - - - - - - - - - - - - - - - -
RankPlayerCostCyclesAreaTotal (with coef.)Points
- 🏆 - 🥈 - 🥉 - #{{ index + 1 }} - {{ response.username }} - {{ response.cost }} - - - {{ response.cycles }} - - - {{ response.area }} - - - {{ response.points }} - - {{ response.rank_points }}
+ +
+ + + + + + + + + + + + + + + + + + + + + + + +
RankPlayerCostCyclesAreaTotal (with coef.)Points
+ 🏆 + 🥈 + 🥉 + #{{ index + 1 }} + {{ response.username }} + {{ response.cost }} + + + {{ response.cycles }} + + + {{ response.area }} + + + {{ response.points }} + + {{ response.rank_points }}
+
+
@@ -382,8 +386,6 @@ onMounted(() => {
-
-