Fourth revision: OpenRouter, live tool stages, Explain layout, share sections
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 29s

- Interactive blocks are encouraged by default; Explain gets a reduced library
  and never writes practice questions.
- Assistant tool steps breathe while running, show live stages from generation
  and the Python check, and read in the past tense when done.
- The assistant asks before searching the web when class materials do not
  cover a question; clarifying questions list every class's exams and never
  ask about format (always NCLEX).
- Explain opens beside the question from 900px wide, moving the question left
  while open and back on the next one.
- Generate dialog drops the practice set/exam switch (presets cover it) and the
  Generate buttons lose their icon.
- Python check notes are green when every check passed, applied fixes neutral.
- Share pages group by exam, then Quizzes, Flashcards, Notes, Class Materials,
  hiding empty groups; the class page uses the same order. "Documents" is now
  "Class Materials".
- OpenRouter provider replaces the Ollama type; migration 6 turns Ollama
  connections into OpenAI-compatible ones at /v1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Elijah 2026-11-15 21:54:39 -07:00
parent c595e0ff2c
commit 25bc03ea75
45 changed files with 663 additions and 329 deletions

View file

@ -418,8 +418,8 @@ export default function ClassPage() {
};
// Inside each section, items are grouped under a subheading per type.
const KIND_ORDER = ['quiz', 'deck', 'document', 'note'] as const;
const KIND_HEADING = { quiz: 'Quizzes', deck: 'Flashcards', document: 'Documents', note: 'Notes' } as const;
const KIND_ORDER = ['quiz', 'deck', 'note', 'document'] as const;
const KIND_HEADING = { quiz: 'Quizzes', deck: 'Flashcards', document: 'Class Materials', note: 'Notes' } as const;
const KIND_HEADING_ICON = { quiz: <BookOpen />, deck: <Layers />, document: <FileText />, note: <NotebookPen /> } as const;
const canSort = sort === 'manual' && !query.trim();
const persistOrder = (kind: Item['kind']) => async (ids: string[]) => {
@ -500,7 +500,7 @@ export default function ClassPage() {
</MenuItem>
<MenuSeparator />
<MenuItem icon={<Upload />} onSelect={() => fileRef.current?.click()}>
Upload documents
Upload class materials
</MenuItem>
<MenuItem icon={<FileText />} onSelect={() => setPasteOpen(true)}>
Paste text as a document
@ -555,7 +555,7 @@ export default function ClassPage() {
Review {data.due.total}
</Button>
)}
<Button icon={<Sparkles />} onClick={() => setGenerate({})}>
<Button onClick={() => setGenerate({})}>
Generate
</Button>
{addMenu}
@ -601,7 +601,7 @@ export default function ClassPage() {
action={
<>
<Button variant="primary" icon={<Upload />} onClick={() => fileRef.current?.click()}>
Upload documents
Upload class materials
</Button>
<Button icon={<FileUp />} onClick={() => setImportOpen(true)}>
Import
@ -643,8 +643,8 @@ export default function ClassPage() {
['all', 'All'],
['quiz', 'Quizzes'],
['deck', 'Flashcards'],
['document', 'Documents'],
['note', 'Notes'],
['document', 'Class Materials'],
] as const
).map(([v, label]) => (
<button
@ -706,9 +706,9 @@ export default function ClassPage() {
action={
<>
<Button variant="primary" icon={<Upload />} onClick={() => fileRef.current?.click()}>
Upload documents
Upload class materials
</Button>
<Button icon={<Sparkles />} onClick={() => setGenerate({})}>
<Button onClick={() => setGenerate({})}>
Generate
</Button>
</>
@ -917,7 +917,7 @@ function ExamTabs({
return (
<div className="mb-4 flex flex-wrap items-center gap-3 rounded-[14px] border border-dashed border-line-strong px-4 py-3 text-[13.5px] text-ink-2">
<FolderIcon className="size-4 shrink-0 text-tab" />
<span className="min-w-0 flex-1">Divide this class into {noun}s so each keeps its own documents, quizzes and flashcards, and generating uses only that {noun}'s material.</span>
<span className="min-w-0 flex-1">Divide this class into {noun}s so each keeps its own class materials, quizzes and flashcards, and generating uses only that {noun}'s material.</span>
<Button size="sm" icon={<Plus />} onClick={onNew}>
New {noun}
</Button>