Add drag reordering, exam deadlines, frozen shared quizzes, batched OCR and semantic search
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 33s

- Drag-to-reorder for class materials, folders, quiz questions and deck cards. Pointer-based
  so touch works, plus keyboard (arrows/Home/End) with screen-reader announcements.
- Timed exams get a wall-clock deadline. The server refuses late answers, submits overdue
  exams with what was saved, and the countdown keeps running while the page is closed.
- Shared quiz sessions keep a frozen copy of their questions and flag later owner edits.
- Scanned PDFs are read in cached 8-page batches with real page numbers (pdf-lib), removing
  the 30 MB whole-file limit. Compatible providers now receive PDFs as file parts.
- Semantic search: embeddings for OpenAI, Gemini, Ollama and compatible servers, background
  indexing into chunk_vectors (migration 2), hybrid keyword + vector ranking for search, the
  assistant and focused generation, and a Settings -> AI section.

181 tests pass locally and in the Docker test stage on Node 24.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Elijah 2026-11-12 11:48:20 -07:00
parent 3046e46d1c
commit ccdad9728b
39 changed files with 1772 additions and 121 deletions

View file

@ -31,6 +31,7 @@ interface ItemBase {
title: string;
description: string;
folderId: string | null;
sortOrder: number;
createdAt: number;
updatedAt: number;
shared: boolean;
@ -147,7 +148,9 @@ export interface Attempt {
mode: 'practice' | 'exam';
kind: string;
status: 'active' | 'completed';
settings: { shuffleQuestions: boolean; shuffleOptions: boolean; timeLimitSec: number | null; sataScoring: 'partial' | 'strict' };
settings: { shuffleQuestions: boolean; shuffleOptions: boolean; timeLimitSec: number | null; sataScoring: 'partial' | 'strict'; deadlineAt?: number | null };
/** Server clock (epoch ms) when this was produced. */
serverNow: number;
questions: SnapshotQuestion[];
answers: Record<string, AnswerState>;
flags: string[];
@ -321,6 +324,8 @@ export interface SearchHit {
classColor: ClassColor;
parentId?: string;
page?: number | null;
/** Found by meaning (semantic search) rather than by matching words. */
semantic?: boolean;
}
export interface ShareListItem extends Share {