BBR BATTLE

Updates

Release history for BBR Battle. Each entry corresponds to a shipped feature or fix.

Frontend test suitefeature

May 2025

Vitest + Testing Library configured. Tests cover calculatorSlice reducers, target-selection selectors, and API parsing logic.

Audit battle viewfeature

May 2025

New Audit tab shows a single battle instance stepped through phase by phase — AAA fire, sub strikes, combined arms, dice rolls, hit assignments, and casualties.

Inline target configurationfeature

May 2025

Replaced the blocking target-select modal with a collapsible inline panel. Assignments auto-populate sensible defaults and re-trigger the simulation on any change.

Simulate API migrationfeature

May 2025

Frontend now calls /battles/simulate directly. Response includes typed outcome distributions, IPC loss per side, and a seed for audit replay.

Paradrops Immer fixfix

May 2025

Rewrote the Air Transport paradrops reducer to use immutable Immer patterns. Paradrops now reset correctly when terrain changes.

Custom loss order UX fixfix

May 2025

Removed the terrain/tech lock that permanently disabled inputs after setting a custom loss order. Controls now stay enabled and the order resets automatically.

Input validationfix

May 2025

Empty or zero-unit forces no longer trigger API calls. Toast feedback shown if the user tries to calculate with one side empty.

Bidirectional unit key mapfix

May 2025

Merged two hand-maintained key↔unit-name lookup tables into one canonical source. Eliminates the risk of them drifting out of sync.

Target assignments wired to backendfix

May 2025

Fixed a type mismatch that caused tactical bomber and sub-strike assignments to be silently ignored. Assignments now reach the simulation engine as priority lists.

Tech representation migrationfeature

May 2025

Frontend tech keys mapped to canonical TechId strings before the API call. Eliminates the legacy numeric-to-string conversion that lived in the backend adapter.

Swap sides buttonfeature

May 2025

Single-click to swap attacker and defender — units, tech, and loss order all swap together.

HP ring visualizationfeature

Apr 2025

Multi-hit units (battleships, carriers) display a ring showing current HP in the outcome tables.

Distribution chartsfeature

Apr 2025

IPC loss distributions now render as area curves with a 0–100% Y-axis and survivor tooltips on hover.

Outcomes redesignfeature

Apr 2025

Outcomes section rebuilt with win-rate bar, average IPC stat panels, and per-side distribution tables.

Responsive calculator layoutfeature

Apr 2025

Calculator now works on phones and tablets. Unit tables stack on small screens.

Calculator visual redesignfeature

Apr 2025

Full visual refresh of the calculator page — typography, spacing, color system, and dark/light theme.

Light themefeature

Mar 2025

Added light color theme. Toggle between light and dark via the header.

Initial releasefeature

Feb 2025

BBR Battle goes live. Land and sea combat, 11 tech options, and Monte Carlo simulation via the TypeScript backend.