update ai insight migration for all page

This commit is contained in:
Alberto-Audrix committed 2026-09-17 10:11:14 +07:00
1 parent 07d36081ce
commit 18790ab8f6
69 files changed
+9457 -399

No files matched your search

@@ -28,13 +28,14 @@ vi.mock('../../../services/apiClient.ts', () => ({
]),
create: vi.fn(),
},
insights: {
list: vi.fn().mockResolvedValue([]),
},
},
errorMessage: (err: unknown) => (err instanceof Error ? err.message : 'Terjadi kesalahan'),
}));
vi.mock('../../shared/PageAiInsight.tsx', () => ({
PageAiInsight: () => <div data-testid="page-ai-insight" />,
}));
vi.mock('../../../context/FarmContext.tsx', () => ({
useFarm: () => ({
selectedSite: { id: 1, site_name: 'Sukawarna', user: 1, created_at: '', updated_at: '' },
@@ -45,6 +46,7 @@ vi.mock('../../../context/FarmContext.tsx', () => ({
created_at: '',
updated_at: '',
},
selectedKandangId: 1,
selectedCycle: {
id: 1,
kandang: 1,