renderActivityLine renders the current activity status line.
()
| 348 | |
| 349 | // renderActivityLine renders the current activity status line. |
| 350 | func (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. |
| 369 | func (a *App) renderStoriesPanel(width, height int) string { |
no test coverage detected