diff --git a/frontend/src/components/FolderPicker.jsx b/frontend/src/components/FolderPicker.jsx index 4de5c7f..d2628a2 100644 --- a/frontend/src/components/FolderPicker.jsx +++ b/frontend/src/components/FolderPicker.jsx @@ -5,7 +5,7 @@ import './FolderPicker.css' /** * File the selected questions into a folder, for assignment. * - * A folder is not a library. A library is what a learner puts aside for + * A folder is not a collection. A collection is what a learner puts aside for * themselves and the API says so on every row; a folder is a list an educator * assembles so that a grant can point at it, which is the one shape the access * tree — exam, discipline, category — cannot express. diff --git a/frontend/src/components/QuestionPreview.jsx b/frontend/src/components/QuestionPreview.jsx index a253595..41d7488 100644 --- a/frontend/src/components/QuestionPreview.jsx +++ b/frontend/src/components/QuestionPreview.jsx @@ -18,7 +18,15 @@ const TeachChat = lazyPage(() => import('./TeachChat')) * Favourites and personal folders are optional and off by default — those * belong to studying a question, not to looking through the bank. */ -export default function QuestionPreview({ question, onClose, isFavorited, onToggleFavorite, collections = [] }) { +/* No "Add to library" here any more. It was three faults in one twelve-line + block: it said library and meant collection; its dropdown was always empty, + because the only page that renders this preview passes no collections; and + the "New library…" input called setCollections, which does not exist in this + component — so typing a name and pressing Enter created the collection, + added the question, and then threw a ReferenceError. Putting a question + aside belongs to the reading and session flows, where the collections are + actually loaded; this is a moderator's editing preview. */ +export default function QuestionPreview({ question, onClose, isFavorited, onToggleFavorite }) { return ( <>
- The question libraries you keep. Favourites are not here — they are + The question collections you keep. Favourites are not here — they are marked while you sit a session, and sat again from the session builder, filtered by system or discipline like anything else.