Share-link sets save into the class; flashcards up to 75
All checks were successful
Verify and publish V2 container / build-and-push (push) Successful in 28s

- Sets visitors generate show in the owner's Drafts while being written, then
  save into the class (and exam, for an exam link) automatically, as if
  approved. If the save fails, the draft waits in Drafts for review.
- Deleting a share link keeps what was made on it; running jobs finish and save.
- Visitor flashcard sets go up to 75 cards (default 30); quizzes stay at 50.
- The visitor page links finished sets to the class items; the separate
  AI-set view is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Elijah 2026-11-15 22:11:07 -07:00
parent e945f589ce
commit 76112cb4ae
8 changed files with 146 additions and 103 deletions

View file

@ -224,15 +224,17 @@ link also has a cap of 500 requests per hour across all visitors.
Class and exam links have a third visitor switch, **Generate quizzes and flashcards** (off by
default). Visitors choose only the kind, how many (quizzes default to 50, at most 50: one exam;
flashcards default to 30), the difficulty, which of the link's class materials to use and,
flashcards default to 30, at most 75), the difficulty, which of the link's class materials to use and,
for quizzes, "Include med math" (5 calculation questions). Quizzes are NCLEX style with 25%
select-all and the Python check. A link may make 4 quizzes and 2 flashcard sets a day (local
midnight, failed attempts not counted), on top of the per-device request limit; **Reset
limits** in the share dialog starts a fresh allowance. Sets are drafts tied to the link
(`drafts.share_id`, migration 7): every visitor of the link sees them under "Make your own
practice", they can be explained like shared questions, and they stay off the owner's drafts
list. The share dialog lists them; opening one lets the owner review it, save it to the
library or discard it from the link. Deleting the link deletes them.
limits** in the share dialog starts a fresh allowance. Each set is a draft tied to the link
(`drafts.share_id`, migration 7): it shows in the owner's Drafts while it is written, then is
saved into the class (and the exam, for an exam link) as if the owner had approved it, with the
description "Made with AI on a share link". From then on it is ordinary class material: the
link lists it with everything else, and Explain works on it. If the automatic save fails, the
draft waits in Drafts for review. Deleting the link keeps what was made on it (running jobs
finish and save too).
## Original documents