Repository navigation
feat(mp): open a politician's public profile from the nation drill-in - #753
Merged
Merged
Conversation
Egg3901
force-pushed
the
feat/mp-politician-detail
branch
from
October 22, 2026 00:19
fef1890 to
f87dbf9
Compare
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.
…ts bridge repairs
Egg3901
force-pushed
the
feat/mp-politician-detail
branch
from
October 22, 2026 01:30
70785df to
33ce432
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #752.
The reference has a politician page; the multiplayer nation drill-in listed politicians without letting a player open one.
GET /api/politician/{id}(public, no auth). 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.Evidence:
src/ui/MpPolitician510.test.tsx(the profile opens from the nation drill-in and Back returns),src/mp/nations.test.ts(the profile projection and the invalid-id refusal),src/mp/bridgeSlots.test.tsandsrc/mp/adapterSlots.test.ts(the id lands in the politician slot), and the Rust testspolitician_profile_read_pins_the_idandevery_pinned_read_passes_the_transport_allowlist. The MP unit suite (22 files, 307 tests) and the MP UI suite (15 files, 92 tests) pass;cargo fmt --checkandcargo clippy --all-targets -- -D warningsare clean.Partial: #510. No physical-iPhone evidence is claimed (#363/#436 stay open).