Add setting for default start page

This commit is contained in:
Nicholas 2025-11-19 20:11:21 -05:00
parent 228cd08a3e
commit a6f1649e24
4 changed files with 16 additions and 1 deletions

View file

@ -35,6 +35,7 @@ export const DEFAULT_GLOBAL_CONFIG: GlobalConfigState = {
`,
isOverlayIndicatorEnabled: false,
customTheme: 'default',
defaultStartPage: 0,
},
shortSyntax: {
isEnableProject: true,

View file

@ -165,5 +165,17 @@ export const MISC_SETTINGS_FORM_CFG: ConfigFormSection<MiscConfig> = {
})),
},
},
{
key: 'defaultStartPage',
type: 'select',
defaultValue: 0,
templateOptions: {
label: T.GCF.MISC.DEFAULT_PROJECT /* TODO: add a label */,
options: [
{ label: T.G.TODAY_TAG_TITLE, value: 0 },
{ label: T.G.INBOX_PROJECT_TITLE, value: 1 },
],
},
},
],
};

View file

@ -26,6 +26,7 @@ export type MiscConfig = Readonly<{
isTrayShowCurrentCountdown?: boolean;
isOverlayIndicatorEnabled?: boolean;
customTheme?: string;
defaultStartPage?: number;
unsplashApiKey?: string | null;
}>;

View file

@ -392,7 +392,8 @@
"isShowTipLonger": false,
"taskNotesTpl": "**How can I best achieve it now?**\n\n**What do I want?**\n\n**Why do I want it?**\n",
"isOverlayIndicatorEnabled": false,
"customTheme": "default"
"customTheme": "default",
"defaultStartPage": 0
},
"shortSyntax": {
"isEnableProject": true,