Skip to content

waygraph / applyTodoPhase

Function: applyTodoPhase() ​

applyTodoPhase(prev, phase): object

Defined in: src/demo/narration/todo-dock.ts:150

Carry-forward rules for the floating todo dock across demo steps.

  • clear: author called hideTodos / empty todos()
  • set: author authored a new dock this phase
  • keep: author omitted todos — preserve previous dock (do not wipe)

Parameters ​

prev ​

TodoDockState | undefined

phase ​

todoDock? ​

TodoDockState

todoId? ​

string

todoPos? ​

"left" | "right"

todos? ​

WaygraphTodoItem[]

todoSync? ​

"set" | "clear" | "keep"

Returns ​

object

dock ​

dock: TodoDockState | undefined

sync ​

sync: "set" | "clear" | "keep"

waygraph 0.18.3 (alpha) · Node 24+ · peer @playwright/test ^1.40.0 · syntax may change before 1.0: see what was removed