feat: implement email keyword management with color tagging
- Introduced a new settings section for managing email keywords (labels/tags) with associated colors. - Updated email context menu, viewer, and list item components to support the new keyword system. - Refactored color tag handling to accommodate both new $label: and legacy $color: prefixes. - Added utility functions for retrieving email color tags based on keywords. - Enhanced localization files to include translations for the new keyword management features. - Updated the settings store to manage keyword definitions, including add, update, delete, and reorder functionalities. - Added tests for the new keyword handling logic.
This commit is contained in:
+19
-1
@@ -459,7 +459,8 @@
|
||||
"calendar": "Calendar",
|
||||
"filters": "Filters",
|
||||
"templates": "Templates",
|
||||
"folders": "Folders"
|
||||
"folders": "Folders",
|
||||
"keywords": "Keywords"
|
||||
},
|
||||
"tab_groups": {
|
||||
"general": "General",
|
||||
@@ -499,6 +500,23 @@
|
||||
"description": "Show smooth transitions and effects"
|
||||
}
|
||||
},
|
||||
"keywords": {
|
||||
"title": "Email Keywords",
|
||||
"description": "Define keywords (labels/tags) to organize your emails with colors. These are stored as JMAP keywords on the server.",
|
||||
"add_keyword": "Add Keyword",
|
||||
"reset_defaults": "Reset to Defaults",
|
||||
"label_field": "Display Name",
|
||||
"label_placeholder": "e.g. Work, Personal, Urgent",
|
||||
"id_field": "Keyword ID",
|
||||
"id_placeholder": "e.g. work, personal",
|
||||
"color_field": "Color",
|
||||
"id_exists": "This keyword ID already exists",
|
||||
"edit": "Edit keyword",
|
||||
"delete": "Delete keyword",
|
||||
"save": "Save",
|
||||
"add": "Add",
|
||||
"cancel": "Cancel"
|
||||
},
|
||||
"language_region": {
|
||||
"title": "Language & Region",
|
||||
"description": "Configure language and regional preferences",
|
||||
|
||||
Reference in New Issue
Block a user