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:
Linus Rath
2026-03-11 18:40:09 +01:00
parent 61459c4923
commit ffeb534740
19 changed files with 558 additions and 100 deletions
+19 -1
View File
@@ -447,7 +447,8 @@
"calendar": "Calendario",
"filters": "Filtros",
"templates": "Plantillas",
"folders": "Carpetas"
"folders": "Carpetas",
"keywords": "Palabras clave"
},
"tab_groups": {
"general": "General",
@@ -487,6 +488,23 @@
"description": "Mostrar transiciones y efectos suaves"
}
},
"keywords": {
"title": "Palabras clave de correo",
"description": "Define palabras clave (etiquetas) para organizar tus correos con colores.",
"add_keyword": "Añadir palabra clave",
"reset_defaults": "Restablecer valores predeterminados",
"label_field": "Nombre para mostrar",
"label_placeholder": "ej. Trabajo, Personal, Urgente",
"id_field": "ID de palabra clave",
"id_placeholder": "ej. trabajo, personal",
"color_field": "Color",
"id_exists": "Esta ID de palabra clave ya existe",
"edit": "Editar palabra clave",
"delete": "Eliminar palabra clave",
"save": "Guardar",
"add": "Añadir",
"cancel": "Cancelar"
},
"language_region": {
"title": "Idioma y Región",
"description": "Configure las preferencias de idioma y región",