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
Returns#
StoryIndicatorState | null