# Lesson Planner

> Plan lessons by week with templates, printing, and local export.

Lesson Planner is a local-first weekly planner for teachers in MyBox. Use it to record a lesson objective, materials, activity sections, assessment, differentiation, homework, and reflection, then print the selected week or back up the plans as JSON.

## How it works

- Move between weeks with the previous and next controls. The planner opens on the current week after the first visit.
- Add a lesson with a class or group label, subject, day, duration, and objective. Materials, opening, main activity, closing, assessment, differentiation, homework, and reflection are optional.
- Search the selected week by class label or subject, and clear the filter when you are done.
- **Copy last week** creates independent copies of the previous week's plans in the selected week. The source week is unchanged.
- **Print week** prints only the selected week's plans, without navigation, dialogs, or action buttons.
- **Export** downloads a versioned JSON file containing all saved plans. **Import** validates the file first and asks for confirmation before replacing local plans.
- **Clear all** asks for confirmation and removes only the `mybox-lesson-planner-v1` browser storage key.

## Templates

- Blank uses generic section labels.
- The 45-, 60-, and 90-minute templates set the duration and show timed opening, main activity, and closing labels.
- Templates do not include curriculum standards or subject-specific content.

## Validation

- Class or group label, subject, objective, and a duration from 5 to 240 minutes are required.
- Inline errors explain what to fix, and an invalid plan is not saved.
- Imported JSON is rejected when it is malformed, incomplete, has duplicate plan IDs, or uses an unsupported schema version.

## Privacy and storage

- Plans are stored only in this browser under `mybox-lesson-planner-v1`. Nothing is uploaded or synced.
- Use class or group labels instead of student names. The planner never requires student identities.
- Analytics are limited to aggregate actions: `lesson_plan_created`, `lesson_plan_duplicated`, `lesson_week_printed`, and `lesson_plan_exported`. Lesson text, class labels, and student names are never sent.
- If local storage is unavailable or full, plans stay usable for the current visit and a non-blocking notice explains the temporary state.
- The static Markdown twin cannot show or restore your saved plans; open the interactive page for the planner.

## Related

- [Lesson Planner](https://mybox.id/lesson-planner)
- [Group Maker](https://mybox.id/group-maker)
- [Math Practice](https://mybox.id/math-practice)
- [Graph Plotter](https://mybox.id/graph-plotter)
- [Periodic Table](https://mybox.id/periodic-table)
- [Typing Tutor](https://mybox.id/typing)
- [Solar System](https://mybox.id/solar-system)
- [Apps](https://mybox.id/apps): Every app with a short description.
