+ Switch the menubar to weekly budget when remaining drops this low +
+
diff --git a/src/stores/app-preferences-store.ts b/src/stores/app-preferences-store.ts
index 98ced539..fd1202d7 100644
--- a/src/stores/app-preferences-store.ts
+++ b/src/stores/app-preferences-store.ts
@@ -7,12 +7,14 @@ import {
DEFAULT_RESET_TIMER_DISPLAY_MODE,
DEFAULT_START_ON_LOGIN,
DEFAULT_THEME_MODE,
+ DEFAULT_WEEKLY_WARNING_THRESHOLD_PERCENT,
type AutoUpdateIntervalMinutes,
type DisplayMode,
type GlobalShortcut,
type MenubarIconStyle,
type ResetTimerDisplayMode,
type ThemeMode,
+ type WeeklyWarningThresholdPercent,
} from "@/lib/settings"
type AppPreferencesStore = {
@@ -23,6 +25,7 @@ type AppPreferencesStore = {
globalShortcut: GlobalShortcut
startOnLogin: boolean
menubarIconStyle: MenubarIconStyle
+ weeklyWarningThresholdPercent: WeeklyWarningThresholdPercent
setAutoUpdateInterval: (value: AutoUpdateIntervalMinutes) => void
setThemeMode: (value: ThemeMode) => void
setDisplayMode: (value: DisplayMode) => void
@@ -30,6 +33,7 @@ type AppPreferencesStore = {
setGlobalShortcut: (value: GlobalShortcut) => void
setStartOnLogin: (value: boolean) => void
setMenubarIconStyle: (value: MenubarIconStyle) => void
+ setWeeklyWarningThresholdPercent: (value: WeeklyWarningThresholdPercent) => void
resetState: () => void
}
@@ -41,6 +45,7 @@ const initialState = {
globalShortcut: DEFAULT_GLOBAL_SHORTCUT,
startOnLogin: DEFAULT_START_ON_LOGIN,
menubarIconStyle: DEFAULT_MENUBAR_ICON_STYLE,
+ weeklyWarningThresholdPercent: DEFAULT_WEEKLY_WARNING_THRESHOLD_PERCENT,
}
export const useAppPreferencesStore = create