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

@ -135,10 +135,26 @@ Tests: `tests/revision3.test.ts` (web search, OAuth with a mock authorization se
events, cited pages, shared document text, genui prompt, clarifying questions, exam-scoped
generation).
## 2026-11-15: fourth revision (owner's 12-item list)
Interactive blocks encouraged by default (and never practice questions in Explain); Generate
dialog's practice set / exam switch removed (the preset covers it); Explain beside the question
on screens from 900px wide, moving the question left while open; breathing indicator and live
stages on the assistant's tool steps, past-tense lines when done; no icon on Generate; the
assistant asks before searching the web when the class materials do not cover a question;
clarifying questions offer the class's exams and never ask about format (always NCLEX);
Python check notes are green when every check passed, applied fixes neutral; share pages
grouped by exam, then Quizzes, Flashcards, Notes, Class Materials (empty groups hidden, same
order on the class page); "Documents" renamed "Class Materials"; OpenRouter provider
(`server/ai/providers/openrouter.ts`) replacing the Ollama type (migration 6 turns Ollama
connections into OpenAI-compatible ones at `/v1`).
Tests: `tests/revision4.test.ts`; OpenRouter cases in `server/ai/providers/providers.test.ts`.
## Verification status
Baseline: 162 tests passed, TypeScript passed and production web/server builds passed.
Added six regression tests. Full `npm run check` passes: **247 tests** (third revision, 2026-11-15; 208 after the second, 181 on 2026-11-12), TypeScript
Added six regression tests. Full `npm run check` passes: **257 tests** (fourth revision, 2026-11-15; 247 after the third, 208 after the second, 181 on 2026-11-12), TypeScript
and both production builds. The Docker `test` stage runs the same 181 tests on Node 24. Tests were run with loopback access for the mock provider.
The earlier agent manually exercised quiz completion/results, flashcards, streak effects,