diff --git a/src/app/flock/recording/add/page.tsx b/src/app/production/recording/add/page.tsx similarity index 100% rename from src/app/flock/recording/add/page.tsx rename to src/app/production/recording/add/page.tsx diff --git a/src/app/flock/recording/detail/edit/page.tsx b/src/app/production/recording/detail/edit/page.tsx similarity index 100% rename from src/app/flock/recording/detail/edit/page.tsx rename to src/app/production/recording/detail/edit/page.tsx diff --git a/src/app/flock/recording/detail/layout.tsx b/src/app/production/recording/detail/layout.tsx similarity index 100% rename from src/app/flock/recording/detail/layout.tsx rename to src/app/production/recording/detail/layout.tsx diff --git a/src/app/flock/recording/detail/page.tsx b/src/app/production/recording/detail/page.tsx similarity index 100% rename from src/app/flock/recording/detail/page.tsx rename to src/app/production/recording/detail/page.tsx diff --git a/src/app/flock/recording/page.tsx b/src/app/production/recording/page.tsx similarity index 100% rename from src/app/flock/recording/page.tsx rename to src/app/production/recording/page.tsx diff --git a/src/components/pages/flock/recording/RecordingTable.tsx b/src/components/pages/flock/recording/RecordingTable.tsx index bcdcd4dd..0ca0d880 100644 --- a/src/components/pages/flock/recording/RecordingTable.tsx +++ b/src/components/pages/flock/recording/RecordingTable.tsx @@ -22,7 +22,90 @@ const dummyRecordings: Recording[] = [ id: 1, flock: { id: 1, - name: 'Flock A', + period: 1, + flock: { + id: 1, + name: 'Flock A', + created_at: '2024-01-01', + updated_at: '2024-01-01', + created_user: { + id: 1, + id_user: 1, + email: 'admin@example.com', + name: 'Admin', + }, + }, + area: { + id: 1, + name: 'Area 1', + created_at: '2024-01-01', + updated_at: '2024-01-01', + created_user: { + id: 1, + id_user: 1, + email: 'admin@example.com', + name: 'Admin', + }, + }, + fcr: { + id: 1, + name: 'FCR 1.5', + created_at: '2024-01-01', + updated_at: '2024-01-01', + created_user: { + id: 1, + id_user: 1, + email: 'admin@example.com', + name: 'Admin', + }, + }, + location: { + id: 1, + name: 'Location 1', + address: 'Address 1', + area: { + id: 1, + name: 'Area 1', + }, + created_at: '2024-01-01', + updated_at: '2024-01-01', + created_user: { + id: 1, + id_user: 1, + email: 'admin@example.com', + name: 'Admin', + }, + }, + kandangs: [ + { + id: 1, + name: 'Kandang 1', + status: 'ACTIVE', + location: { + id: 1, + name: 'Location 1', + address: 'Address 1', + area: { + id: 1, + name: 'Area 1', + }, + }, + pic: { + id: 1, + id_user: 1, + email: 'pic@example.com', + name: 'PIC User', + }, + created_at: '2024-01-01', + updated_at: '2024-01-01', + created_user: { + id: 1, + id_user: 1, + email: 'admin@example.com', + name: 'Admin', + }, + }, + ], created_at: '2024-01-01', updated_at: '2024-01-01', created_user: { @@ -53,6 +136,7 @@ const dummyRecordings: Recording[] = [ coop: { id: 1, name: 'Coop 1', + status: 'ACTIVE', location: { id: 1, name: 'Location 1', @@ -206,7 +290,9 @@ const RecordingTable = () => { const paginatedData = useMemo(() => { const filteredData = dummyRecordings.filter( (recording) => - recording.flock.name.toLowerCase().includes(search.toLowerCase()) || + recording.flock.flock.name + .toLowerCase() + .includes(search.toLowerCase()) || recording.location.name.toLowerCase().includes(search.toLowerCase()) || recording.coop.name.toLowerCase().includes(search.toLowerCase()) ); @@ -253,7 +339,7 @@ const RecordingTable = () => {