-
-
-
+
+ {/* Top Cards Row - Redesigned to match other components */}
+
+ {/* Ideas Card */}
+
+
+
+
+
+ ایدههای فناوری و نوآوری
+
+
+
+
+
+
+
+
+ {
+ if (viewBox && "cx" in viewBox && "cy" in viewBox) {
+ return (
+
+
+ {formatNumber(dashboardData.topData?.ongoing_innovation_technology_ideas || '0')}%
+
+
+
+ )
+ }
+ }}
+ />
+
+
+
+
+
+
+ ثبت شده :
+ {formatNumber(dashboardData.topData?.registered_innovation_technology_idea || '0')}
+
+
+ در حال اجرا :
+ {formatNumber(dashboardData.topData?.ongoing_innovation_technology_ideas || '0')}
+
+
+
+
+
+
+
+
+ {/* Revenue Card */}
+
+
+
+
+
+ افزایش درآمد مبتنی بر فناوری و نوآوری
+
+
+
+
+
+
+ %{formatNumber(dashboardData.topData?.technology_innovation_based_revenue_growth_percent || '0')}
+
+
+ درصد به کل درآمد
+
+
+
+
+ {formatNumber(dashboardData.topData?.technology_innovation_based_revenue_growth || '0')}
+
+
+ میلیون ریال
+
+
+
+
+
+
+
+
+ {/* Cost Reduction Card */}
+
+
+
+
+
+ کاهش هزینه ها مبتنی بر فناوری و نوآوری
+
+
+
+
+
+
+ %{formatNumber(dashboardData.topData?.technology_innovation_based_cost_reduction_percent || '0')}
+
+
+ درصد به کل هزینه
+
+
+
+
+ {formatNumber(Math.round((parseFloat(dashboardData.topData?.technology_innovation_based_cost_reduction?.replace(/,/g, '') || '0')) / 1000000))}
+
+
+ میلیون ریال
+
+
+
+
+
+
+
+
+ {/* Budget Ratio Card */}
+
+
+
+
+
+ نسبت تحقق بودجه فناوی و نوآوری
+
+
+
+
+
+
+
+
+ {
+ if (viewBox && "cx" in viewBox && "cy" in viewBox) {
+ return (
+
+
+ %{formatNumber(dashboardData.topData?.innovation_budget_achievement_percent || '0')}
+
+
+ )
+ }
+ }}
+ />
+
+
+
+
+
+
+ مصوب :
+ {formatNumber(Math.round((parseFloat(dashboardData.topData?.approved_innovation_budget_achievement_ratio?.replace(/,/g, '') || '0')) / 1000000000))}
+
+
+ جذب شده :
+ {formatNumber(Math.round((parseFloat(dashboardData.topData?.allocated_innovation_budget_achievement_ratio?.replace(/,/g, '') || '0')) / 1000000000))}
+
+
-
- صفحه در دست ساخت
-
-
- محتوای این بخش به زودی اضافه خواهد شد
-
+
+ {/* Main Content with Tabs */}
+
+
+
+ مقایسه ای
+
+
+ شماتیک
+
+
+
+
+
+ {/* Right Section - Charts */}
+
+ {/* Main Chart */}
+
+
+ تحلیل ارزشها
+ نمودار مقایسهای عملکرد ماهانه
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/* Left Section - Status Cards */}
+
+ {/* Technology Intensity */}
+
+
+
+
شدت فناوری
+
+
%{formatNumber(dashboardData.leftData?.technology_intensity || '0')}
+
+
+
+
+ {/* Program Status */}
+
+
+
+
+
+
+ {/* Publications */}
+
+
+ انتشارات فناوری و نوآوری
+
+
+
+
+
+
+ کتاب:
+
+
+ {formatNumber(dashboardData.leftData?.printed_books_count || '0')}
+
+
+
+
+
+ پتنت:
+
+
+ {formatNumber(dashboardData.leftData?.registered_patents_count || '0')}
+
+
+
+
+
+ گزارش:
+
+
+ {formatNumber(dashboardData.leftData?.published_reports_count || '0')}
+
+
+
+
+
+ مقاله:
+
+
+ {formatNumber(dashboardData.leftData?.printed_articles_count || '0')}
+
+
+
+
+
+
+ {/* Promotion */}
+
+
+ ترویج فناوری و نوآوری
+
+
+
+
+
+
+ کنفرانس:
+
+
+ {formatNumber(dashboardData.leftData?.attended_conferences_count || '0')}
+
+
+
+
+
+ شرکت در رویداد:
+
+
+ {formatNumber(dashboardData.leftData?.attended_events_count || '0')}
+
+
+
+
+
+ نمایشگاه:
+
+
+ {formatNumber(dashboardData.leftData?.attended_exhibitions_count || '0')}
+
+
+
+
+
+ برگزاری رویداد:
+
+
+ {formatNumber(dashboardData.leftData?.organized_events_count || '0')}
+
+
+
+
+
+
+
+
);
diff --git a/app/components/dashboard/header.tsx b/app/components/dashboard/header.tsx
index 5d39efb..f160a85 100644
--- a/app/components/dashboard/header.tsx
+++ b/app/components/dashboard/header.tsx
@@ -26,7 +26,7 @@ interface HeaderProps {
export function Header({
onToggleSidebar,
className,
- title = "داشبورد",
+ title = "صفحه اول",
}: HeaderProps) {
const { user } = useAuth();
const [isProfileMenuOpen, setIsProfileMenuOpen] = useState(false);
diff --git a/app/components/dashboard/project-management/process-innovation-page.tsx b/app/components/dashboard/project-management/process-innovation-page.tsx
index 02c5607..6d52d71 100644
--- a/app/components/dashboard/project-management/process-innovation-page.tsx
+++ b/app/components/dashboard/project-management/process-innovation-page.tsx
@@ -169,7 +169,7 @@ export function ProcessInnovationPage() {
stats.productionStopsPreventionSum.toFixed?.(1) ??
stats.productionStopsPreventionSum,
),
- description: "ظرفیت افزایش یافته",
+ description: "تن افزایش یافته",
icon:
,
color: "text-emerald-400",
},
@@ -194,7 +194,7 @@ export function ProcessInnovationPage() {
},
{
id: "frequent-failures-reduction",
- title: "کاهش خرابیهای پرتکرار",
+ title: "کاهش خرابی های پرتکرار",
value: formatNumber(
stats.frequentFailuresReductionSum.toFixed?.(1) ??
stats.frequentFailuresReductionSum,
@@ -392,7 +392,7 @@ export function ProcessInnovationPage() {
const fetchStats = async () => {
try {
setStatsLoading(true);
- const raw = await apiService.callInnovationProcess
({
+ const raw = await apiService.call({
innovation_process_function: {},
});
diff --git a/app/components/dashboard/sidebar.tsx b/app/components/dashboard/sidebar.tsx
index 9585803..1803dd0 100644
--- a/app/components/dashboard/sidebar.tsx
+++ b/app/components/dashboard/sidebar.tsx
@@ -368,7 +368,7 @@ export function Sidebar({
/>
- سیستم اینوژن
+ داشبورد اینوژن
نسخه ۰.۱
diff --git a/app/components/ecosystem/info-panel.tsx b/app/components/ecosystem/info-panel.tsx
index c455b4d..d373924 100644
--- a/app/components/ecosystem/info-panel.tsx
+++ b/app/components/ecosystem/info-panel.tsx
@@ -68,15 +68,17 @@ export function InfoPanel({ selectedCompany }: InfoPanelProps) {
setIsLoading(true);
try {
const [countsRes, processRes] = await Promise.all([
- apiService.callInnovationProcess({
- ecosystem_counts_function: {},
+ apiService.call({
+ ecosystem_count_function: {},
}),
- apiService.callInnovationProcess({
+ apiService.call({
process_creating_actors_function: {},
}),
]);
- setCounts(JSON.parse(countsRes.data));
+ setCounts(
+ JSON.parse(JSON.parse(countsRes.data).ecosystem_count_function)[0],
+ );
// Process the years data and fill missing years
const processedData = processYearsData(
@@ -164,7 +166,7 @@ export function InfoPanel({ selectedCompany }: InfoPanelProps) {
},
{ label: "شتابدهنده", value: parseNumber(counts.accelerator_count) },
{ label: "دانشگاه", value: parseNumber(counts.university_count) },
- { label: "صندوق", value: parseNumber(counts.fund_count) },
+ { label: "صندوق های مالی", value: parseNumber(counts.fund_count) },
{ label: "شرکت", value: parseNumber(counts.company_count) },
]
: [];
@@ -404,6 +406,23 @@ export function InfoPanel({ selectedCompany }: InfoPanelProps) {
+ {/* Footer - MOU Count */}
+ {/*
+
+ تعداد تفاهم نامه ها
+ {formatNumber(counts.mou_count)}
+
+ */}
+
+
+
+ تعداد تفاهم نامه ها
+
+ {formatNumber(counts.mou_count)}
+
+
+
+
تعداد بازیگران
@@ -495,13 +514,6 @@ export function InfoPanel({ selectedCompany }: InfoPanelProps) {