feat: with nothing to show, the right pane says how to get started
CI / Checks (pull_request) Successful in 23s
PR title / Conventional title (pull_request) Successful in 2s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kebandClaude Opus 5.5 committed 2026-10-11 13:37:21 +02:00
1 parent 9b0329e9da
commit 164d933bea
4 files changed
+107 -1

No files matched your search

+6
View File
@@ -53,6 +53,8 @@ func (m *Model) syncFields() tea.Cmd {
case paneSources:
r, ok := m.sources.Selected()
switch {
case m.nothingFound():
m.fields.Show("get started", m.getStartedFields())
case !ok:
m.fields.Show("", nil)
case m.selectedProblem() != "":
@@ -106,6 +108,10 @@ func (m *Model) showAccount(r sourceRow) tea.Cmd {
}
fields = append(fields, groupFields(st)...)
}
if res, done := m.sourceResults[r.provider]; done && res.err == nil && len(res.sources) == 0 {
hint := emptyHint(p.Kind())
fields = append(fields, panes.Field{Label: "nothing", Value: "found: try", Info: true}, panes.Field{Value: hint.Value, URL: hint.URL})
}
m.fields.Show(p.Label(), fields)
return cmd
}