From a9986b3da1e4d03598cf74e43c18121cc2d82059 Mon Sep 17 00:00:00 2001 From: leonardotrapani Date: Mon, 2 Feb 2026 11:41:29 +0100 Subject: [PATCH] feat: improve onboarding by removing notifications, improving ux in configure --- internal/tui/flows.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/internal/tui/flows.go b/internal/tui/flows.go index 256145a..8a717bd 100644 --- a/internal/tui/flows.go +++ b/internal/tui/flows.go @@ -591,8 +591,11 @@ func newNotificationsScreen(state *wizardState, onBack func() screen) screen { } return newConfirmScreen(state, "Enable Desktop Notifications?", desc, "Yes", "Show status notifications.", "No", "Disable notifications.", func() screen { state.cfg.Notifications.Enabled = true - if state.cfg.Notifications.Type == "none" { - state.cfg.Notifications.Type = "" + if state.cfg.Notifications.Type == "none" || state.cfg.Notifications.Type == "" { + state.cfg.Notifications.Type = "desktop" + } + if state.onboarding { + return onboardingSummaryScreen(state, onBack) } return newNotificationTypeScreen(state, onBack) }, func() screen { @@ -652,7 +655,7 @@ func newNotificationMessagesScreen(state *wizardState, onBack func() screen) scr desc := fmt.Sprintf("Current: \"%s\"", display) items = append(items, optionItem{title: label, desc: desc, value: def.ConfigKey}) } - items = append(items, optionItem{title: "Back", desc: "Return without editing.", value: "back"}) + items = append(items, optionItem{title: "Done", desc: "Return to menu.", value: "back"}) desc := []string{"Select a message to edit."} backFn := onBack if state.onboarding {