From 954340138c5b92b61811187926d81f4045e108ef Mon Sep 17 00:00:00 2001 From: Navid Shad Date: Sat, 4 Jul 2026 20:23:33 +0300 Subject: [PATCH] fix(leitner): use real review RPCs and replace end-of-session alert with pilotui modal #86exnxphy The Leitner flashcard runner called non-existent RPCs (get-review-bundle / submit-review-result), so its review mode never loaded cards, and ended a session with a raw browser alert(). Repoint it to the real get-review-session / submit-review endpoints (matching LeitnerReviewSession's shapes), replace the completion alert with a pilotui Modal (confetti + "Back to Board"), and convert the sibling save-error alert to a toastError. Co-Authored-By: Claude Opus 4.8 --- frontend/locales/en.json | 4 ++ frontend/pages/practice/flashcards-[id].vue | 51 ++++++++++++++------- 2 files changed, 38 insertions(+), 17 deletions(-) diff --git a/frontend/locales/en.json b/frontend/locales/en.json index eddb849..bdc4f96 100644 --- a/frontend/locales/en.json +++ b/frontend/locales/en.json @@ -567,6 +567,10 @@ "start_activity": "Start Activity", "back_to_board": "Back to Board" }, + "leitner_session": { + "completed_title": "Review Session Completed!", + "save_failed": "Failed to save progress. Please try again." + }, "extension": { "nudge": { "title": "Install the Subturtle extension", diff --git a/frontend/pages/practice/flashcards-[id].vue b/frontend/pages/practice/flashcards-[id].vue index 8ca0d44..24b146b 100644 --- a/frontend/pages/practice/flashcards-[id].vue +++ b/frontend/pages/practice/flashcards-[id].vue @@ -36,12 +36,27 @@ + + +
+ +

{{ t('leitner_session.completed_title') }}

+
+ + +