MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / styleTitle

Function styleTitle

apps/kimi-code/src/tui/components/chrome/todo-panel.ts:202–211  ·  view source on GitHub ↗
(title: string, status: TodoStatus, colors: ColorPalette)

Source from the content-addressed store, hash-verified

200}
201
202function styleTitle(title: string, status: TodoStatus, colors: ColorPalette): string {
203 switch (status) {
204 case 'in_progress':
205 return chalk.hex(colors.text).bold(title);
206 case 'done':
207 return chalk.hex(colors.textDim).strikethrough(title);
208 case 'pending':
209 return chalk.hex(colors.text)(title);
210 }
211}
212
213const STATUS_LABELS: readonly { status: TodoStatus; label: string }[] = [
214 { status: 'done', label: 'done' },

Callers 1

renderRowFunction · 0.85

Calls 2

boldMethod · 0.80
strikethroughMethod · 0.80

Tested by

no test coverage detected