Line

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

ui/client/features/story/domain/StoryIndicatorState

Pure (DOMAIN-001): maps StoriesApi.get's response to a StoryIndicatorState -- the subset of design 9.8's states a stored file can answer on its own (no-story, edited-by-hand, stale-vs-code, in-sync).

Cockpit client (features), next. Source: ui/client/features/story/domain/StoryIndicatorState.ts.

Functions#

buildStoryIndicatorState()#

buildStoryIndicatorState(view): StoryIndicatorState | null

Defined in: ui/client/features/story/domain/StoryIndicatorState.ts:21

null when the view could not be read, or answered by a state this mapper does not cover yet (see above) -- callers should render nothing, not guess.

Parameters#

view

StoryView

Returns#

StoryIndicatorState | null