From 97f744aadf996c239568b5ce7a4ec6901443a3f9 Mon Sep 17 00:00:00 2001 From: Saeed Abadiyan Date: Sat, 4 Oct 2025 15:05:04 +0330 Subject: [PATCH] fix the color and height --- .../process-innovation-page.tsx | 49 ++++++++----------- 1 file changed, 21 insertions(+), 28 deletions(-) diff --git a/app/components/dashboard/project-management/process-innovation-page.tsx b/app/components/dashboard/project-management/process-innovation-page.tsx index f992124..3a18a20 100644 --- a/app/components/dashboard/project-management/process-innovation-page.tsx +++ b/app/components/dashboard/project-management/process-innovation-page.tsx @@ -159,7 +159,7 @@ export function ProcessInnovationPage() { ), description: "تن افزایش یافته", icon: CirclePause, - color: "text-emerald-400", + color: "text-pr-green", }, bottleneckremoval: { id: "bottleneckremoval", @@ -167,7 +167,7 @@ export function ProcessInnovationPage() { value: formatNumber(stats.bottleneckRemovalCount), description: "تعداد رفع گلوگاه", icon: Funnel, - color: "text-emerald-400", + color: "text-pr-green", }, currencyreduction: { id: "currencyreduction", @@ -177,7 +177,7 @@ export function ProcessInnovationPage() { ), description: "دلار کاهش یافته", icon: DollarSign, - color: "text-emerald-400", + color: "text-pr-green", }, frequentfailuresreduction: { id: "frequentfailuresreduction", @@ -188,7 +188,7 @@ export function ProcessInnovationPage() { ), description: "مجموع درصد کاهش خرابی", icon: Wrench, - color: "text-emerald-400", + color: "text-pr-green", }, }); @@ -524,7 +524,7 @@ export function ProcessInnovationPage() { handleSelectProject(item.project_id)} - className="data-[state=checked]:bg-emerald-600 data-[state=checked]:border-emerald-600" + className="data-[state=checked]:bg-pr-green data-[state=checked]:border-pr-green" /> ); case "details": @@ -533,14 +533,14 @@ export function ProcessInnovationPage() { variant="ghost" size="sm" onClick={() => handleProjectDetails(item)} - className="text-pr-green hover:text-emerald-300 underline-offset-4 underline font-normal hover:bg-emerald-500/20 p-2 h-auto" + className="text-pr-green hover:text-pr-green underline-offset-4 underline font-normal hover:bg-pr-green p-2 h-auto" > جزئیات بیشتر ); case "amount_currency_reduction": return ( - + {formatCurrency(String(value))} ); @@ -593,9 +593,9 @@ export function ProcessInnovationPage() { return ( -
+
{/* Stats Cards */} -
+
{/* Stats Grid */}
@@ -612,7 +612,7 @@ export function ProcessInnovationPage() { className="h-6 bg-gray-600 rounded animate-pulse" style={{ width: "60%" }} /> -
+
@@ -671,7 +671,7 @@ export function ProcessInnovationPage() { {/* نمودار با الگوریتم Nice Numbers: مثلاً اگر داده‌ها [10, 35, 63, 18] باشند: - حداکثر: 63، با حاشیه 5% = 66.15 - - Nice Max: 75 (گرد و خوانا) + - Nice Max: 75 (گرد و خوانا) - Ticks: [0, 20, 40, 60, 75] این باعث می‌شود نمودار زیباتر و خوانا‌تر باشد */} @@ -710,7 +710,7 @@ export function ProcessInnovationPage() {
- +
{columns.map((column) => ( @@ -721,15 +721,8 @@ export function ProcessInnovationPage() { > {column.key === "select" ? (
- 0 - } - onCheckedChange={handleSelectAll} - className="data-[state=checked]:bg-emerald-600 data-[state=checked]:border-emerald-600" - /> -
+ + ) : column.sortable ? (