HEL-828: wire life/persona/receipt confirmation onto 4575b275 (original author delivery, 12 files per MANIFEST in HEL-828-source-4575b275.zip)
Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
co-authored by
multica-agent
parent
4575b27515
commit
58d65aea05
@@ -13,13 +13,16 @@ export interface PresenterProps {
|
||||
observation: string;
|
||||
// "她此刻": what she is doing, read from the same life state as the home page (never from the playing clip).
|
||||
now?: string;
|
||||
// Real only: the life backend's honest status word (HEL-828); absent means not wired.
|
||||
lifeLabel?: string;
|
||||
onApproach: () => void;
|
||||
}
|
||||
// One shared room (HEL-799, approved 01a16810): far = her room and the rainy city, middle = her, near = your table.
|
||||
// Only consumes scene. No life writes, no synthesis, no microphone/camera APIs. The two stills are reference frames,
|
||||
// not her real daily video; the camera move is the approved push-in, not body motion.
|
||||
export function Presenter({ scene, space, theme, instant, real = false, observation, now = '', onApproach }: PresenterProps) {
|
||||
export function Presenter({ scene, space, theme, instant, real = false, observation, now = '', lifeLabel, onApproach }: PresenterProps) {
|
||||
const [failed, setFailed] = useState(false);
|
||||
const lifeWord = lifeLabel ? `生活 · ${lifeLabel}` : '生活尚未接通';
|
||||
const cam = useRef<HTMLDivElement>(null), room = useRef<HTMLDivElement>(null), talk = useRef<HTMLDivElement>(null), moon = useRef<HTMLElement>(null), near = useRef<HTMLDivElement>(null), hit = useRef<HTMLButtonElement>(null), rainRoom = useRef<HTMLCanvasElement>(null), rainTalk = useRef<HTMLCanvasElement>(null);
|
||||
const chip = useRef<HTMLDivElement>(null);
|
||||
// While a page is open on your side of the table, "她此刻" sits just under her in the room. It follows the hit area
|
||||
@@ -84,11 +87,11 @@ export function Presenter({ scene, space, theme, instant, real = false, observat
|
||||
<div className="r-vignette"/><div className="r-veil"/>
|
||||
</div>
|
||||
<button className="her-hit" ref={hit} aria-label="走近她,开始交谈" tabIndex={space === 'home' ? 0 : -1} disabled={space !== 'home'} onClick={onApproach}><span>和她说话</span></button>
|
||||
{now && <div className="now-chip glass" ref={chip} aria-hidden={space !== 'pane'}><i/><span><b>她此刻 · {now}</b><small>{real ? '生活尚未接通 · 画面为参考静帧' : '来自演示生活状态 · 画面为参考静帧'}</small></span></div>}
|
||||
{now && <div className="now-chip glass" ref={chip} aria-hidden={space !== 'pane'}><i/><span><b>她此刻 · {now}</b><small>{real ? `${lifeWord} · 画面为参考静帧` : '来自演示生活状态 · 画面为参考静帧'}</small></span></div>}
|
||||
<div className="room-labels">
|
||||
{failed && <span className="chip glass">画面暂时没打开,文字仍可使用。</span>}
|
||||
{observation && <span className="chip glass observe show">{observation}</span>}
|
||||
</div>
|
||||
<p className="ref-note" data-activity={scene.activity}>{real ? '生活尚未接通' : '演示状态'} · 人物为旧参考静帧 · 不代表新日常 · 未接入真实动态</p>
|
||||
<p className="ref-note" data-activity={scene.activity}>{real ? lifeWord : '演示状态'} · 人物为旧参考静帧 · 不代表新日常 · 未接入真实动态</p>
|
||||
</>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user