Patterns
Edit an active lesson
Choose the content type, make a focused change, and follow its save state.
On this page
Task sequence
- Select the lesson from the curriculum.
- Use Video for a connected provider selection or manual embed and duration.
- Use Lesson text for formatted explanation.
- Use Action Items, Links, and Downloads for practical supporting material.
- Watch the live queue status before switching context or leaving.
Data and persistence boundary
Each lesson carries a revision. The parent serializes edits for that lesson and coordinates file operations with the same persistence boundary.
Failure and recovery
A stale-write response blocks further writes and preserves local text with the instruction to copy changes and reload. Do not silently overwrite a newer server revision.
Source references
| File | Responsibility |
|---|---|
| src/components/LessonItem.tsx | Tab-specific editing |
| src/app/make-class/[classId]/video-lessons/page.tsx | Queued mutation orchestration |
Interface examples
Native TeachKit interfaces with fictional course, account, and learner records. Service responses and media are isolated demonstrations; no customer data or live changes. Captured at 2× resolution or higher. Select an image to inspect it full size.
Related topics
Source audit: 2026-10-22 · Revision 903bbf05ca9d · Documentation v2.0.0