From 4076924704f24cc4f6bc08a4fc8e416a572cf7fe Mon Sep 17 00:00:00 2001 From: duorameng <2997944583@qq.com> Date: Thu, 21 May 2026 15:34:33 +0800 Subject: [PATCH] refactor: extract StatusDot common component and unify status indicator styles across history, tasks, and agents pages --- web/src/components/StatusDot.vue | 39 +++++++++++++++++++++++++++++++ web/src/views/agents/Agents.vue | 32 ++++++------------------- web/src/views/history/History.vue | 36 +++++++--------------------- web/src/views/tasks/Tasks.vue | 8 ++++--- 4 files changed, 60 insertions(+), 55 deletions(-) create mode 100644 web/src/components/StatusDot.vue diff --git a/web/src/components/StatusDot.vue b/web/src/components/StatusDot.vue new file mode 100644 index 0000000..2581ae0 --- /dev/null +++ b/web/src/components/StatusDot.vue @@ -0,0 +1,39 @@ + + + + + diff --git a/web/src/views/agents/Agents.vue b/web/src/views/agents/Agents.vue index 26a9c1f..ca68921 100644 --- a/web/src/views/agents/Agents.vue +++ b/web/src/views/agents/Agents.vue @@ -23,6 +23,7 @@ import { api, type Agent, type AgentToken } from '@/api' import { toast } from 'vue-sonner' import { useRouter } from 'vue-router' import { AGENT_STATUS } from '@/constants' +import StatusDot from '@/components/StatusDot.vue' const router = useRouter() @@ -339,7 +340,6 @@ onUnmounted(() => {