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
@@ -5,7 +5,17 @@
* 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({