feat: refactor email tagging system to use labels instead of colors

- Updated EmailContextMenu to replace color tag functionality with label tags.
- Modified EmailListItem to display label badges for emails based on keywords.
- Enhanced EmailViewer to include a tag picker for emails.
- Adjusted ThreadListItem to show label badges for email subjects.
- Added tests for email list item and keyword settings to ensure proper functionality of the new tagging system.
- Updated localization files to reflect changes from color tags to labels in multiple languages.
This commit is contained in:
Linus Rath
2026-03-11 18:56:43 +01:00
parent ffeb534740
commit 454d51e283
16 changed files with 610 additions and 134 deletions
+5 -4
View File
@@ -155,9 +155,10 @@
"back_to_list": "Zurück zur Liste",
"message_details": "Nachrichtendetails",
"more_reply_options": "Weitere Antwortoptionen",
"set_color": "Farbe festlegen",
"set_color": "Label setzen",
"tag": "Label",
"more_actions": "Weitere Aktionen",
"remove_color": "Farbe entfernen",
"remove_color": "Label entfernen",
"more_count": "+{count} weitere",
"characters_count": "{count} Zeichen",
"quick_reply_placeholder": "Eine kurze Antwort schreiben...",
@@ -929,8 +930,8 @@
"delete": "Löschen",
"mark_as_spam": "Spam melden",
"not_spam": "Kein Spam",
"color_tag": "Farb-Tag",
"remove_color": "Farbe entfernen",
"color_tag": "Label",
"remove_color": "Label entfernen",
"items_selected": "{count} E-Mails ausgewählt"
},
"shortcuts": {
+5 -4
View File
@@ -156,9 +156,10 @@
"back_to_list": "Back to list",
"message_details": "Message Details",
"more_reply_options": "More reply options",
"set_color": "Set color",
"set_color": "Set tag",
"tag": "Tag",
"more_actions": "More actions",
"remove_color": "Remove color",
"remove_color": "Remove tag",
"more_count": "+{count} more",
"characters_count": "{count} characters",
"quick_reply_placeholder": "Write a quick reply...",
@@ -974,8 +975,8 @@
"delete": "Delete",
"mark_as_spam": "Report spam",
"not_spam": "Not spam",
"color_tag": "Color Tag",
"remove_color": "Remove Color",
"color_tag": "Label",
"remove_color": "Remove Label",
"items_selected": "{count} emails selected"
},
"shortcuts": {
+5 -4
View File
@@ -155,9 +155,10 @@
"back_to_list": "Volver a la lista",
"message_details": "Detalles del Mensaje",
"more_reply_options": "Más opciones de respuesta",
"set_color": "Establecer color",
"set_color": "Establecer etiqueta",
"tag": "Etiqueta",
"more_actions": "Más acciones",
"remove_color": "Eliminar color",
"remove_color": "Eliminar etiqueta",
"more_count": "+{count} más",
"characters_count": "{count} caracteres",
"quick_reply_placeholder": "Escriba una respuesta rápida...",
@@ -929,8 +930,8 @@
"delete": "Eliminar",
"mark_as_spam": "Reportar spam",
"not_spam": "No es spam",
"color_tag": "Etiqueta de Color",
"remove_color": "Eliminar Color",
"color_tag": "Etiqueta",
"remove_color": "Eliminar etiqueta",
"items_selected": "{count} correos seleccionados"
},
"shortcuts": {
+5 -4
View File
@@ -155,9 +155,10 @@
"back_to_list": "Retour à la liste",
"message_details": "Détails du message",
"more_reply_options": "Plus d'options de réponse",
"set_color": "Définir la couleur",
"set_color": "Définir l'étiquette",
"tag": "Étiquette",
"more_actions": "Plus d'actions",
"remove_color": "Retirer la couleur",
"remove_color": "Retirer l'étiquette",
"more_count": "+{count} de plus",
"characters_count": "{count} caractères",
"quick_reply_placeholder": "Écrivez une réponse rapide...",
@@ -929,8 +930,8 @@
"delete": "Supprimer",
"mark_as_spam": "Signaler comme spam",
"not_spam": "Pas un spam",
"color_tag": "Étiquette de couleur",
"remove_color": "Supprimer la couleur",
"color_tag": "Étiquette",
"remove_color": "Supprimer l'étiquette",
"items_selected": "{count} emails sélectionnés"
},
"shortcuts": {
+5 -4
View File
@@ -155,9 +155,10 @@
"back_to_list": "Torna all'elenco",
"message_details": "Dettagli del messaggio",
"more_reply_options": "Più opzioni di risposta",
"set_color": "Imposta colore",
"set_color": "Imposta etichetta",
"tag": "Etichetta",
"more_actions": "Altre azioni",
"remove_color": "Rimuovi colore",
"remove_color": "Rimuovi etichetta",
"more_count": "+{count} altri",
"characters_count": "{count} caratteri",
"quick_reply_placeholder": "Scrivi una risposta veloce...",
@@ -929,8 +930,8 @@
"delete": "Elimina",
"mark_as_spam": "Segnala come spam",
"not_spam": "Non spam",
"color_tag": "Etichetta colore",
"remove_color": "Rimuovi colore",
"color_tag": "Etichetta",
"remove_color": "Rimuovi etichetta",
"items_selected": "{count} messaggi selezionati"
},
"shortcuts": {
+5 -4
View File
@@ -155,9 +155,10 @@
"back_to_list": "リストに戻る",
"message_details": "メッセージの詳細",
"more_reply_options": "その他の返信オプション",
"set_color": "を設定",
"set_color": "ラベルを設定",
"tag": "ラベル",
"more_actions": "その他の操作",
"remove_color": "を削除",
"remove_color": "ラベルを削除",
"more_count": "他{count}件",
"characters_count": "{count}文字",
"quick_reply_placeholder": "クイック返信を入力...",
@@ -929,8 +930,8 @@
"delete": "削除",
"mark_as_spam": "迷惑メールを報告",
"not_spam": "迷惑メールでない",
"color_tag": "カラータグ",
"remove_color": "を削除",
"color_tag": "ラベル",
"remove_color": "ラベルを削除",
"items_selected": "{count}件のメールを選択"
},
"shortcuts": {
+5 -4
View File
@@ -155,9 +155,10 @@
"back_to_list": "Terug naar lijst",
"message_details": "Berichtdetails",
"more_reply_options": "Meer antwoordopties",
"set_color": "Kleur instellen",
"set_color": "Label instellen",
"tag": "Label",
"more_actions": "Meer acties",
"remove_color": "Kleur verwijderen",
"remove_color": "Label verwijderen",
"more_count": "+{count} meer",
"characters_count": "{count} tekens",
"quick_reply_placeholder": "Schrijf een snel antwoord...",
@@ -929,8 +930,8 @@
"delete": "Verwijderen",
"mark_as_spam": "Spam melden",
"not_spam": "Geen spam",
"color_tag": "Kleurtag",
"remove_color": "Kleur verwijderen",
"color_tag": "Label",
"remove_color": "Label verwijderen",
"items_selected": "{count} e-mails geselecteerd"
},
"shortcuts": {
+5 -4
View File
@@ -155,9 +155,10 @@
"back_to_list": "Voltar para a lista",
"message_details": "Detalhes da Mensagem",
"more_reply_options": "Mais opções de resposta",
"set_color": "Definir cor",
"set_color": "Definir etiqueta",
"tag": "Etiqueta",
"more_actions": "Mais ações",
"remove_color": "Remover cor",
"remove_color": "Remover etiqueta",
"more_count": "+{count} mais",
"characters_count": "{count} caracteres",
"quick_reply_placeholder": "Escreva uma resposta rápida...",
@@ -929,8 +930,8 @@
"delete": "Excluir",
"mark_as_spam": "Reportar spam",
"not_spam": "Não é spam",
"color_tag": "Etiqueta de Cor",
"remove_color": "Remover Cor",
"color_tag": "Etiqueta",
"remove_color": "Remover etiqueta",
"items_selected": "{count} e-mails selecionados"
},
"shortcuts": {