Compact graph columns and branch spacing and simplify Home hints
This commit is contained in:
@@ -27,6 +27,9 @@ func (m Model) footerContent() string {
|
||||
} else if len(m.lines) > 0 {
|
||||
style = lipgloss.NewStyle().Foreground(themeAccent).Bold(true)
|
||||
}
|
||||
if m.homePage() {
|
||||
label = strings.ReplaceAll(label, " · :logs", "")
|
||||
}
|
||||
label = style.Render(ansi.Truncate(label, m.width, ""))
|
||||
available := m.width - lipgloss.Width(label) - 1
|
||||
left := ""
|
||||
@@ -44,9 +47,7 @@ func (m Model) homeLines() []string {
|
||||
panelWidth = (m.width - 2) / 2
|
||||
}
|
||||
runs := []string{bar("Latest runs", fmt.Sprint(len(m.runs)), max(1, panelWidth-4), true),
|
||||
"r all runs · :status server & ntfy",
|
||||
lipgloss.NewStyle().Foreground(themeMuted).Render("Pipeline · Version · Outcome · Duration"),
|
||||
"Inspect with :runs; use :run in a pipeline."}
|
||||
lipgloss.NewStyle().Foreground(themeMuted).Render("Pipeline · Version · Outcome · Duration")}
|
||||
if len(m.runs) == 0 {
|
||||
runs = append(runs, "No runs yet.")
|
||||
}
|
||||
@@ -58,13 +59,13 @@ func (m Model) homeLines() []string {
|
||||
runs = append(runs, "")
|
||||
}
|
||||
if len(m.runs) > 8 {
|
||||
runs = append(runs, "More runs: r or :runs (latest 50)")
|
||||
runs = append(runs, fmt.Sprintf("%d more runs in history", len(m.runs)-8))
|
||||
}
|
||||
lines := []string{bar("Existing pipelines", fmt.Sprintf("%d", len(m.pipelines)), max(1, panelWidth-4), true), "r all runs · / search · n new", ""}
|
||||
lines := []string{bar("Existing pipelines", fmt.Sprintf("%d", len(m.pipelines)), max(1, panelWidth-4), true), ""}
|
||||
if !m.loaded {
|
||||
lines = append(lines, m.loading("Waiting for pipeline data…"))
|
||||
} else if len(m.pipelines) == 0 {
|
||||
lines = append(lines, "No pipelines yet. Press b for templates, d for drafts, or n to create one.")
|
||||
lines = append(lines, "No pipelines yet. Create one using commands.")
|
||||
} else {
|
||||
for _, p := range m.pipelines {
|
||||
lines = append(lines,
|
||||
|
||||
Reference in New Issue
Block a user