diff --git a/docs/TODO.md b/docs/TODO.md index ae62f41..133e061 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -217,8 +217,10 @@ Captured so nothing is lost while the article writing runs. ## Quiz runner -- [ ] **Per-question notes in study mode**, replacing the global notes tab that is - currently on the quiz page. +- [x] **Per-question notes** — done. The notes themselves were already built + (`question_notes`, saved on blur); what was missing was removing the + global notes tab that floated over the same screen, so it was never clear + which notepad you were writing in. The global note stays on the dashboard. - [ ] **Per-question feedback** to the educator. - [ ] **Tutorial mode** — first-run coach marks ("Step 2 of 6", Skip / Next). diff --git a/frontend/src/pages/QuizPage.jsx b/frontend/src/pages/QuizPage.jsx index c6f1e49..73e060c 100644 --- a/frontend/src/pages/QuizPage.jsx +++ b/frontend/src/pages/QuizPage.jsx @@ -9,7 +9,6 @@ import { useAuth } from '../context/AuthContext' import api from '../api/client' import useMediaQuery from '../hooks/useMediaQuery' import FigureStrip from '../components/FigureStrip' -import MyNote from '../components/MyNote' import QuizTools, { QuizDialog } from '../components/QuizTools' import './QuizPlayer.css' @@ -1112,7 +1111,11 @@ const timerStarted = timeLeft !== null return (
{answeredCount} of {totalCount} questions answered. Unanswered questions count as incorrect.
diff --git a/frontend/src/pages/QuizPage.test.jsx b/frontend/src/pages/QuizPage.test.jsx index 71d3367..87b2b6a 100644 --- a/frontend/src/pages/QuizPage.test.jsx +++ b/frontend/src/pages/QuizPage.test.jsx @@ -5,9 +5,8 @@ import { MemoryRouter, Route, Routes } from 'react-router-dom' import QuizPage from './QuizPage' import api from '../api/client' -vi.mock('../api/client', () => ({ default: { get: vi.fn(), post: vi.fn(), delete: vi.fn() } })) +vi.mock('../api/client', () => ({ default: { get: vi.fn(), post: vi.fn(), put: vi.fn(), delete: vi.fn() } })) vi.mock('../context/AuthContext', () => ({ useAuth: () => ({ user: { id: 1, name: 'Learner', role: 'user' } }) })) -vi.mock('../components/MyNote', () => ({ default: () => null })) vi.mock('../components/TeachChat', () => ({ default: ({ attemptId }) =>