# Task G2 — UI, Minimap, and Accessibility ## Scope Implemented G2 presentation/UI work without adding G3 audio behavior: - Added a player-centered minimap with a normal cropped view, Tab-expanded view, visible/explored/unknown fog states, a player marker, and threat markers limited to currently visible cells. - Wired minimap synchronization into initial state, resolved player actions, floor transitions, and the public presentation test seam. - Added keyboard-accessible Help and Options panels. Help enumerates the Input Map’s player-facing French command names and current physical bindings. Options supports UI-scale adjustment and inventory-key rebinding with keyboard navigation. - Added project actions/bindings for Help (F1), journal expansion (L), and a non-conflicting minimap action (Tab). The existing map key collision was removed by assigning `map` to Tab rather than `M`, which is already used by moderation. - Added an expandable HUD event log and an icon-plus-text damage marker (`✦ -N`) so the hit cue does not rely on color alone. - Added minimap unit coverage and end-to-end keyboard navigation coverage for minimap, help, options/rebinding, inventory, and quests. ## Root-cause fix found during final verification The initial full run passed unit (**182/182**) and integration (**11/11**) suites but failed two later E2E tests. `test_full_ui_navigation_e2e` rebound the process-global `InputMap` inventory action from I to F6 and did not restore it. Subsequent physical-I tests therefore produced no inventory action, leading to an empty journal and an unopened inventory panel. The test now restores the project-default I binding in teardown. This fixes the shared mutable test state at its source rather than adding special input fallbacks. A focused E2E rerun passed **56/56**, followed by the final full verification below. Final review also found that the new color-blind-safe damage-marker constant had been declared but not used. The actual damage label now renders `✦ -N`, and its pre-existing presentation unit contract verifies that output. ## Verification and capture Final `./scripts/verify.sh` completed successfully with Godot 4.5.0: - Unit: **182 / 182** tests passed, **1,388** assertions. - Integration: **11 / 11** tests passed, **59,470** assertions. - E2E: **56 / 56** tests passed, **561** assertions. - Visual capture: passed with no Godot script/parse/application errors. - `artifacts/visual-check.png`: `dungeon_non_black_pixels=489308`, `visible_pixels=17524`, `explored_pixels=10438`, `explored_luminance=0.012`, `unknown_pixels=365325`, `unknown_luminance=0.001`. - `artifacts/visual-check-exit.png`: `dungeon_non_black_pixels=489252`, `visible_pixels=17404`, `explored_pixels=17146`, `explored_luminance=0.012`, `unknown_pixels=439497`, `unknown_luminance=0.001`. The runners emitted pre-existing GUT invalid-UID and Godot cleanup/resource warnings, plus expected Xvfb/Snap xkbcommon Compose diagnostics during visual capture. There were no failing tests, parse errors, script errors, or visual-capture validation failures. ## Git All G2 sources, scenes, tests, UIDs, and this root report are committed locally in one commit. No push and no pull request were created.