From 3ff0823671afd703566ba51bf8e422930487c454 Mon Sep 17 00:00:00 2001 From: Hannes Rudolph Date: Mon, 25 Aug 2025 20:01:10 -0600 Subject: [PATCH] fix: convert inline styles to Tailwind classes and expand i18n error titles - Converted inline style objects to Tailwind classes in ChatRow.tsx for subtask_result, newTask, and finishTask sections - Added more common error titles to i18n tools.json for better centralization - Maintains consistency with project guidelines for using Tailwind CSS --- src/i18n/locales/en/tools.json | 12 +++- webview-ui/src/components/chat/ChatRow.tsx | 79 +++------------------- 2 files changed, 20 insertions(+), 71 deletions(-) diff --git a/src/i18n/locales/en/tools.json b/src/i18n/locales/en/tools.json index a35d939671..2d44601427 100644 --- a/src/i18n/locales/en/tools.json +++ b/src/i18n/locales/en/tools.json @@ -25,6 +25,16 @@ "operationFailed": "Operation Failed", "resourceNotFound": "Resource Not Found", "configurationError": "Configuration Error", - "authenticationFailed": "Authentication Failed" + "authenticationFailed": "Authentication Failed", + "invalidLineNumber": "Invalid Line Number", + "fileAlreadyExists": "File Already Exists", + "directoryNotFound": "Directory Not Found", + "invalidPath": "Invalid Path", + "readError": "Read Error", + "writeError": "Write Error", + "syntaxError": "Syntax Error", + "validationError": "Validation Error", + "timeoutError": "Timeout Error", + "connectionError": "Connection Error" } } diff --git a/webview-ui/src/components/chat/ChatRow.tsx b/webview-ui/src/components/chat/ChatRow.tsx index 89198c0fab..bf71a6be1b 100644 --- a/webview-ui/src/components/chat/ChatRow.tsx +++ b/webview-ui/src/components/chat/ChatRow.tsx @@ -771,31 +771,12 @@ export const ChatRowContent = ({ /> -
-
+
+
{t("chat:subtasks.newTaskContent")}
-
+
@@ -808,31 +789,12 @@ export const ChatRowContent = ({ {toolIcon("check-all")} {t("chat:subtasks.wantsToFinish")}
-
-
+
+
{t("chat:subtasks.completionContent")}
-
+
@@ -961,35 +923,12 @@ export const ChatRowContent = ({ case "subtask_result": return (
-
-
+
+
{t("chat:subtasks.resultContent")}
-
+