Improve empty state messages with actionable guidance
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user