feat(FE-390): slicing UI and API integration for production dashboard

This commit is contained in:
randy-ar
2025-12-30 19:30:52 +07:00
parent 28639516d5
commit 10fb9fc990
4 changed files with 18 additions and 6 deletions
+1 -1
View File
@@ -51,4 +51,4 @@
"tailwindcss": "^4",
"typescript": "^5"
}
}
}
@@ -1798,4 +1798,4 @@
"fcr": 2.2
}
]
}
}
@@ -1,11 +1,21 @@
/**
* Dummy data for DashboardProduction
* Generated from: dashboard.production.dummy.json
*
*
* This file is auto-generated. Do not edit manually.
*/
import { DashboardProductionStatisticsData, DashboardProductionProductionChartsFlocks, DashboardProductionProductionCharts, DashboardProductionStandardProductionsStandards, DashboardProductionStandardProductions, DashboardProductionFcrDataFlock, DashboardProductionEggWeights, DashboardProductionFcrData, DashboardProduction } from '../../types/api/dashboard/dashboard-production';
import {
DashboardProductionStatisticsData,
DashboardProductionProductionChartsFlocks,
DashboardProductionProductionCharts,
DashboardProductionStandardProductionsStandards,
DashboardProductionStandardProductions,
DashboardProductionFcrDataFlock,
DashboardProductionEggWeights,
DashboardProductionFcrData,
DashboardProduction,
} from '../../types/api/dashboard/dashboard-production';
import { BaseApiResponse } from '@/types/api/api-general';
import dummyData from './dashboard.production.dummy.json';
@@ -13,7 +23,9 @@ import dummyData from './dashboard.production.dummy.json';
* Get dummy DashboardProduction data
* @returns Promise with BaseApiResponse containing DashboardProduction
*/
export async function getDummySingle(): Promise<BaseApiResponse<DashboardProduction>> {
export async function getDummySingle(): Promise<
BaseApiResponse<DashboardProduction>
> {
return new Promise((resolve) => {
setTimeout(() => {
resolve({
+1 -1
View File
@@ -49,4 +49,4 @@ export interface DashboardProductionProductionChartsFlocks {
id: number;
name: string;
data: number;
}
}