From eb20cf9141554dc9ea9bca85f65fb31d31f2cbb6 Mon Sep 17 00:00:00 2001
From: Xubin Ren <52506698+Re-bin@users.noreply.github.com>
Date: Sat, 6 Jun 2026 16:10:08 +0800
Subject: [PATCH] fix(webui): simplify prompt history rows
---
webui/src/components/thread/PromptNavigator.tsx | 16 ++++++----------
webui/src/i18n/locales/en/common.json | 3 +--
webui/src/i18n/locales/es/common.json | 3 +--
webui/src/i18n/locales/fr/common.json | 3 +--
webui/src/i18n/locales/id/common.json | 3 +--
webui/src/i18n/locales/ja/common.json | 3 +--
webui/src/i18n/locales/ko/common.json | 3 +--
webui/src/i18n/locales/vi/common.json | 3 +--
webui/src/i18n/locales/zh-CN/common.json | 3 +--
webui/src/i18n/locales/zh-TW/common.json | 3 +--
10 files changed, 15 insertions(+), 28 deletions(-)
diff --git a/webui/src/components/thread/PromptNavigator.tsx b/webui/src/components/thread/PromptNavigator.tsx
index e088b4c73..fb2c312e7 100644
--- a/webui/src/components/thread/PromptNavigator.tsx
+++ b/webui/src/components/thread/PromptNavigator.tsx
@@ -136,18 +136,14 @@ function PromptNavigatorRow({
aria-label={t("thread.promptNavigator.jumpTo", { label: prompt.label })}
onClick={() => onJump(prompt.id)}
>
-
+
{prompt.preview}
+ {timestamp ? (
+
+ {timestamp}
+
+ ) : null}
);
}
diff --git a/webui/src/i18n/locales/en/common.json b/webui/src/i18n/locales/en/common.json
index 5a474d971..c1595e7b2 100644
--- a/webui/src/i18n/locales/en/common.json
+++ b/webui/src/i18n/locales/en/common.json
@@ -781,8 +781,7 @@
"title": "Prompts",
"search": "Search prompts",
"noResults": "No matching prompts.",
- "jumpTo": "Jump to prompt: {{label}}",
- "promptNumber": "Prompt {{number}}"
+ "jumpTo": "Jump to prompt: {{label}}"
}
},
"message": {
diff --git a/webui/src/i18n/locales/es/common.json b/webui/src/i18n/locales/es/common.json
index 031af8860..f3dfd3daa 100644
--- a/webui/src/i18n/locales/es/common.json
+++ b/webui/src/i18n/locales/es/common.json
@@ -781,8 +781,7 @@
"title": "Prompts",
"search": "Buscar prompts",
"noResults": "No hay prompts coincidentes.",
- "jumpTo": "Ir al prompt: {{label}}",
- "promptNumber": "Prompt {{number}}"
+ "jumpTo": "Ir al prompt: {{label}}"
}
},
"message": {
diff --git a/webui/src/i18n/locales/fr/common.json b/webui/src/i18n/locales/fr/common.json
index af1d61659..6d25205c5 100644
--- a/webui/src/i18n/locales/fr/common.json
+++ b/webui/src/i18n/locales/fr/common.json
@@ -781,8 +781,7 @@
"title": "Prompts",
"search": "Rechercher des prompts",
"noResults": "Aucun prompt correspondant.",
- "jumpTo": "Aller au prompt : {{label}}",
- "promptNumber": "Prompt {{number}}"
+ "jumpTo": "Aller au prompt : {{label}}"
}
},
"message": {
diff --git a/webui/src/i18n/locales/id/common.json b/webui/src/i18n/locales/id/common.json
index c413c5630..0f8e53a2c 100644
--- a/webui/src/i18n/locales/id/common.json
+++ b/webui/src/i18n/locales/id/common.json
@@ -781,8 +781,7 @@
"title": "Prompt",
"search": "Cari prompt",
"noResults": "Tidak ada prompt yang cocok.",
- "jumpTo": "Lompat ke prompt: {{label}}",
- "promptNumber": "Prompt {{number}}"
+ "jumpTo": "Lompat ke prompt: {{label}}"
}
},
"message": {
diff --git a/webui/src/i18n/locales/ja/common.json b/webui/src/i18n/locales/ja/common.json
index ebea72276..cb5647386 100644
--- a/webui/src/i18n/locales/ja/common.json
+++ b/webui/src/i18n/locales/ja/common.json
@@ -781,8 +781,7 @@
"title": "プロンプト",
"search": "プロンプトを検索",
"noResults": "一致するプロンプトがありません。",
- "jumpTo": "プロンプトへ移動: {{label}}",
- "promptNumber": "プロンプト {{number}}"
+ "jumpTo": "プロンプトへ移動: {{label}}"
}
},
"message": {
diff --git a/webui/src/i18n/locales/ko/common.json b/webui/src/i18n/locales/ko/common.json
index b6bc9b31d..23dc3346c 100644
--- a/webui/src/i18n/locales/ko/common.json
+++ b/webui/src/i18n/locales/ko/common.json
@@ -781,8 +781,7 @@
"title": "프롬프트",
"search": "프롬프트 검색",
"noResults": "일치하는 프롬프트가 없습니다.",
- "jumpTo": "프롬프트로 이동: {{label}}",
- "promptNumber": "프롬프트 {{number}}"
+ "jumpTo": "프롬프트로 이동: {{label}}"
}
},
"message": {
diff --git a/webui/src/i18n/locales/vi/common.json b/webui/src/i18n/locales/vi/common.json
index a8f061829..fd03c7d8d 100644
--- a/webui/src/i18n/locales/vi/common.json
+++ b/webui/src/i18n/locales/vi/common.json
@@ -781,8 +781,7 @@
"title": "Prompt",
"search": "Tìm prompt",
"noResults": "Không có prompt phù hợp.",
- "jumpTo": "Nhảy tới prompt: {{label}}",
- "promptNumber": "Prompt {{number}}"
+ "jumpTo": "Nhảy tới prompt: {{label}}"
}
},
"message": {
diff --git a/webui/src/i18n/locales/zh-CN/common.json b/webui/src/i18n/locales/zh-CN/common.json
index 12ce5a0d4..53091f509 100644
--- a/webui/src/i18n/locales/zh-CN/common.json
+++ b/webui/src/i18n/locales/zh-CN/common.json
@@ -781,8 +781,7 @@
"title": "输入列表",
"search": "搜索输入",
"noResults": "没有匹配的输入。",
- "jumpTo": "跳转到输入:{{label}}",
- "promptNumber": "第 {{number}} 条"
+ "jumpTo": "跳转到输入:{{label}}"
}
},
"message": {
diff --git a/webui/src/i18n/locales/zh-TW/common.json b/webui/src/i18n/locales/zh-TW/common.json
index 47efe6bf9..ebe0cc57c 100644
--- a/webui/src/i18n/locales/zh-TW/common.json
+++ b/webui/src/i18n/locales/zh-TW/common.json
@@ -781,8 +781,7 @@
"title": "輸入列表",
"search": "搜尋輸入",
"noResults": "沒有符合的輸入。",
- "jumpTo": "跳到輸入:{{label}}",
- "promptNumber": "第 {{number}} 則"
+ "jumpTo": "跳到輸入:{{label}}"
}
},
"message": {