From 865831e41eb25b26948fcc98e55d2125cac63348 Mon Sep 17 00:00:00 2001 From: leeheejin Date: Wed, 29 Oct 2025 18:04:27 +0900 Subject: [PATCH] =?UTF-8?q?=EB=82=98=EB=A8=B8=EC=A7=80=20=EC=9C=84?= =?UTF-8?q?=EC=A0=AF=EB=93=A4=EB=8F=84=20=EC=83=A4=EB=93=9C=EC=8B=9C?= =?UTF-8?q?=EC=98=8C=EC=B2=98=EB=A6=AC(=EC=A3=BC=EC=84=9D=EC=B2=98?= =?UTF-8?q?=EB=A6=AC=EB=90=9C=20=EC=9C=84=EC=A0=AF)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dashboard/widgets/BookingAlertWidget.tsx | 12 ++++++------ .../dashboard/widgets/CalculatorWidget.tsx | 10 +++++----- .../dashboard/widgets/CustomStatsWidget.tsx | 6 +++--- .../components/dashboard/widgets/DocumentWidget.tsx | 6 +++--- .../dashboard/widgets/MaintenanceWidget.tsx | 8 ++++---- .../dashboard/widgets/StatusSummaryWidget.tsx | 2 +- frontend/components/dashboard/widgets/TaskWidget.tsx | 6 +++--- frontend/components/dashboard/widgets/TodoWidget.tsx | 6 +++--- .../dashboard/widgets/TransportStatsWidget.tsx | 6 +++--- .../dashboard/widgets/VehicleListWidget.tsx | 10 +++++----- .../dashboard/widgets/WorkHistoryWidget.tsx | 4 ++-- 11 files changed, 38 insertions(+), 38 deletions(-) diff --git a/frontend/components/dashboard/widgets/BookingAlertWidget.tsx b/frontend/components/dashboard/widgets/BookingAlertWidget.tsx index c327610f..f28d6fad 100644 --- a/frontend/components/dashboard/widgets/BookingAlertWidget.tsx +++ b/frontend/components/dashboard/widgets/BookingAlertWidget.tsx @@ -163,14 +163,14 @@ export default function BookingAlertWidget({ element }: BookingAlertWidgetProps)

{element?.customTitle || "예약 요청 알림"}

{newCount > 0 && ( - + {newCount} )}
@@ -183,7 +183,7 @@ export default function BookingAlertWidget({ element }: BookingAlertWidgetProps) key={f} onClick={() => setFilter(f)} className={`rounded px-3 py-1 text-xs font-medium transition-colors ${ - filter === f ? "bg-primary text-white" : "bg-muted text-foreground hover:bg-muted" + filter === f ? "bg-primary text-primary-foreground" : "bg-muted text-foreground hover:bg-muted" }`} > {f === "pending" ? "대기중" : f === "accepted" ? "수락됨" : "전체"} @@ -213,7 +213,7 @@ export default function BookingAlertWidget({ element }: BookingAlertWidgetProps) {/* NEW 뱃지 */} {isNew(booking.createdAt) && booking.status === "pending" && (
- + 🆕
@@ -245,14 +245,14 @@ export default function BookingAlertWidget({ element }: BookingAlertWidgetProps)
@@ -247,7 +247,7 @@ export default function CalculatorWidget({ element, className = '' }: Calculator @@ -277,7 +277,7 @@ export default function CalculatorWidget({ element, className = '' }: Calculator @@ -307,7 +307,7 @@ export default function CalculatorWidget({ element, className = '' }: Calculator @@ -330,7 +330,7 @@ export default function CalculatorWidget({ element, className = '' }: Calculator diff --git a/frontend/components/dashboard/widgets/CustomStatsWidget.tsx b/frontend/components/dashboard/widgets/CustomStatsWidget.tsx index 0c59e253..da93cdaf 100644 --- a/frontend/components/dashboard/widgets/CustomStatsWidget.tsx +++ b/frontend/components/dashboard/widgets/CustomStatsWidget.tsx @@ -603,7 +603,7 @@ export default function CustomStatsWidget({ element, refreshInterval = 60000 }: indigo: { bg: "bg-primary/10", text: "text-primary" }, green: { bg: "bg-success/10", text: "text-success" }, blue: { bg: "bg-primary/10", text: "text-primary" }, - purple: { bg: "bg-purple-500/10", text: "text-purple-500" }, + purple: { bg: "bg-primary/10", text: "text-primary" }, orange: { bg: "bg-warning/10", text: "text-warning" }, yellow: { bg: "bg-warning/10", text: "text-warning" }, cyan: { bg: "bg-primary/10", text: "text-primary" }, @@ -634,7 +634,7 @@ export default function CustomStatsWidget({ element, refreshInterval = 60000 }: {!element?.dataSource?.query &&
쿼리를 설정하세요
} @@ -772,7 +772,7 @@ export default function CustomStatsWidget({ element, refreshInterval = 60000 }:
diff --git a/frontend/components/dashboard/widgets/DocumentWidget.tsx b/frontend/components/dashboard/widgets/DocumentWidget.tsx index 8899ef73..bf7231a6 100644 --- a/frontend/components/dashboard/widgets/DocumentWidget.tsx +++ b/frontend/components/dashboard/widgets/DocumentWidget.tsx @@ -133,7 +133,7 @@ export default function DocumentWidget({ element }: DocumentWidgetProps) {

{element?.customTitle || "문서 관리"}

-
@@ -177,7 +177,7 @@ export default function DocumentWidget({ element }: DocumentWidgetProps) { key={f} onClick={() => setFilter(f)} className={`rounded px-3 py-1 text-xs font-medium transition-colors ${ - filter === f ? "bg-primary text-white" : "bg-muted text-foreground hover:bg-muted" + filter === f ? "bg-primary text-primary-foreground" : "bg-muted text-foreground hover:bg-muted" }`} > {f === "all" ? "전체" : f} @@ -232,7 +232,7 @@ export default function DocumentWidget({ element }: DocumentWidgetProps) { {/* 다운로드 버튼 */}
@@ -152,7 +152,7 @@ export default function MaintenanceWidget() { key={f} onClick={() => setFilter(f)} className={`rounded px-3 py-1 text-xs font-medium transition-colors ${ - filter === f ? "bg-primary text-white" : "bg-muted text-foreground hover:bg-muted" + filter === f ? "bg-primary text-primary-foreground" : "bg-muted text-foreground hover:bg-muted" }`} > {f === "all" ? "전체" : f === "scheduled" ? "예정" : f === "in_progress" ? "진행중" : "지연"} @@ -218,7 +218,7 @@ export default function MaintenanceWidget() { {/* 액션 버튼 */} {schedule.status === "scheduled" && (
- diff --git a/frontend/components/dashboard/widgets/StatusSummaryWidget.tsx b/frontend/components/dashboard/widgets/StatusSummaryWidget.tsx index 85592683..a5387ea4 100644 --- a/frontend/components/dashboard/widgets/StatusSummaryWidget.tsx +++ b/frontend/components/dashboard/widgets/StatusSummaryWidget.tsx @@ -270,7 +270,7 @@ export default function StatusSummaryWidget({ red: { border: "border-destructive", dot: "bg-destructive", text: "text-destructive" }, yellow: { border: "border-warning", dot: "bg-warning", text: "text-warning" }, orange: { border: "border-warning", dot: "bg-warning", text: "text-warning" }, - purple: { border: "border-purple-500", dot: "bg-purple-500/100", text: "text-purple-500" }, + purple: { border: "border-primary", dot: "bg-primary", text: "text-primary" }, gray: { border: "border-border", dot: "bg-muted-foreground", text: "text-muted-foreground" }, }; diff --git a/frontend/components/dashboard/widgets/TaskWidget.tsx b/frontend/components/dashboard/widgets/TaskWidget.tsx index 90e7dc4b..aefb1599 100644 --- a/frontend/components/dashboard/widgets/TaskWidget.tsx +++ b/frontend/components/dashboard/widgets/TaskWidget.tsx @@ -572,7 +572,7 @@ export default function TaskWidget({ element }: TaskWidgetProps) {
diff --git a/frontend/components/dashboard/widgets/TodoWidget.tsx b/frontend/components/dashboard/widgets/TodoWidget.tsx index 2acd337d..1f4b2e53 100644 --- a/frontend/components/dashboard/widgets/TodoWidget.tsx +++ b/frontend/components/dashboard/widgets/TodoWidget.tsx @@ -349,7 +349,7 @@ export default function TodoWidget({ element }: TodoWidgetProps) { {/* 추가 버튼 - 항상 표시 */} diff --git a/frontend/components/dashboard/widgets/TransportStatsWidget.tsx b/frontend/components/dashboard/widgets/TransportStatsWidget.tsx index 668205ed..0734182f 100644 --- a/frontend/components/dashboard/widgets/TransportStatsWidget.tsx +++ b/frontend/components/dashboard/widgets/TransportStatsWidget.tsx @@ -265,7 +265,7 @@ export default function TransportStatsWidget({ element, refreshInterval = 60000 {!element?.dataSource?.query &&
쿼리를 설정하세요
} @@ -305,9 +305,9 @@ export default function TransportStatsWidget({ element, refreshInterval = 60000
{/* 정시 도착률 */} -
+
정시 도착률
-
+
{stats.on_time_rate.toFixed(1)} %
diff --git a/frontend/components/dashboard/widgets/VehicleListWidget.tsx b/frontend/components/dashboard/widgets/VehicleListWidget.tsx index 640fcc72..df062b45 100644 --- a/frontend/components/dashboard/widgets/VehicleListWidget.tsx +++ b/frontend/components/dashboard/widgets/VehicleListWidget.tsx @@ -111,7 +111,7 @@ export default function VehicleListWidget({ element, refreshInterval = 30000 }: @@ -134,7 +134,7 @@ export default function WorkHistoryWidget({ element, refreshInterval = 60000 }: -- 2.43.0