Skip to content

Commit 5be537a

Browse files
cpcloudclaude
andcommitted
feat(ui): rose pill for insights section, drop refresh status message
- Insights pill uses muted (rose) color to visually distinguish LLM-generated content from deterministic dashboard sections - Remove "refreshing insights" status bar message -- the spinner on the pill is sufficient feedback Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 607f278 commit 5be537a

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

internal/app/dashboard.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,8 @@ func (m *Model) dashSectionHeader(
705705
style = m.styles.DashSectionWarn()
706706
case dashSectionOverdue:
707707
style = m.styles.DashSectionAlert()
708+
case dashSectionInsights:
709+
style = m.styles.DashSectionMuted()
708710
}
709711
if dimmed {
710712
style = appStyles.Base().

internal/app/model.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,9 +694,7 @@ func (m *Model) handleDashboardKeys(key tea.KeyMsg) (tea.Cmd, bool) {
694694
return nil, true
695695
case keyR:
696696
if m.insightsWanted() {
697-
cmd := m.refreshInsights()
698-
m.setStatusInfo("refreshing insights")
699-
return cmd, true
697+
return m.refreshInsights(), true
700698
}
701699
return nil, true
702700
case keyS, keyShiftS, keyC, keyShiftC, keyI, keySlash, keyN, keyShiftN, keyBang:

internal/app/styles.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ type Styles struct {
4343
modeEdit lipgloss.Style
4444
dashSectionWarn lipgloss.Style
4545
dashSectionAlert lipgloss.Style
46+
dashSectionMuted lipgloss.Style
4647
calCursor lipgloss.Style
4748
calSelected lipgloss.Style
4849
modelActiveHL lipgloss.Style
@@ -171,6 +172,11 @@ func DefaultStyles() *Styles {
171172
Background(warning).
172173
Padding(0, 1).
173174
Bold(true),
175+
dashSectionMuted: lipgloss.NewStyle().
176+
Foreground(onAccent).
177+
Background(muted).
178+
Padding(0, 1).
179+
Bold(true),
174180
calCursor: lipgloss.NewStyle().
175181
Background(accent).
176182
Foreground(lipgloss.AdaptiveColor{Light: "#FFFFFF", Dark: "#000000"}).
@@ -347,6 +353,7 @@ func (s *Styles) TableSelected() lipgloss.Style { return s.tableSelected }
347353
func (s *Styles) ModeEdit() lipgloss.Style { return s.modeEdit }
348354
func (s *Styles) DashSectionWarn() lipgloss.Style { return s.dashSectionWarn }
349355
func (s *Styles) DashSectionAlert() lipgloss.Style { return s.dashSectionAlert }
356+
func (s *Styles) DashSectionMuted() lipgloss.Style { return s.dashSectionMuted }
350357
func (s *Styles) CalCursor() lipgloss.Style { return s.calCursor }
351358
func (s *Styles) CalSelected() lipgloss.Style { return s.calSelected }
352359
func (s *Styles) ModelActiveHL() lipgloss.Style { return s.modelActiveHL }

0 commit comments

Comments
 (0)