From af2280ee455e403a3dfdb5de9dac752f9aa5167f Mon Sep 17 00:00:00 2001 From: mlogclub Date: Sun, 24 May 2026 14:46:52 +0800 Subject: [PATCH] feat: refactor DashboardConversationsPage to utilize new Dashboard components for improved layout and user experience --- .../dashboard/conversation-monitor/page.tsx | 82 +++++++++++-------- 1 file changed, 46 insertions(+), 36 deletions(-) diff --git a/web/app/dashboard/conversation-monitor/page.tsx b/web/app/dashboard/conversation-monitor/page.tsx index 0a60eb7..499de15 100644 --- a/web/app/dashboard/conversation-monitor/page.tsx +++ b/web/app/dashboard/conversation-monitor/page.tsx @@ -12,6 +12,12 @@ import { toast } from "sonner" import { ConversationCloseDialog } from "@/components/conversation-actions/close-dialog" import { ConversationTransferDialog } from "@/components/conversation-actions/transfer-dialog" +import { + DashboardPage, + DashboardTableShell, + DashboardTableStateRow, + DashboardToolbar, +} from "@/components/dashboard-page" import { ListPagination } from "@/components/list-pagination" import { OptionCombobox, @@ -634,9 +640,20 @@ export default function DashboardConversationsPage() { return ( <> -
-
-
+ + void handleRefresh()} + disabled={loading || refreshing} + > + + 刷新 + + } + > +
-
+
-
+
-
+
查询 - -
+ -
-
+ + } + > @@ -804,27 +823,18 @@ export default function DashboardConversationsPage() { ) })} - {!loading && result.results.length === 0 ? ( - - - 没有匹配的会话记录 - - + {loading || result.results.length === 0 ? ( + ) : null}
-
- - -
-
+ +