Connect an original companion face and enlarged rules to the private Atreides panel and battle composer, authorized full-plan inspection, public revealed plans and an internal reference topic. Private loss progress and availability come only from the existing owner projection; plan components receive only inclusion. Rules calculations, save shape, AI strategy and mode gates remain unchanged. Add focused projection, sealed/revealed rendering, JSON restoration, private-status and asset regressions. All 4950 offline tests, types, lint and production build pass. Independent privacy/rules review found no material findings. Browser checks verify reference opening, loaded artwork, Escape/Close focus return, mobile bounds and keyboard scrolling to the final rule. The focusable scroll region has a documented narrow lint exception. Earlier image-convention and focusability lint failures are retained in private evidence. HTTP tests are unnecessary for this presentation-only change. All 1373 rooms, 2883 seats and original auxiliary rows remain unchanged; SQLite integrity and foreign keys pass. Existing server reused without restart. Screenshot capture, complete live Advanced browser acceptance and final manufactured-component/art verification remain open. No rules gate is opened by this checkpoint. Private evidence: 20260921-kwisatz-inspection. Verified source tree: 1181471eed47b86390882999a2ffce0db6a44b1379c7e8f7fc406bef39a94179
45 lines
1.2 KiB
TypeScript
45 lines
1.2 KiB
TypeScript
'use client';
|
||
|
||
import { CardInspector } from './card-inspector';
|
||
import { KwisatzInspector } from './kwisatz-inspector';
|
||
import {
|
||
LeaderInspector,
|
||
type LeaderDisplayIdentity,
|
||
} from './leader-inspector';
|
||
import type { VisibleCard } from '@/game/card-presentation';
|
||
|
||
/** The parent supplies only faces already authorized by its private game view. */
|
||
export function BattleComponentInspection({
|
||
cards,
|
||
leader,
|
||
playerName,
|
||
kwisatz,
|
||
}: {
|
||
cards: readonly VisibleCard[];
|
||
leader?: LeaderDisplayIdentity;
|
||
playerName: string;
|
||
kwisatz?: boolean;
|
||
}) {
|
||
if (!cards.length && !leader && !kwisatz) return null;
|
||
return (
|
||
<details className="battle-component-inspection">
|
||
<summary>Inspect {playerName}’s plan components</summary>
|
||
<div className="visible-component-list">
|
||
{kwisatz && <KwisatzInspector context="plan" />}
|
||
{leader && (
|
||
<div>
|
||
<strong>{leader.name}</strong>
|
||
<LeaderInspector identity={leader} />
|
||
</div>
|
||
)}
|
||
{cards.map((card) => (
|
||
<div key={card.id}>
|
||
<strong>{card.name}</strong>
|
||
<CardInspector card={card} />
|
||
</div>
|
||
))}
|
||
</div>
|
||
</details>
|
||
);
|
||
}
|