1.2 KiB
1.2 KiB
BanGUI — Task List
This document breaks the entire BanGUI project into development stages, ordered so that each stage builds on the previous one. Every task is described in prose with enough detail for a developer to begin work. References point to the relevant documentation.
Reference: Docs/Refactoring.md for full analysis of each issue.
Open Issues
- World Map highlight does not reset on mouse leave (done)
- Location:
frontend/src/components/WorldMap.tsx,GeoLayercomponent - Root cause: interactive event handlers (
onMouseEnter,onMouseMove,onMouseLeave,onClick,onKeyDown) were on wrapping<g>element, creating mismatch withGeographyinternal hover state. - Fix applied:
- Interactive props and aria attributes are on
<Geography>. - Hover highlight uses
style.hoverwith derivedfillfromisSelected/count. - Tooltip state resets via
Geography.onMouseLeave->setTooltip(null). - Test asserts tooltip appears/disappears and button role label is correct.
- Interactive props and aria attributes are on
- Verification commands:
cd frontend && npx vitest --run src/components/__tests__/WorldMap.test.tsxcd frontend && npx vitest --run
- Location: