MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / GetStatusIcon

Function GetStatusIcon

internal/tui/styles.go:218–226  ·  view source on GitHub ↗

GetStatusIcon returns the appropriate icon for a story's status.

(passed, inProgress bool)

Source from the content-addressed store, hash-verified

216
217// GetStatusIcon returns the appropriate icon for a story's status.
218func GetStatusIcon(passed, inProgress bool) string {
219 if passed {
220 return statusPassedStyle.Render(IconPassed)
221 }
222 if inProgress {
223 return statusInProgressStyle.Render(IconInProgress)
224 }
225 return statusPendingStyle.Render(IconPending)
226}
227
228// GetStateStyle returns the appropriate style for an app state.
229func GetStateStyle(state AppState) lipgloss.Style {

Callers 2

renderStoriesPanelMethod · 0.85
renderDetailsPanelMethod · 0.85

Calls 1

RenderMethod · 0.45

Tested by

no test coverage detected