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

Method renderActivityLine

internal/tui/dashboard.go:350–366  ·  view source on GitHub ↗

renderActivityLine renders the current activity status line.

()

Source from the content-addressed store, hash-verified

348
349// renderActivityLine renders the current activity status line.
350func (a *App) renderActivityLine() string {
351 activity := a.lastActivity
352 if activity == "" {
353 activity = "Ready to start"
354 }
355
356 // Truncate if too long
357 maxLen := a.width - 4
358 if len(activity) > maxLen && maxLen > 3 {
359 activity = activity[:maxLen-3] + "..."
360 }
361
362 // Use the centralized activity style system
363 activityStyle := GetActivityStyle(a.state)
364
365 return activityStyle.Render(activity)
366}
367
368// renderStoriesPanel renders the stories list panel.
369func (a *App) renderStoriesPanel(width, height int) string {

Callers 1

renderFooterMethod · 0.95

Calls 2

GetActivityStyleFunction · 0.85
RenderMethod · 0.45

Tested by

no test coverage detected