feat: Change the dev mode defaults to include nested tags

This commit is contained in:
Mathy Vanvoorden
2026-07-29 19:52:31 +02:00
parent d52dfebad4
commit ea7892b497
4 changed files with 46 additions and 9 deletions
+13 -2
View File
@@ -215,6 +215,17 @@ export const DEFAULT_KEYWORDS: KeywordDefinition[] = [
{ id: 'pink', label: 'Pink', color: 'pink' },
];
export const DEV_KEYWORDS: KeywordDefinition[] = [
{ id: 'work', label: 'Work', color: 'blue' },
{ id: 'work/clients', label: 'Clients', color: 'teal' },
{ id: 'work/clients/acme', label: 'Acme', color: 'green' },
{ id: 'personal', label: 'Personal', color: 'purple' },
{ id: 'personal/finance', label: 'Finance', color: 'amber' },
{ id: 'receipts', label: 'Receipts', color: 'gray' },
];
const USING_MOCK_SERVER = process.env.NEXT_PUBLIC_DEV_MOCK_JMAP === 'true';
interface SettingsState {
// Appearance
fontSize: FontSize;
@@ -557,8 +568,8 @@ const DEFAULT_SETTINGS = {
folderIcons: {} as Record<string, string>,
// Keywords
emailKeywords: DEFAULT_KEYWORDS,
nestedTags: false,
emailKeywords: USING_MOCK_SERVER ? DEV_KEYWORDS : DEFAULT_KEYWORDS,
nestedTags: USING_MOCK_SERVER,
// Attachment Reminder
attachmentReminderEnabled: true,