Harden Study Studio data integrity and learner flow - #2
Merged
Conversation
Library page grows a searchable two-tab directory: every unit's lesson sources plus the 20 reviewed community episodes with local thumbnails, clip/full links, and the community-source notice. The manifest exporter now folds video-data.js into the protected course manifest, and the launcher fingerprints the legacy archive without hydrating cloud-offloaded files. Includes review repairs to this feature: a details-toggle crash, an exact-title test assertion, launcher friendly-error messages, stale cache temp cleanup, and the missing --line-strong variable. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Frontend: a failed final quiz save can no longer corrupt the answer list; 401/409 responses now tell the learner to reload with the server's own words instead of an endless retry; the skip link focuses the lesson instead of routing Home; Settings restore/import report what actually happened when only the session refresh fails; Review load failures get a retry button; oversized Build files are rejected with a clear message before upload; buttons default to type=button; units without a guided lesson show an honest placeholder; the preview env flag can no longer diverge from the vite alias; focus rings meet non-text contrast. Server: migration and pre-import backups live outside the routine 7-slot rotation so boots and exports cannot evict them; exports no longer leave a redundant plaintext snapshot; rating retries replay their receipt even when elapsedMs moved; the review stage checks quiz qualification locally; benign macOS metadata cannot disable /legacy/; backup inspection warns when the incoming file is older than current progress. Docs and CI: README describes the real architecture (Studio at 8765, preview-only Pages); release identity is verified in CI and the verified build is uploaded as an artifact; pretest question 15 avoids the debunked isRetryable phrasing; my-plan labels exam weights as community-reported. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Why
The previous Studio could accept browser-supplied mastery flags, lose the meaning of a timed-out save, collapse a packet of flashcard ratings into one final result, mix runtime releases, expose an unsafe legacy boundary, and hide navigation labels at compact widths. The review flow also gave no clear way to advance after rating a card.
Learner impact
Existing mastery, review dates, course sequencing, exam claims, quiz answers, videos, and learner history are grandfathered and unchanged. W1 remains the only authoritative interactive unit; W2-W23 remain a read-only archive.
Verification
Council review reference:
9497a8c4-8bfd-4f28-9c7c-f95f013a3303.