FEnigma/tests
Dominik Roth d2f70675b8 Auto-ids per type not per group; show detected_id in proposal UI
Auto-assignment (Board.add_target/add_ally with no explicit id_) now
scopes its 1/2/3... sequence per TYPE within each group, not one
sequence shared across every type in the group -- Tank#1/Infantry#1
rather than Tank#A/Infantry#B, matching the game's own numbering.
Reverses the type-scoping half of an earlier fix in this file (see
TODO.md's "Allies and enemies seem to share indices" entry) per
explicit user direction; the targets-vs-allies namespace split that
fix also made is untouched, still correct. _next_free_id (letters,
rolling over to "AA" past 26) is replaced by _next_free_numeric_id --
a plain counter can't run out the way a fixed alphabet could, so
there's no equivalent rollover concern. test_models.py updated to
match (one test asserts the opposite of before, renamed accordingly).

detected_id (map_vision.read_marker_id) was being logged but never
shown anywhere a human could actually check it against the
screenshot before now: added to the proposal popover's heading and
the pending-proposal's own on-map label.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-13 19:28:01 +02:00
..
fixtures Fix ally marker detection; expand TargetType icons and pickers 2026-08-10 23:49:46 +02:00
test_app_accept_proposal.py Auto-ids per type not per group; show detected_id in proposal UI 2026-08-13 19:28:01 +02:00
test_debug_capture.py Fix ally/target bugs, OCR fire-support parsing, add debug capture 2026-08-11 17:35:37 +02:00
test_map_vision_marker_id.py Add marker id detection; log unit_score/margin; use full-res captures 2026-08-13 18:54:53 +02:00
test_map_vision_warp.py Fix id-namespace regression, add StrikeRequest type, kill full-panel 2026-08-11 20:48:57 +02:00
test_models.py Auto-ids per type not per group; show detected_id in proposal UI 2026-08-13 19:28:01 +02:00
test_ocr.py Fix id-namespace regression, add StrikeRequest type, kill full-panel 2026-08-11 20:48:57 +02:00
test_solver.py Fix click/right-click placement landing one sub-cell off from the actual click 2026-08-09 21:18:47 +02:00