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

Method renderNarrowActivityLine

internal/tui/dashboard.go:331–347  ·  view source on GitHub ↗

renderNarrowActivityLine renders the activity line for narrow terminals.

()

Source from the content-addressed store, hash-verified

329
330// renderNarrowActivityLine renders the activity line for narrow terminals.
331func (a *App) renderNarrowActivityLine() string {
332 activity := a.lastActivity
333 if activity == "" {
334 activity = "Ready"
335 }
336
337 // More aggressive truncation for narrow mode
338 maxLen := a.width - 2
339 if len(activity) > maxLen && maxLen > 3 {
340 activity = activity[:maxLen-3] + "..."
341 }
342
343 // Use the centralized activity style system
344 activityStyle := GetActivityStyle(a.state)
345
346 return activityStyle.Render(activity)
347}
348
349// renderActivityLine renders the current activity status line.
350func (a *App) renderActivityLine() string {

Callers 1

renderNarrowFooterMethod · 0.95

Calls 2

GetActivityStyleFunction · 0.85
RenderMethod · 0.45

Tested by

no test coverage detected