Skip to content

feat(mp): show the per-turn campaign income breakdown in the funds details - #750

Merged
Egg3901 merged 1 commit into
mainfrom
feat/mp-campaign-income-breakdown
Oct 21, 2026
Merged

Egg3901 merged 1 commit into
mainfrom
feat/mp-campaign-income-breakdown

Conversation

@Egg3901

@Egg3901 Egg3901 commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #748, closing the one resource-detail row the reference status bar has and multiplayer did not.

The reference status bar shows the per-turn campaign income lines in the funds details: base generation, donor bonus, office bonus, union contribution, state and national tax, and the net per turn. Multiplayer showed only the balance.

  • Add the audited wide status read, GET /api/client-status?layout=full. The Rust bridge pins the layout and the transport allowlist accepts only the two pinned layouts for that path, because the wide layout runs the reference's enrichment queries and is therefore read on demand and never polled.
  • Opening the funds details reads the wide payload and renders the server's own lines; a figure the server did not report reads "not reported".
  • A failed wide read leaves the details and the session intact.

Evidence: src/ui/MpIncomeBreakdown510.test.tsx (the breakdown is read on demand and shown, a failed wide read stays honest), src/mp/status.test.ts (the breakdown projection and the last-good-view posture) and the Rust test mp_session::tests::full_status_read_pins_the_full_layout. cargo fmt --check and cargo clippy --all-targets -- -D warnings are clean.

Partial: #510. No physical-iPhone evidence is claimed (#363/#436 stay open).

…tails

The reference status bar shows the per-turn campaign income lines in the
funds details: base generation, donor bonus, office bonus, union
contribution, state and national tax, and the net per turn. Multiplayer
showed only the balance.

- Add the audited wide status read, GET /api/client-status?layout=full.
  The Rust bridge pins the layout and the transport allowlist accepts only
  the two pinned layouts for that path, because the wide layout runs the
  reference's enrichment queries and is therefore never polled.
- Opening the funds details reads the wide payload on demand and renders
  the server's own lines; a figure the server did not report reads "not
  reported".
- Keep the failure posture: a failed wide read leaves the details and the
  session intact.
@Egg3901
Egg3901 merged commit aaaccc7 into main Oct 21, 2026
1 check passed
Egg3901 added a commit that referenced this pull request Oct 22, 2026
…the bridge repairs (#752)

Squash of #752 (with #750 and #751 folded in; the branch was rebased onto main so the already-merged #750 is not duplicated).

The hosted verify gate passed on this head (run 39698778862).

The branch also repairs three device-only bridge defects a self-review of the merged batch found - the nation-leadership and mail-recipient-search command arms refused the slot they read, and every country-scoped read passed the country code one slot early - so the nation figures, regions, parties, politicians, leadership, race-list and recipient-search reads would have failed on a device. Four guards now hold them in place: the Rust detail-slot invariant, the transport allowlist check and the two TypeScript slot tests, each validated against a reintroduced defect.

Partial: #510.
@Egg3901
Egg3901 deleted the feat/mp-campaign-income-breakdown branch October 30, 2026 21:57
Egg3901 added a commit that referenced this pull request Nov 3, 2026
…#753)

* feat(mp): open a politician's public profile from the nation drill-in

The reference has a politician page; the multiplayer nation drill-in listed
politicians without letting a player open one.

- Add the audited public read GET /api/politician/{id}. The id is a 24-hex
  character or NPP id, checked in the adapter and again by the Rust bridge,
  and it travels in its own bridge slot.
- The politicians in the nation drill-in are now entries: opening one shows
  the profile the server reports - type, office, party, home region,
  political and national influence, favorability, policies and bio - and
  Back returns to the nation.
- Extend the slot guards to the new read: the Rust detail-slot invariant,
  the transport allowlist check, and the two TypeScript slot tests.

* docs: refresh the remaining MP parity gaps after the world destinations

* docs: note the politician drill-in in the parity index

* docs: reconcile the roadmap with the MP world-destination batch and its bridge repairs

* docs: attribute the campaign income breakdown to #750
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.

1 participant