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
|
// View renders the list screen
|
||||||
// Breadcrumb: Home
|
|
||||||
breadcrumb := components.RenderBreadcrumb([]components.BreadcrumbItem{
|
|
||||||
{Label: "Clients", ID: "list"},
|
|
||||||
})
|
|
||||||
|
|
||||||
func (s *ListScreen) View() string {
|
func (s *ListScreen) View() string {
|
||||||
if len(s.clients) == 0 {
|
if len(s.clients) == 0 {
|
||||||
// Empty state with helpful guidance
|
// Empty state with helpful guidance
|
||||||
@@ -411,7 +406,7 @@ type clientsLoadedMsg struct {
|
|||||||
clients []ClientWithStatus
|
clients []ClientWithStatus
|
||||||
}
|
}
|
||||||
|
|
||||||
// errMsg is sent when an error occurs
|
// ErrMsg is sent when an error occurs
|
||||||
type errMsg struct {
|
type ErrMsg struct {
|
||||||
err error
|
Err error
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user