M007 S01: DEFAULT_OPENINGS defined but never seeded — first-time users see empty list #5
Labels
No labels
blocked:lint-failed
blocked:needs-decision
blocked:no-changes
bug
feature-request
in-progress
milestone
ops-task
quickfix
security/high
test-coverage
triage-approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/chainbound#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: MEDIUM
File: src/data/openings.ts:134-158
Problem
Two default openings ("Pressure Start" and "Execution Setup") are defined as
DEFAULT_OPENINGSbut never imported or seeded into localStorage. When a first-time user opens the Openings browser,loadOpenings()returns[]from empty localStorage and they see "No openings saved yet."Fix
In
src/data/openings.ts, exportDEFAULT_OPENINGS. Insrc/pages/CasualDuel.tsxor the opening initialization path, call something likeseedDefaultOpenings()on first use that writes the defaults if localStorage is empty.Alternatively,
loadOpenings()could automatically seed defaults before returning when the store is empty.Unblocking — lint gate now passes clean (
47dfc01).