From c71c83ef8845571addd431bae3102d4388da682f Mon Sep 17 00:00:00 2001 From: DCreason Date: Fri, 20 Mar 2026 19:33:02 +0000 Subject: [PATCH] debloat the ui a lil --- app.go | 12 +++++------- tui.go | 1 - 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/app.go b/app.go index b777fb1..bd313af 100644 --- a/app.go +++ b/app.go @@ -126,14 +126,12 @@ func (a *App) Run() error { func (a *App) chooseStartupWorkflow() (string, error) { return a.chooseMenu( "Choose A Workflow", - "Server shares and client mounts in one place.", + "", []string{ - "Use the server tools to edit smb.conf and manage share accounts.", - "Use the client tools to add or maintain CIFS mounts in /etc/fstab.", }, []menuOption{ - {Key: "s", Value: "server", Label: "Server shares"}, - {Key: "c", Value: "client", Label: "Client mounts"}, + {Key: "s", Value: "server", Label: "configure server shares"}, + {Key: "c", Value: "client", Label: "configure client mounts"}, {Key: "q", Value: "quit", Label: "Quit"}, }, ) @@ -502,7 +500,7 @@ func (a *App) handleMissingConfig() (*Document, error) { a.println("You may be asked for your administrator password.") a.flush() - install, err := a.confirm("Install Samba server now", true) + install, err := a.confirm("Samba was not detected on this system. \nInstall Samba server now?", true) if err != nil { return nil, err } @@ -1150,7 +1148,7 @@ func (a *App) confirm(label string, defaultYes bool) (bool, error) { options[0], options[1] = options[1], options[0] } - answer, err := a.chooseMenu("Confirm Action", label, nil, options) + answer, err := a.chooseMenu("", label, nil, options) if err != nil { return false, err } diff --git a/tui.go b/tui.go index fa30ea7..63bed54 100644 --- a/tui.go +++ b/tui.go @@ -342,7 +342,6 @@ func (m menuModel) View() string { if len(m.intro) > 0 { bodyParts = append(bodyParts, m.theme.renderSection(width, "Context", m.intro)) } - bodyParts = append(bodyParts, m.theme.sectionTitle.Width(contentWidth).Render("Actions")) bodyParts = append(bodyParts, strings.Join(rows, "\n")) return m.theme.renderFrame(