Problem
As a homeschool parent planning this week's lessons, I want to quickly see only the standards that need more work (needs_improvement) across all subjects — without wading through a sea of not-yet-started items.
The current "Hide Completed" toggle removes green (completed) cards, but still leaves all blue (not_started) cards visible. When a student has many untouched standards, this floods the view and makes it hard to find the actionable amber (needs_improvement) items that actually need attention right now.
There is currently no way to enter a "Focus Mode" that surfaces only the standards actively in progress.
Proposed Solution
Add a "Focus on Needs Work" toggle that hides both completed and not_started standards, leaving only needs_improvement items visible. This should mirror the existing hideCompleted pattern throughout the codebase.
Implementation plan
1. src/context/VisibilityContext.tsx
Add hideNotStarted: boolean and its setter to the context interface and provider, alongside the existing hideCompleted state.
2. src/App.tsx
- Lines 13–19: initialize
hideNotStarted from localStorage using the same pattern as hideCompleted.
- Lines 29–30: pass
hideNotStarted / setter into the context provider.
- Lines 90–93: persist
hideNotStarted to localStorage in a useEffect, mirroring the existing persist effect.
3. src/components/SettingsFlyout.tsx
- Lines 62–91: add a new
Field/Checkbox item (Headless UI) for "Focus on Needs Work" directly alongside the existing "Hide Completed" checkbox.
4. src/components/SubjectStandardDisplay.tsx
- Lines 117–119: extend the visibility guard from:
if (hideCompleted && mastery === "completed") return null;
to also handle:
if (hideNotStarted && mastery !== "needs_improvement") return null;
When hideNotStarted is true, only needs_improvement cards are rendered (this implicitly also hides completed items, so the two toggles can work independently or together).
Acceptance Criteria
Suggested Labels
enhancement, good first issue
Problem
As a homeschool parent planning this week's lessons, I want to quickly see only the standards that need more work (
needs_improvement) across all subjects — without wading through a sea of not-yet-started items.The current "Hide Completed" toggle removes green (
completed) cards, but still leaves all blue (not_started) cards visible. When a student has many untouched standards, this floods the view and makes it hard to find the actionable amber (needs_improvement) items that actually need attention right now.There is currently no way to enter a "Focus Mode" that surfaces only the standards actively in progress.
Proposed Solution
Add a "Focus on Needs Work" toggle that hides both
completedandnot_startedstandards, leaving onlyneeds_improvementitems visible. This should mirror the existinghideCompletedpattern throughout the codebase.Implementation plan
1.
src/context/VisibilityContext.tsxAdd
hideNotStarted: booleanand its setter to the context interface and provider, alongside the existinghideCompletedstate.2.
src/App.tsxhideNotStartedfromlocalStorageusing the same pattern ashideCompleted.hideNotStarted/ setter into the context provider.hideNotStartedtolocalStoragein auseEffect, mirroring the existing persist effect.3.
src/components/SettingsFlyout.tsxField/Checkboxitem (Headless UI) for "Focus on Needs Work" directly alongside the existing "Hide Completed" checkbox.4.
src/components/SubjectStandardDisplay.tsxhideNotStartedistrue, onlyneeds_improvementcards are rendered (this implicitly also hides completed items, so the two toggles can work independently or together).Acceptance Criteria
VisibilityContextexposeshideNotStarted: booleanand asetHideNotStartedsetterhideNotStartedis initialized fromlocalStorageon app load (key e.g.hideNotStarted)hideNotStartedis persisted tolocalStoragewhenever it changeshideNotStartedneeds_improvementstandards are visible;not_startedandcompletedcards are hiddenhideCompletedindependently)hideCompletedandhideNotStarted) are independently operable with no regressionsField/Checkboxstyling used at lines 62–91 ofSettingsFlyout.tsxSuggested Labels
enhancement,good first issue