feat: improve onboarding by removing notifications, improving ux in configure

This commit is contained in:
leonardotrapani
2026-02-02 11:41:33 +01:00
parent 35f6c1d818
commit a9986b3da1
+6 -3
View File
@@ -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 {