From 63a271fe928f4583ee8dcc7657c3be1a5a3f424d Mon Sep 17 00:00:00 2001 From: Kyle Jacobson Date: Sun, 5 Jul 2026 11:36:40 -0500 Subject: [PATCH 1/5] status bar tweaks --- frontend/src/Chessrepeat.tsx | 54 +++++++++++-------- .../modals/AddToRepertoireModal.tsx | 2 +- .../src/components/modals/SettingsModal.css | 4 +- 3 files changed, 37 insertions(+), 23 deletions(-) diff --git a/frontend/src/Chessrepeat.tsx b/frontend/src/Chessrepeat.tsx index d939649..167bf0b 100644 --- a/frontend/src/Chessrepeat.tsx +++ b/frontend/src/Chessrepeat.tsx @@ -345,6 +345,8 @@ export const Chessrepeat = () => { case 'learn': learn(); setNextTrainablePosition(); + console.log("update") + updateDueCounts(); break; case 'recall': if (userTip == 'fail') { @@ -446,27 +448,37 @@ export const Chessrepeat = () => { text-gray-700 shadow-lg opacity-0 transition-opacity duration-150 group-hover:opacity-100" > -
- - To learn - {chapter.unseenCount} -
-
- - Due - {chapter.lastDueCount} -
-
- - Learned - - {chapter.enabledCount - chapter.unseenCount - chapter.lastDueCount} - -
-
- Total - {chapter.enabledCount} -
+ + + + + + + + + + + + + + + +
+ + Learned + {chapter.enabledCount - chapter.unseenCount - chapter.lastDueCount} + + {Math.round( + ((chapter.enabledCount - chapter.unseenCount - chapter.lastDueCount) / + chapter.enabledCount) * + 100, + )} + % +
+ + Due Now{chapter.lastDueCount} + {Math.round((chapter.lastDueCount / chapter.enabledCount) * 100)}% +
)} diff --git a/frontend/src/components/modals/AddToRepertoireModal.tsx b/frontend/src/components/modals/AddToRepertoireModal.tsx index 51975c1..60c54bb 100644 --- a/frontend/src/components/modals/AddToRepertoireModal.tsx +++ b/frontend/src/components/modals/AddToRepertoireModal.tsx @@ -141,7 +141,7 @@ const AddToRepertoireModal: React.FC = () => { {/* Close button */} diff --git a/frontend/src/components/MobileCommentPopout.tsx b/frontend/src/components/MobileCommentPopout.tsx index 397a8b3..e83364a 100644 --- a/frontend/src/components/MobileCommentPopout.tsx +++ b/frontend/src/components/MobileCommentPopout.tsx @@ -73,7 +73,7 @@ const MobileCommentPopout: React.FC = () => {