Improve empty state messages with actionable guidance

This commit is contained in:
Calmcacil
2026-01-12 23:03:00 +01:00
parent 8b49fbfd3a
commit 575faa8c68

View File

@@ -136,11 +136,6 @@ func (s *ListScreen) Update(msg tea.Msg) (Screen, tea.Cmd) {
}
// View renders the list screen
// Breadcrumb: Home
breadcrumb := components.RenderBreadcrumb([]components.BreadcrumbItem{
{Label: "Clients", ID: "list"},
})
func (s *ListScreen) View() string {
if len(s.clients) == 0 {
// Empty state with helpful guidance
@@ -411,7 +406,7 @@ type clientsLoadedMsg struct {
clients []ClientWithStatus
}
// errMsg is sent when an error occurs
type errMsg struct {
err error
// ErrMsg is sent when an error occurs
type ErrMsg struct {
Err error
}