Line

ui/client/features/git-session/workflows/GitSession

The commit-on-save session's own small state machine: loading, busy, and the last error.

Cockpit client (features), v0.9. Source: ui/client/features/git-session/workflows/GitSession.ts.

Type Aliases#

GitSessionAction#

GitSessionAction = { status: GitSessionStatus; type: "LOADED"; } | { message: string; type: "LOAD_FAILED"; } | { type: "BUSY"; } | { message?: string | null; type: "DONE"; }

Defined in: ui/client/features/git-session/workflows/GitSession.ts:13


GitSessionState#

GitSessionState = object

Defined in: ui/client/features/git-session/workflows/GitSession.ts:6

Properties#

busy

busy: boolean

Defined in: ui/client/features/git-session/workflows/GitSession.ts:9

An action is in flight (answering the prompt, committing, changing the config).

error

error: string | null

Defined in: ui/client/features/git-session/workflows/GitSession.ts:10

status

status: GitSessionStatus | null

Defined in: ui/client/features/git-session/workflows/GitSession.ts:7

Variables#

initialGitSessionState#

const initialGitSessionState: GitSessionState

Defined in: ui/client/features/git-session/workflows/GitSession.ts:19

Functions#

gitSessionReducer()#

gitSessionReducer(state, action): GitSessionState

Defined in: ui/client/features/git-session/workflows/GitSession.ts:21

Parameters#

state

GitSessionState

action

GitSessionAction

Returns#

GitSessionState