melissa kate
<< Doppelgänger

Dialogue Editor pattern — flat chain with per-card collapse

The Dialogue Editor (engine/story-maker/src/components/events/DialogueEditor.tsx) renders the active conversation path as a flat vertical stack of cards, one per dialogue beat. Each card is independently collapsible.

Collapsed state: a single inline line Speaker: dialogue text → "active reply" with an EXPAND button on the right.

Expanded state: full editor (speaker / mood / dialogue text / response tabs / active response detail). A COLLAPSE button is absolutely positioned in the top-right corner — mirrors the EXPAND position exactly so the eye lands in the same spot.

Default behavior: ancestors collapsed, leaf expanded on first mount.

Why:

How to apply: