From d240fb39fa252891b8ae1cdd5ed5b8f025a63e7d Mon Sep 17 00:00:00 2001 From: mehrdad_adabi Date: Tue, 9 Sep 2025 20:27:30 +0330 Subject: [PATCH] fixx:designed bugs --- .../digital-innovation-page.tsx | 43 ++++++++++++++++--- .../green-innovation-page.tsx | 14 +++--- .../innovation-built-inside-page.tsx | 37 ++++++++++++++-- app/components/ui/card.tsx | 39 ++++++++++------- 4 files changed, 102 insertions(+), 31 deletions(-) diff --git a/app/components/dashboard/project-management/digital-innovation-page.tsx b/app/components/dashboard/project-management/digital-innovation-page.tsx index e272da2..c55a190 100644 --- a/app/components/dashboard/project-management/digital-innovation-page.tsx +++ b/app/components/dashboard/project-management/digital-innovation-page.tsx @@ -618,18 +618,18 @@ export function DigitalInnovationPage() { return ( -
+
{/* Stats Cards */}
{/* Stats Grid */}
- {loading || statsLoading + {loading ? // Loading skeleton for stats cards - matching new design Array.from({ length: 4 }).map((_, index) => (
@@ -691,7 +691,7 @@ export function DigitalInnovationPage() {
{/* Process Impacts Chart */} - + {/* */} {/* Footer */} +
+
+
+ +
+ کل پروژه‌ها:{" "} + + {formatNumber(actualTotalCount)} + +
+ +
+ + + + +
+ +
+ میانگین:{" "} + + {formatNumber( + ((stats.avarageProjectScore ?? 0) as number).toFixed?.(1) ?? + 0 + )} + +
+ +
+
+
+ + {/*
@@ -874,7 +907,7 @@ export function DigitalInnovationPage() {
-
+
*/}
diff --git a/app/components/dashboard/project-management/green-innovation-page.tsx b/app/components/dashboard/project-management/green-innovation-page.tsx index 7e4f191..6601799 100644 --- a/app/components/dashboard/project-management/green-innovation-page.tsx +++ b/app/components/dashboard/project-management/green-innovation-page.tsx @@ -691,8 +691,8 @@ export function GreenInnovationPage() {
{/* Stats Cards */} -
-
+
+
{loading || statsLoading ? // Loading skeleton for stats cards - matching new design Array.from({ length: 2 }).map((_, index) => ( @@ -949,7 +949,7 @@ export function GreenInnovationPage() {
- +
{columns.map((column) => ( @@ -1051,14 +1051,14 @@ export function GreenInnovationPage() {
-
-
-
+
+
+
کل پروژه ها :{formatNumber(actualTotalCount)}
-
+
diff --git a/app/components/dashboard/project-management/innovation-built-inside-page.tsx b/app/components/dashboard/project-management/innovation-built-inside-page.tsx index 9501b85..4780b99 100644 --- a/app/components/dashboard/project-management/innovation-built-inside-page.tsx +++ b/app/components/dashboard/project-management/innovation-built-inside-page.tsx @@ -710,9 +710,9 @@ export function InnovationBuiltInsidePage() { return ( -
+
{/* Stats Cards */} -
+
{statsLoading ? // Loading skeleton for stats cards - matching new design @@ -978,6 +978,37 @@ export function InnovationBuiltInsidePage() {
+
+
+ +
+ کل پروژه‌ها:{" "} + + {formatNumber(actualTotalCount)} + +
+ +
+ + + + +
+ +
+ میانگین:{" "} + + {formatNumber( + ((tblAvarage ?? 0) as number).toFixed?.(1) ?? 0 + )} + +
+ +
+
+
+ + {/*
@@ -1002,7 +1033,7 @@ export function InnovationBuiltInsidePage() {
-
+
*/}
diff --git a/app/components/ui/card.tsx b/app/components/ui/card.tsx index 901efad..bacd208 100644 --- a/app/components/ui/card.tsx +++ b/app/components/ui/card.tsx @@ -1,6 +1,6 @@ -import * as React from "react" +import * as React from "react"; -import { cn } from "~/lib/utils" +import { cn } from "~/lib/utils"; const Card = React.forwardRef< HTMLDivElement, @@ -9,13 +9,13 @@ const Card = React.forwardRef<
-)) -Card.displayName = "Card" +)); +Card.displayName = "Card"; const CardHeader = React.forwardRef< HTMLDivElement, @@ -26,8 +26,8 @@ const CardHeader = React.forwardRef< className={cn("flex flex-col space-y-1.5 p-6", className)} {...props} /> -)) -CardHeader.displayName = "CardHeader" +)); +CardHeader.displayName = "CardHeader"; const CardTitle = React.forwardRef< HTMLParagraphElement, @@ -41,8 +41,8 @@ const CardTitle = React.forwardRef< )} {...props} /> -)) -CardTitle.displayName = "CardTitle" +)); +CardTitle.displayName = "CardTitle"; const CardDescription = React.forwardRef< HTMLParagraphElement, @@ -53,16 +53,16 @@ const CardDescription = React.forwardRef< className={cn("text-sm text-muted-foreground", className)} {...props} /> -)) -CardDescription.displayName = "CardDescription" +)); +CardDescription.displayName = "CardDescription"; const CardContent = React.forwardRef< HTMLDivElement, React.HTMLAttributes >(({ className, ...props }, ref) => (
-)) -CardContent.displayName = "CardContent" +)); +CardContent.displayName = "CardContent"; const CardFooter = React.forwardRef< HTMLDivElement, @@ -73,7 +73,14 @@ const CardFooter = React.forwardRef< className={cn("flex items-center p-6 pt-0", className)} {...props} /> -)) -CardFooter.displayName = "CardFooter" +)); +CardFooter.displayName = "CardFooter"; -export { Card, CardHeader, CardFooter, CardTitle, CardDescription, CardContent } +export { + Card, + CardContent, + CardDescription, + CardFooter, + CardHeader, + CardTitle, +};