From ee5cd64b3b3287a0502e39e9ff52698d51e753cf Mon Sep 17 00:00:00 2001 From: Egg3901 <72903242+Egg3901@users.noreply.github.com> Date: Wed, 21 Oct 2026 21:51:09 +0200 Subject: [PATCH 1/2] feat(mp): show the per-turn campaign income breakdown in the funds details 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. --- docs/MP-CAPABILITY-BOUNDARY.md | 5 +- docs/NAVIGATION-PARITY.md | 26 +++++ src-tauri/src/mp_session.rs | 68 +++++++++++-- src/mp/adapter.ts | 20 ++++ src/mp/endpoints.ts | 6 ++ src/mp/status.test.ts | 58 +++++++++++ src/mp/validators.test.ts | 42 ++++++++ src/mp/validators.ts | 35 +++++++ src/ui/MpIncomeBreakdown510.test.tsx | 147 +++++++++++++++++++++++++++ src/ui/MpModeScreen.tsx | 39 ++++++- 10 files changed, 434 insertions(+), 12 deletions(-) create mode 100644 src/ui/MpIncomeBreakdown510.test.tsx diff --git a/docs/MP-CAPABILITY-BOUNDARY.md b/docs/MP-CAPABILITY-BOUNDARY.md index 9107cac4..e070be27 100644 --- a/docs/MP-CAPABILITY-BOUNDARY.md +++ b/docs/MP-CAPABILITY-BOUNDARY.md @@ -95,7 +95,10 @@ dead MP controls offline and no synthesized server state anywhere: `loadStatus` sits outside enter/refresh, so every failure keeps the last good figures without touching phase or error state, and the screen refreshes it on the reference cadence (60s while visible, plus a new turn - and foreground return). + and foreground return). The wide layout of the same read + (`?layout=full`) carries the per-turn campaign income breakdown; because + it runs the reference's enrichment queries, it is read on demand when the + funds details are opened and never polled. - World reads are public and separate from the character projection: `GET /api/countries` answers the runtime nation directory, `GET /api/country/[code]/overview-counts` answers one nation's headline diff --git a/docs/NAVIGATION-PARITY.md b/docs/NAVIGATION-PARITY.md index b7801ced..3b18ac5c 100644 --- a/docs/NAVIGATION-PARITY.md +++ b/docs/NAVIGATION-PARITY.md @@ -963,3 +963,29 @@ tests: the search fills the recipient, a failed search keeps the draft) and last-good-matches posture) plus the Rust path/allowlist assertions in `mp_session::tests::world_reads_resolve_to_pinned_paths`. No physical-iPhone evidence is claimed; #363/#436 remain open. + +## 29. MP campaign income breakdown (#510) + +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. + +Delivered: + +- A new audited read, `GET /api/client-status?layout=full`, answers the + breakdown. The Rust bridge pins the layout (the wide layout runs the + reference's enrichment queries, so it is never polled) and the transport + allowlist accepts only the two pinned layouts for that path. +- Opening the funds details reads the wide payload on demand and renders the + server's own lines: base generation, donor bonus, office bonus, union + contribution, state tax, national tax and net per turn. A figure the + server did not report reads "not reported". +- A failed wide read leaves the details and the session intact. + +Focused evidence: `src/ui/MpIncomeBreakdown510.test.tsx` (2 rendered tests: +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`. No +physical-iPhone evidence is claimed; #363/#436 remain open. diff --git a/src-tauri/src/mp_session.rs b/src-tauri/src/mp_session.rs index ef891e9f..cdc3ed63 100644 --- a/src-tauri/src/mp_session.rs +++ b/src-tauri/src/mp_session.rs @@ -112,6 +112,12 @@ pub enum MpFetchOp { /// influence and favorability the footer shows, and skips the /// corporation/election/income enrichment the wider layouts run. ClientStatus, + /// The full status read; GET /api/client-status?layout=full + /// (requireBasicAuth, 401 signed out). Read on demand when the + /// player asks for the per-turn campaign income breakdown, which the + /// minimal layout does not carry. The wider layout runs the + /// reference's enrichment queries, so it is never polled. + ClientStatusFull, /// Turn/year/processing/countdown; public but fresher via the session. TurnStatus, /// Players active within the last hour; public, no session required. @@ -205,6 +211,7 @@ impl MpFetchOp { "savings-accounts" => Some(Self::SavingsAccounts), "client-nav" => Some(Self::ClientNav), "client-status" => Some(Self::ClientStatus), + "client-status-full" => Some(Self::ClientStatusFull), "turn-status" => Some(Self::TurnStatus), "players-online" => Some(Self::PlayersOnline), "game-time" => Some(Self::GameTime), @@ -236,6 +243,7 @@ impl MpFetchOp { Self::SavingsAccounts => "/api/character/savings", Self::ClientNav => "/api/client-nav", Self::ClientStatus => "/api/client-status", + Self::ClientStatusFull => "/api/client-status", Self::TurnStatus => "/api/game/turn/status", Self::PlayersOnline => "/api/players/online", Self::GameTime => "/api/game-time", @@ -612,14 +620,19 @@ fn fetch_path_and_query( offset: Option, ) -> Result { match op { - MpFetchOp::ClientStatus => { + MpFetchOp::ClientStatus | MpFetchOp::ClientStatusFull => { if limit.is_some() || offset.is_some() { return Err(error::UNSUPPORTED_OP.to_string()); } // The layout is pinned, never caller-supplied: the minimal // layout answers the footer scalars without the wide - // enrichment queries. - Ok(format!("{}?layout=minimal", op.path())) + // enrichment queries, and the full layout is read on demand + // for the campaign income breakdown. + let layout = match op { + MpFetchOp::ClientStatus => "minimal", + _ => "full", + }; + Ok(format!("{}?layout={}", op.path(), layout)) } MpFetchOp::NewsFeed => { let limit = limit.ok_or_else(|| error::BAD_ARG.to_string())?; @@ -1363,8 +1376,10 @@ fn is_allowlisted_call(method: &str, path_and_query: &str) -> bool { | ("GET", "/api/players/online") | ("GET", "/api/admin/maintenance") | ("GET", "/api/game-time") => query.is_none(), - // The status read only ever runs with the pinned minimal layout. - ("GET", "/api/client-status") => matches!(query, Some("layout=minimal")), + // The status read only ever runs with a pinned layout. + ("GET", "/api/client-status") => { + matches!(query, Some("layout=minimal") | Some("layout=full")) + } ("GET", "/api/countries") => query.is_none(), ("GET", "/api/characters/search") => match query { Some(query) => is_character_search_pair(query), @@ -2162,6 +2177,23 @@ pub async fn mp_session_fetch( .ok_or_else(|| error::BAD_ARG.to_string())?; fetch_country_politicians_path(country)? } + MpFetchOp::ClientStatusFull => { + if limit.is_some() + || offset.is_some() + || detail.election_id.is_some() + || detail.corporation_id.is_some() + || detail.union_id.is_some() + || detail.cabinet_country_code.is_some() + || detail.cabinet_position_id.is_some() + || detail.governor_country_code.is_some() + || detail.governor_state_id.is_some() + || detail.country_code.is_some() + || detail.search_query.is_some() + { + return Err(error::UNSUPPORTED_OP.to_string()); + } + fetch_path_and_query(op, limit, offset)? + } MpFetchOp::CharacterSearch => { if limit.is_some() || offset.is_some() @@ -2310,9 +2342,12 @@ mod tests { "/api/client-status?layout=minimal" )); assert!(!is_allowlisted_call("GET", "/api/client-status")); + // The full layout is allowlisted too, but only for the on-demand + // income breakdown read. + assert!(is_allowlisted_call("GET", "/api/client-status?layout=full")); assert!(!is_allowlisted_call( "GET", - "/api/client-status?layout=full" + "/api/client-status?layout=wide" )); assert!(!is_allowlisted_call( "GET", @@ -2324,6 +2359,27 @@ mod tests { )); } + #[test] + fn full_status_read_pins_the_full_layout() { + assert_eq!( + MpFetchOp::from_id("client-status-full"), + Some(MpFetchOp::ClientStatusFull) + ); + assert_eq!( + fetch_path_and_query(MpFetchOp::ClientStatusFull, None, None).unwrap(), + "/api/client-status?layout=full" + ); + assert!(!is_allowlisted_call( + "GET", + "/api/client-status?layout=full&x=1" + )); + assert!(!is_allowlisted_call( + "POST", + "/api/client-status?layout=full" + )); + assert!(fetch_path_and_query(MpFetchOp::ClientStatusFull, Some(5), None).is_err()); + } + #[test] fn world_reads_resolve_to_pinned_paths() { assert_eq!(MpFetchOp::from_id("countries"), Some(MpFetchOp::Countries)); diff --git a/src/mp/adapter.ts b/src/mp/adapter.ts index df9f7d4e..219a3e67 100644 --- a/src/mp/adapter.ts +++ b/src/mp/adapter.ts @@ -710,6 +710,26 @@ export class MpModeSession { } } + /** + * Read the full status payload (#510 campaign income breakdown). The wide + * layout carries the per-turn campaign income lines the minimal layout + * omits, at the cost of the reference's enrichment queries, so it is read + * on demand and never polled. Every failure keeps the last good view and + * never fails the session. Never throws. + */ + async loadFullStatus(): Promise { + if (!this.snapshot.userId || this.snapshot.phase !== "ready") return this.get(); + try { + const result = await mpFetch(this.host, "client-status-full"); + if (result.kind !== "ok") return this.get(); + const status = parseClientStatus(result.bodyText); + if (!status) return this.get(); + return this.set({ status }); + } catch { + return this.get(); + } + } + /** * Search characters by name for the mail recipient picker (#510). The * read is public; the fragment is validated here and again by the Rust diff --git a/src/mp/endpoints.ts b/src/mp/endpoints.ts index 9e96ba17..dfd513b1 100644 --- a/src/mp/endpoints.ts +++ b/src/mp/endpoints.ts @@ -99,6 +99,11 @@ * {results:[{id,userId,name,username,discordUsername,party,homeState, * avatarUrl,currentOffice}]}. The route ignores queries shorter than two * characters; the bridge pins the limit at 10 and encodes the fragment. + * - client-status-full GET /api/client-status?layout=full + * requireBasicAuth; 401 signed out. The same read in its wide layout: + * it adds the per-turn campaign income breakdown the minimal layout omits, + * at the cost of the reference's enrichment queries, so Native reads it + * on demand (when the funds details are opened) and never polls it. * - turn-status /api/game/turn/status public; 404 uninitialized * {singleplayer,currentTurn,currentYear,startingYear,preset, * preIterationTurns,preIterationActive,isActive,isProcessing, @@ -373,6 +378,7 @@ export type MpFetchOpId = | "savings-accounts" | "client-nav" | "client-status" + | "client-status-full" | "turn-status" | "players-online" | "game-time" diff --git a/src/mp/status.test.ts b/src/mp/status.test.ts index c190c4b1..8ad73eac 100644 --- a/src/mp/status.test.ts +++ b/src/mp/status.test.ts @@ -78,6 +78,64 @@ function enterScripts(extra?: Record> }; } +describe("MpModeSession loadFullStatus", () => { + const full = JSON.stringify({ + name: "Ada", + actions: 3, + funds: 1200, + cashOnHand: 1000, + homeCurrency: "USD", + campaignIncomeBreakdown: { + populationTier: "large", + baseGen: 500, + donorBonus: 120, + officeBonus: 80, + unionContribution: 40, + stateTax: 60, + nationalTax: 90, + totalTax: 150, + netPerTurn: 590, + }, + }); + + it("projects the per-turn campaign income lines", async () => { + const { host, calls } = scriptedHost( + enterScripts({ "client-status-full": [full] }), + ); + const session = new MpModeSession(host); + await session.enter(); + const snapshot = await session.loadFullStatus(); + expect(snapshot.status?.campaignIncomeBreakdown?.netPerTurn).toBe(590); + expect(snapshot.phase).toBe("ready"); + expect(snapshot.error).toBeNull(); + expect(calls.filter((call) => call === "fetch:client-status-full")).toHaveLength(1); + }); + + it("keeps the last good view when the wide read fails", async () => { + const { host } = scriptedHost( + enterScripts({ + "client-status-full": [full, { reject: "remote-error:500:Server error" }], + }), + ); + const session = new MpModeSession(host); + await session.enter(); + await session.loadFullStatus(); + const snapshot = await session.loadFullStatus(); + expect(snapshot.status?.campaignIncomeBreakdown?.netPerTurn).toBe(590); + expect(snapshot.phase).toBe("ready"); + expect(snapshot.error).toBeNull(); + }); + + it("does nothing without a signed-in session", async () => { + const { host, calls } = scriptedHost({ fetch: {} }); + const session = new MpModeSession(host); + const snapshot = await session.loadFullStatus(); + expect(snapshot.status).toBeNull(); + expect(snapshot.phase).toBe("idle"); + expect(calls).toEqual([]); + }); +}); + describe("MpModeSession loadStatus", () => { it("projects the status scalars and keeps the loaded session intact", async () => { const { host, calls } = scriptedHost( diff --git a/src/mp/validators.test.ts b/src/mp/validators.test.ts index 272b7170..4dfbbe48 100644 --- a/src/mp/validators.test.ts +++ b/src/mp/validators.test.ts @@ -371,6 +371,7 @@ describe("parseClientStatus", () => { donorBaseLevel: 2, politicalInfluence: 61, favorability: 55, + campaignIncomeBreakdown: null, }); }); @@ -401,6 +402,47 @@ describe("parseClientStatus", () => { }); }); +describe("parseClientStatus with the campaign income breakdown", () => { + it("projects the per-turn income lines the wide layout carries", () => { + const view = parseClientStatus( + JSON.stringify({ + name: "Ada", + actions: 3, + funds: 1200, + cashOnHand: 1000, + homeCurrency: "USD", + campaignIncomeBreakdown: { + populationTier: "large", + baseGen: 500, + donorBonus: 120, + officeBonus: 80, + unionContribution: 40, + stateTax: 60, + nationalTax: 90, + totalTax: 150, + netPerTurn: 590, + }, + }), + ); + expect(view?.campaignIncomeBreakdown).toEqual({ + populationTier: "large", + baseGen: 500, + donorBonus: 120, + officeBonus: 80, + unionContribution: 40, + stateTax: 60, + nationalTax: 90, + totalTax: 150, + netPerTurn: 590, + }); + }); + + it("leaves the breakdown absent on the minimal layout", () => { + const view = parseClientStatus(JSON.stringify({ name: "Ada", actions: 3, funds: 1200 })); + expect(view?.campaignIncomeBreakdown).toBeNull(); + }); +}); + describe("parseCountries", () => { const full = () => JSON.stringify({ diff --git a/src/mp/validators.ts b/src/mp/validators.ts index a1565bf2..f9276944 100644 --- a/src/mp/validators.ts +++ b/src/mp/validators.ts @@ -481,6 +481,27 @@ export interface MpStatusView { donorBaseLevel: number | null; politicalInfluence: number | null; favorability: number | null; + /** + * The per-turn campaign income breakdown. The minimal status layout does + * not carry it, so it is null until the full layout is read on demand. + */ + campaignIncomeBreakdown: MpCampaignIncomeBreakdown | null; +} + +/** + * The reference's per-turn campaign income lines (AHDGame + * src/app/api/client-status/route.ts). Every figure is the server's own. + */ +export interface MpCampaignIncomeBreakdown { + populationTier: string | null; + baseGen: number | null; + donorBonus: number | null; + officeBonus: number | null; + unionContribution: number | null; + stateTax: number | null; + nationalTax: number | null; + totalTax: number | null; + netPerTurn: number | null; } function statusNumber(value: unknown): number | null { @@ -510,6 +531,7 @@ export function parseClientStatus(bodyText: string): MpStatusView | null { const politicalInfluence = statusNumber(record.politicalInfluence); const favorability = statusNumber(record.favorability); const homeCurrency = asTrimmedString(record.homeCurrency ?? null); + const breakdown = asRecord(record.campaignIncomeBreakdown); const scalars = [ actions, actionCap, @@ -535,6 +557,19 @@ export function parseClientStatus(bodyText: string): MpStatusView | null { donorBaseLevel, politicalInfluence, favorability, + campaignIncomeBreakdown: breakdown + ? { + populationTier: asTrimmedString(breakdown.populationTier ?? null), + baseGen: statusNumber(breakdown.baseGen), + donorBonus: statusNumber(breakdown.donorBonus), + officeBonus: statusNumber(breakdown.officeBonus), + unionContribution: statusNumber(breakdown.unionContribution), + stateTax: statusNumber(breakdown.stateTax), + nationalTax: statusNumber(breakdown.nationalTax), + totalTax: statusNumber(breakdown.totalTax), + netPerTurn: statusNumber(breakdown.netPerTurn), + } + : null, }; } diff --git a/src/ui/MpIncomeBreakdown510.test.tsx b/src/ui/MpIncomeBreakdown510.test.tsx new file mode 100644 index 00000000..bd6e5030 --- /dev/null +++ b/src/ui/MpIncomeBreakdown510.test.tsx @@ -0,0 +1,147 @@ +import { describe, expect, it, vi, afterEach } from "vitest"; +import { act, render, screen, within } from "@testing-library/react"; +import userEvent from "@testing-library/user-event"; +import { MpModeScreen } from "./MpModeScreen"; +import type { MpBridgeHost } from "../mp/bridge"; + +/** + * MP campaign income breakdown (#510). The reference status bar shows the + * per-turn campaign income lines in the funds details. The minimal status + * layout does not carry them, so Native reads the wide layout on demand + * when the funds details are opened - and never polls it. + */ +const USER = "507f1f77bcf86cd799439011"; + +const probe = JSON.stringify({ active: true, sub: USER, username: "Ada" }); +const me = JSON.stringify({ + character: { _id: "c1", name: "Ada", party: "Labor", homeState: "CA", cashOnHand: 1000, actions: 3, countryId: "US" }, + corporation: null, +}); +const turn = JSON.stringify({ currentTurn: 12, currentYear: 1953, startingYear: 1953, isActive: true, isProcessing: false, nextScheduledTurn: null }); +const inbox = JSON.stringify({ notifications: [], unreadCount: 0, total: 0, hasMore: false }); +const emptyMailInbox = JSON.stringify({ mails: [], unreadCount: 0, total: 0, hasMore: false }); +const emptyMailSent = JSON.stringify({ mails: [], total: 0, hasMore: false }); +const caps = JSON.stringify({ user: null, hasCharacter: false }); +const status = JSON.stringify({ name: "Ada", actions: 3, funds: 1200, cashOnHand: 1000, homeCurrency: "USD" }); +const fullStatus = JSON.stringify({ + name: "Ada", + actions: 3, + actionCap: 5, + funds: 1200, + cashOnHand: 1000, + homeCurrency: "USD", + campaignIncomeBreakdown: { + populationTier: "large", + baseGen: 500, + donorBonus: 120, + officeBonus: 80, + unionContribution: 40, + stateTax: 60, + nationalTax: 90, + totalTax: 150, + netPerTurn: 590, + }, +}); + +afterEach(() => { + vi.useRealTimers(); + vi.restoreAllMocks(); +}); + +function fakeHost(script: { fetch?: Record> }): { + host: MpBridgeHost; + calls: string[]; +} { + const calls: string[] = []; + const queues = new Map>(); + for (const [op, items] of Object.entries(script.fetch ?? {})) queues.set(`fetch:${op}`, [...items]); + return { + calls, + host: { + fetch: async (op: string) => { + calls.push(`fetch:${op}`); + const item = queues.get(`fetch:${op}`)?.shift(); + if (typeof item === "string") return item; + if (item) throw new Error(item.reject); + if (op === "client-nav") return caps; + throw new Error(`unexpected call fetch:${op}`); + }, + mutate: async () => { + throw new Error("unexpected mutate"); + }, + beginSignIn: async () => {}, + }, + }; +} + +async function settleMount() { + await act(async () => { + for (let i = 0; i < 200; i += 1) { + await Promise.resolve(); + } + }); +} + +describe("MpModeScreen campaign income breakdown", () => { + it("reads the wide status on demand when the funds details open", async () => { + const { host, calls } = fakeHost({ + fetch: { + "auth-session": [probe], + "character-me": [me], + "turn-status": [turn], + notifications: [inbox], + "mail-inbox": [emptyMailInbox], + "mail-sent": [emptyMailSent], + "client-status": [status], + "client-status-full": [fullStatus], + }, + }); + render( {}} />); + await settleMount(); + + const footer = within(screen.getByRole("contentinfo", { name: "Multiplayer navigation" })); + await userEvent.click(footer.getByRole("button", { name: "Campaign funds: 1,200 USD" })); + await act(async () => { + for (let i = 0; i < 200; i += 1) { + await Promise.resolve(); + } + }); + + const details = screen.getByRole("dialog", { name: "Campaign funds details" }); + const lines = within(details).getByRole("list", { name: "Campaign income per turn" }); + expect(within(lines).getByText(/Base generation: 500 USD/)).toBeInTheDocument(); + expect(within(lines).getByText(/Donor bonus: 120 USD/)).toBeInTheDocument(); + expect(within(lines).getByText(/Net per turn: 590 USD/)).toBeInTheDocument(); + expect(calls).toContain("fetch:client-status-full"); + }); + + it("keeps the details honest when the wide read fails", async () => { + const { host } = fakeHost({ + fetch: { + "auth-session": [probe], + "character-me": [me], + "turn-status": [turn], + notifications: [inbox], + "mail-inbox": [emptyMailInbox], + "mail-sent": [emptyMailSent], + "client-status": [status], + "client-status-full": [{ reject: "remote-error:500:Server error" }], + }, + }); + render( {}} />); + await settleMount(); + + const footer = within(screen.getByRole("contentinfo", { name: "Multiplayer navigation" })); + await userEvent.click(footer.getByRole("button", { name: "Campaign funds: 1,200 USD" })); + await act(async () => { + for (let i = 0; i < 200; i += 1) { + await Promise.resolve(); + } + }); + + const details = screen.getByRole("dialog", { name: "Campaign funds details" }); + expect(within(details).getByText(/Campaign funds: 1,200 USD/)).toBeInTheDocument(); + expect(within(details).queryByRole("list", { name: "Campaign income per turn" })).toBeNull(); + expect(screen.getByText("Playing as Ada")).toBeInTheDocument(); + }); +}); diff --git a/src/ui/MpModeScreen.tsx b/src/ui/MpModeScreen.tsx index 64b2698c..b0039169 100644 --- a/src/ui/MpModeScreen.tsx +++ b/src/ui/MpModeScreen.tsx @@ -511,6 +511,18 @@ export function MpModeScreen({ host, onAsk, askContent, onExit, preferences, onP }); }, [activeSection, snapshot.nations]); + /* Open a resource's details. The funds breakdown lives in the wide + * status layout, so opening the funds details reads it on demand + * instead of polling the heavier payload. */ + function openResourceDetails(id: string) { + setOpenResource(openResource === id ? null : id); + if (id === "funds" && !snapshot.status?.campaignIncomeBreakdown) { + void sessionRef.current!.loadFullStatus().then((next) => { + setSnapshot(next); + }); + } + } + /* Open one allowlisted support destination. A refused open reports * honestly instead of leaving a dead button behind. */ async function openSupport(destination: SupportDestination) { @@ -908,6 +920,10 @@ export function MpModeScreen({ host, onAsk, askContent, onExit, preferences, onP const statusFavorability = snapshot.status?.favorability ?? null; const statusCurrency = snapshot.status?.homeCurrency ?? null; const moneyLabel = (value: number) => (statusCurrency ? `${value.toLocaleString("en-US")} ${statusCurrency}` : value.toLocaleString("en-US")); + /* The campaign income lines the server reported, or an honest "not + * reported" when the figure is absent. */ + const incomeBreakdown = snapshot.status?.campaignIncomeBreakdown ?? null; + const incomeLine = (value: number | null) => (value === null ? "not reported" : moneyLabel(value)); const visibleElection = !needsSession && electionOpen ? snapshot.electionDetail : null; const visibleCorporation = !needsSession && corporationOpen ? snapshot.corporationDetail : null; @@ -2085,19 +2101,19 @@ export function MpModeScreen({ host, onAsk, askContent, onExit, preferences, onP {snapshot.presence && {snapshot.presence.online} online} } {snapshot.character &&
- {statusActions !== null && } - {statusFunds !== null && } - {statusCash !== null && } - {statusInfluence !== null && } - {statusFavorability !== null && } {snapshot.inbox &&