From 59aeb9aed37984df26690a6ddebe3e256c9286c7 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 4 Jun 2026 15:19:40 -0700 Subject: [PATCH] Add memory-graph practice flow with result coloring on the canvas. Users can start practice from the word library graph, see correct/wrong node colors after sessions, and use an improved graph canvas with better hover and layout. Co-authored-by: Cursor --- frontend/src/components/WordGraphCanvas.vue | 173 ++++++--- frontend/src/composables/useGraphFilter.ts | 2 +- frontend/src/pages/GraphPractice.vue | 374 ++++++++++++++++++++ frontend/src/pages/WordLibrary.vue | 266 ++++++++------ frontend/src/router/index.ts | 5 + frontend/src/utils/buildPracticeQuestion.ts | 72 ++++ frontend/src/utils/practiceGraphDisplay.ts | 75 ++++ frontend/src/utils/practiceGraphSession.ts | 70 ++++ 8 files changed, 891 insertions(+), 146 deletions(-) create mode 100644 frontend/src/pages/GraphPractice.vue create mode 100644 frontend/src/utils/buildPracticeQuestion.ts create mode 100644 frontend/src/utils/practiceGraphDisplay.ts create mode 100644 frontend/src/utils/practiceGraphSession.ts diff --git a/frontend/src/components/WordGraphCanvas.vue b/frontend/src/components/WordGraphCanvas.vue index 916dbd0..1fce8f8 100644 --- a/frontend/src/components/WordGraphCanvas.vue +++ b/frontend/src/components/WordGraphCanvas.vue @@ -1,10 +1,15 @@ + + + + diff --git a/frontend/src/pages/WordLibrary.vue b/frontend/src/pages/WordLibrary.vue index d1129f8..f5dfb7f 100644 --- a/frontend/src/pages/WordLibrary.vue +++ b/frontend/src/pages/WordLibrary.vue @@ -1,6 +1,6 @@