Commit Graph

2 Commits

Author SHA1 Message Date
bb4ca8ae40 feat: add localStorage persistence for battle result map
- Initialize `resultMap` from `localStorage` on component mount if data exists.
- Save updated `resultMap` back to `localStorage` when the component unmounts.
- Removed debug console.log statement for cleaner logs.
2026-03-10 17:21:44 +09:00
65195289bd refactor: extract BattleTable to dedicated component and add score calculation utils
- Move `BattleTable` logic from `GroupMember` to its own `BattleTable.tsx` component.
- Clean up `GroupMember` by removing unused imports (`Divider`, `Flex`, `Space`, `Table`, `getRoundTable`).
- Add new utility functions in `src/utils/common.ts`:
  - `higherWin` and `lowerWin` to calculate scores based on point difference thresholds.
  - `calculate` to determine the final score return value based on win/loss status.
2026-03-10 17:11:49 +09:00