[lists-1] Add local browser-based army list import #1
Reference in New Issue
Block a user
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?
Goal
Allow the user to import a WH40K army list (BattleScribe / New Recruit JSON) directly in the browser. Parsed lists must persist to localStorage so the user can come back to them later.
Acceptance Criteria
.jsonfile from disk. It is parsed using thebs-roster-parserlibrary.localStorageunder a stable key (e.g.wh40k-pc:lists:v1) with: id, name, importedAt, source filename, unit list (name, pts, model_count, breakdown).Test Command
cd /workspace/projects/wh40k-pc/react-app && npm install --silent && npm run buildFile Scope
react-app/src/App.jsxreact-app/src/lib/listStore.js(new — localStorage helpers)react-app/src/lib/battlescribeParser.js(new — JS port of bs-roster-parser, or vendor a minimal copy)react-app/src/components/ListImport.jsx(new — file picker + drop zone)react-app/src/components/ListsPanel.jsx(new — saved lists list + load/delete)react-app/src/main.jsxreact-app/package.json