Line

You are reading the unreleased docs (next). See latest (v0.9)

ui/client/features/notes/workflows/NotesMachine

Pure (WORKFLOW-001): what the Notes screen knows, and how each event changes it.

Cockpit client (features), next. Source: ui/client/features/notes/workflows/NotesMachine.ts.

Variables#

initialScreen#

const initialScreen: ScreenState

Defined in: ui/client/features/notes/workflows/NotesMachine.ts:10

Functions#

openRow()#

openRow(state): NoteRow | null

Defined in: ui/client/features/notes/workflows/NotesMachine.ts:81

The list row to show for the open note, with the page's unsaved text (so the list follows typing).

Parameters#

state

ScreenState

Returns#

NoteRow | null


screenReducer()#

screenReducer(state, action): ScreenState

Defined in: ui/client/features/notes/workflows/NotesMachine.ts:21

Parameters#

state

ScreenState

action

ScreenAction

Returns#

ScreenState