Skip to content

feat: Alpha Strike force builder (Phase 1) - #9

Merged
cantis merged 5 commits into
mainfrom
cursor/alpha-strike-phase1-decf
Jun 25, 2026
Merged

feat: Alpha Strike force builder (Phase 1)#9
cantis merged 5 commits into
mainfrom
cursor/alpha-strike-phase1-decf

Conversation

@cantis

@cantis cantis commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Summary

Adds an Alpha Strike extension layer on top of existing forces. Inventory (Miniature) is unchanged; variant and point data live on per-slot assignments.

Phase 1 scope

  • Models: AlphaStrikeForce, AlphaStrikeAssignment, MulCache
  • MUL integration: QuickList client with 7-day DB cache and static era/faction/type reference data
  • Force detail: Era/faction/budget config panel, variant picker modal, per-slot PV display
  • Report: Variant name, tonnage, PV totals, unconfigured slot indicators
  • Budget: Soft validation with 2% fudge factor (warnings only, never blocks)

Workflow

  1. Open a force → configure Alpha Strike (faction, era, optional point budget)
  2. Add miniatures to lances (existing flow)
  3. Click Assign variant on each slot → MUL search filtered by era/faction/unit type
  4. Print report shows full AS pick list with PV totals

Test plan

  • 181 tests passing (14 new)
  • Ruff clean
  • Manual: enable AS on a force, assign variants via live MUL, verify report

Deferred to Phase 2+

  • Pilot skill / SPA modifiers
  • Per-lance PV subtotals on detail page (partial — report has them)
  • Chassis name aliases (Mad Cat → Timber Wolf)
  • AS list JSON export
Open in Web Open in Cursor 

cursoragent and others added 4 commits June 11, 2026 02:38
Introduce an extension layer for assigning MUL variants and Alpha Strike
point values to force slots without changing the inventory model.

- Add AlphaStrikeForce, AlphaStrikeAssignment, and MulCache models
- MUL QuickList client with DB cache and static era/faction reference data
- Force detail AS config panel, variant picker modal, and PV budget summary
- Printable report shows variant, tonnage, PV totals, and unconfigured slots
- Soft point budget with 2% fudge factor; 14 new tests (181 total)

Co-authored-by: Evan Young <cantis@gmail.com>
Add per-force inventory faction pools with MUL availability badges, Alpha Strike
card preview in the variant picker, lance and force PV totals, expanded MUL
factions data, and scroll restoration after add-to-lance and variant assign.

Co-authored-by: Cursor <cursoragent@cursor.com>
Assign pastel header colors to new and existing lances, matching force-builder badges and add-to-lance dots. Show a Force column with colored In force badges on the inventory list and disable the actions menu for assigned miniatures.
Add Jeff's BT Tools export (one JSON per lance, zip for full force) with variant validation. Bump MechBay force export to schema v2 so inventory faction, lance colors, and Alpha Strike config and assignments round-trip on import while v1 files remain supported.
@cantis
cantis marked this pull request as ready for review June 25, 2026 00:58
Resolve E501 line-length and E741 ambiguous variable name issues across force export, Jeff export, tests, and reference Jeff app files.
@cantis
cantis merged commit f988db6 into main Jun 25, 2026
1 check passed
@cantis
cantis deleted the cursor/alpha-strike-phase1-decf branch June 25, 2026 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants