From 74d015fdba446129d99f4d31fd96a1eb57c38f31 Mon Sep 17 00:00:00 2001 From: yangdx Date: Mon, 7 Apr 2025 04:13:40 +0800 Subject: [PATCH] Add description to status dialog --- lightrag_webui/src/components/status/StatusDialog.tsx | 4 ++++ lightrag_webui/src/locales/ar.json | 3 ++- lightrag_webui/src/locales/en.json | 3 ++- lightrag_webui/src/locales/fr.json | 3 ++- lightrag_webui/src/locales/zh.json | 3 ++- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lightrag_webui/src/components/status/StatusDialog.tsx b/lightrag_webui/src/components/status/StatusDialog.tsx index 48eaa4f7..702b1142 100644 --- a/lightrag_webui/src/components/status/StatusDialog.tsx +++ b/lightrag_webui/src/components/status/StatusDialog.tsx @@ -5,6 +5,7 @@ import { DialogContent, DialogHeader, DialogTitle, + DialogDescription, } from '@/components/ui/Dialog' import StatusCard from './StatusCard' @@ -22,6 +23,9 @@ const StatusDialog = ({ open, onOpenChange, status }: StatusDialogProps) => { {t('graphPanel.statusDialog.title')} + + {t('graphPanel.statusDialog.description')} + diff --git a/lightrag_webui/src/locales/ar.json b/lightrag_webui/src/locales/ar.json index 0e121534..952dbef0 100644 --- a/lightrag_webui/src/locales/ar.json +++ b/lightrag_webui/src/locales/ar.json @@ -140,7 +140,8 @@ "graphPanel": { "dataIsTruncated": "تم اقتصار بيانات الرسم البياني على الحد الأقصى للعقد", "statusDialog": { - "title": "إعدادات خادم LightRAG" + "title": "إعدادات خادم LightRAG", + "description": "عرض حالة النظام الحالية ومعلومات الاتصال" }, "legend": "المفتاح", "nodeTypes": { diff --git a/lightrag_webui/src/locales/en.json b/lightrag_webui/src/locales/en.json index 588d1982..18fea5e3 100644 --- a/lightrag_webui/src/locales/en.json +++ b/lightrag_webui/src/locales/en.json @@ -140,7 +140,8 @@ "graphPanel": { "dataIsTruncated": "Graph data is truncated to Max Nodes", "statusDialog": { - "title": "LightRAG Server Settings" + "title": "LightRAG Server Settings", + "description": "View current system status and connection information" }, "legend": "Legend", "nodeTypes": { diff --git a/lightrag_webui/src/locales/fr.json b/lightrag_webui/src/locales/fr.json index 155592d2..92be4835 100644 --- a/lightrag_webui/src/locales/fr.json +++ b/lightrag_webui/src/locales/fr.json @@ -140,7 +140,8 @@ "graphPanel": { "dataIsTruncated": "Les données du graphe sont tronquées au nombre maximum de nœuds", "statusDialog": { - "title": "Paramètres du Serveur LightRAG" + "title": "Paramètres du Serveur LightRAG", + "description": "Afficher l'état actuel du système et les informations de connexion" }, "legend": "Légende", "nodeTypes": { diff --git a/lightrag_webui/src/locales/zh.json b/lightrag_webui/src/locales/zh.json index c75b129e..2660640b 100644 --- a/lightrag_webui/src/locales/zh.json +++ b/lightrag_webui/src/locales/zh.json @@ -140,7 +140,8 @@ "graphPanel": { "dataIsTruncated": "图数据已截断至最大返回节点数", "statusDialog": { - "title": "LightRAG 服务器设置" + "title": "LightRAG 服务器设置", + "description": "查看当前系统状态和连接信息" }, "legend": "图例", "nodeTypes": {