feat: improve onboarding by removing notifications, improving ux in configure
This commit is contained in:
@@ -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 {
|
return newConfirmScreen(state, "Enable Desktop Notifications?", desc, "Yes", "Show status notifications.", "No", "Disable notifications.", func() screen {
|
||||||
state.cfg.Notifications.Enabled = true
|
state.cfg.Notifications.Enabled = true
|
||||||
if state.cfg.Notifications.Type == "none" {
|
if state.cfg.Notifications.Type == "none" || state.cfg.Notifications.Type == "" {
|
||||||
state.cfg.Notifications.Type = ""
|
state.cfg.Notifications.Type = "desktop"
|
||||||
|
}
|
||||||
|
if state.onboarding {
|
||||||
|
return onboardingSummaryScreen(state, onBack)
|
||||||
}
|
}
|
||||||
return newNotificationTypeScreen(state, onBack)
|
return newNotificationTypeScreen(state, onBack)
|
||||||
}, func() screen {
|
}, func() screen {
|
||||||
@@ -652,7 +655,7 @@ func newNotificationMessagesScreen(state *wizardState, onBack func() screen) scr
|
|||||||
desc := fmt.Sprintf("Current: \"%s\"", display)
|
desc := fmt.Sprintf("Current: \"%s\"", display)
|
||||||
items = append(items, optionItem{title: label, desc: desc, value: def.ConfigKey})
|
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."}
|
desc := []string{"Select a message to edit."}
|
||||||
backFn := onBack
|
backFn := onBack
|
||||||
if state.onboarding {
|
if state.onboarding {
|
||||||
|
|||||||
Reference in New Issue
Block a user