summaryrefslogtreecommitdiff
path: root/internal/tui/dashboard/tabs.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-24 09:45:02 +0200
committerPaul Buetow <paul@buetow.org>2026-02-24 09:45:02 +0200
commitf2d79f6459bbe1aa9bae2946e9773141cb184463 (patch)
treee683b901d2432ac7e28cd6e80f468da38edc280b /internal/tui/dashboard/tabs.go
parent7fc16d6c98feae7aaee58666dc552384ceb4895e (diff)
tui: wire full dashboard tabs and improve overview summaries
Diffstat (limited to 'internal/tui/dashboard/tabs.go')
-rw-r--r--internal/tui/dashboard/tabs.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/internal/tui/dashboard/tabs.go b/internal/tui/dashboard/tabs.go
index d456b44..9965d1f 100644
--- a/internal/tui/dashboard/tabs.go
+++ b/internal/tui/dashboard/tabs.go
@@ -1,7 +1,7 @@
package dashboard
import (
- "ior/internal/tui"
+ common "ior/internal/tui/common"
"strings"
"github.com/charmbracelet/lipgloss"
@@ -80,9 +80,9 @@ func renderTabBar(active Tab, width int) string {
for _, tab := range allTabs {
label := tab.String()
if tab == active {
- parts = append(parts, tui.TabActiveStyle.Render(label))
+ parts = append(parts, common.TabActiveStyle.Render(label))
} else {
- parts = append(parts, tui.TabInactiveStyle.Render(label))
+ parts = append(parts, common.TabInactiveStyle.Render(label))
}
}
@@ -93,11 +93,11 @@ func renderTabBar(active Tab, width int) string {
return lipgloss.NewStyle().Width(width).Render(bar)
}
-func renderHelpBar(keys tui.KeyMap) string {
+func renderHelpBar(keys common.KeyMap) string {
parts := make([]string, 0, len(keys.DashboardShortHelp()))
for _, binding := range keys.DashboardShortHelp() {
help := binding.Help()
parts = append(parts, help.Key+" "+help.Desc)
}
- return tui.HelpBarStyle.Render(strings.Join(parts, " • "))
+ return common.HelpBarStyle.Render(strings.Join(parts, " • "))
}