Spaces:
Running
Running
File size: 17,177 Bytes
f287aeb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 | import { Farm, User, Tank, Expense, Disease, HealthRecord, Notification, FishInventoryBatch, FishBatch } from './types';
export const mockFarms: Farm[] = [
{
id: '1',
name: 'Delta Aqua Farm',
location: 'Kafr El Sheikh, Egypt',
type: 'freshwater',
totalTanks: 12,
activeSpecies: ['Nile Tilapia', 'African Catfish'],
isActive: true,
coordinates: { lat: 31.1107, lng: 30.9388 }
},
{
id: '2',
name: 'Mediterranean Coast Farm',
location: 'Alexandria, Egypt',
type: 'saltwater',
totalTanks: 8,
activeSpecies: ['European Seabass', 'Gilthead Bream'],
isActive: true,
coordinates: { lat: 31.2001, lng: 29.9187 }
},
{
id: '3',
name: 'Nile Valley Fishery',
location: 'Aswan, Egypt',
type: 'freshwater',
totalTanks: 15,
activeSpecies: ['Nile Tilapia', 'Mullet'],
isActive: true,
coordinates: { lat: 24.0889, lng: 32.8998 }
}
];
export const mockUsers: User[] = [
{
id: '1',
name: 'Ahmed Mohamed',
email: 'ahmed@fishfarm360.com',
phone: '+20 100 123 4567',
role: 'admin',
farmId: '1'
},
{
id: '2',
name: 'Fatima Hassan',
email: 'fatima@fishfarm360.com',
phone: '+20 100 234 5678',
role: 'manager',
farmId: '1'
},
{
id: '3',
name: 'Omar Ibrahim',
email: 'omar@fishfarm360.com',
phone: '+20 100 345 6789',
role: 'technician',
farmId: '2'
}
];
export const mockTanks: Tank[] = [
{
id: 'tank-001',
farmId: '1',
name: 'Tank A-01',
location: 'Section A',
volumeCubicMeters: 500,
status: 'ACTIVE',
currentBiomass: 3200,
capacity: 5000
},
{
id: 'tank-002',
farmId: '1',
name: 'Tank A-02',
location: 'Section A',
volumeCubicMeters: 500,
status: 'ACTIVE',
currentBiomass: 2800,
capacity: 5000
},
{
id: 'tank-003',
farmId: '1',
name: 'Tank B-01',
location: 'Section B',
volumeCubicMeters: 750,
status: 'WARNING',
currentBiomass: 4500,
capacity: 7500
},
{
id: 'tank-004',
farmId: '1',
name: 'Tank C-01',
location: 'Section C',
volumeCubicMeters: 400,
status: 'MAINTENANCE',
currentBiomass: 0,
capacity: 4000
}
];
export const mockExpenses: Expense[] = [
{
id: 'exp-001',
farmId: '1',
tankId: 'tank-001',
date: '2026-02-01',
category: 'feed',
description: 'High Protein Feed 32%',
amount: 15000,
currency: 'EGP'
},
{
id: 'exp-002',
farmId: '1',
date: '2026-02-03',
category: 'electricity',
description: 'Monthly electricity bill',
amount: 8500,
currency: 'EGP'
},
{
id: 'exp-003',
farmId: '1',
tankId: 'tank-002',
date: '2026-02-05',
category: 'medicine',
description: 'Antibiotics for bacterial infection',
amount: 2200,
currency: 'EGP'
},
{
id: 'exp-004',
farmId: '1',
date: '2026-02-07',
category: 'labor',
description: 'Staff salaries',
amount: 25000,
currency: 'EGP'
},
{
id: 'exp-005',
farmId: '1',
date: '2026-02-10',
category: 'fingerlings',
description: 'Tilapia fingerlings - 5000 pcs',
amount: 18000,
currency: 'EGP'
},
{
id: 'exp-006',
farmId: '1',
tankId: 'tank-003',
date: '2026-02-12',
category: 'maintenance',
description: 'Tank cleaning and repair',
amount: 3500,
currency: 'EGP'
},
{
id: 'exp-007',
farmId: '1',
date: '2026-02-14',
category: 'fuel',
description: 'Diesel for generators',
amount: 4200,
currency: 'EGP'
}
];
export const mockDiseases: Disease[] = [
{
id: 'disease-001',
name: 'Bacterial Gill Disease',
symptoms: [
'Rapid gill movement',
'Lethargy and loss of appetite',
'Increased mucus on gills',
'Fish gasping at water surface'
],
treatment: 'Antibiotic treatment (Oxytetracycline 50-75 mg/kg feed for 10 days). Improve water quality and increase aeration.',
preventiveMeasures: [
'Maintain optimal water quality',
'Avoid overcrowding',
'Regular water quality monitoring',
'Proper biosecurity measures'
],
severity: 'high'
},
{
id: 'disease-002',
name: 'Ichthyophthirius (White Spot)',
symptoms: [
'White spots on skin and fins',
'Flashing behavior (rubbing against surfaces)',
'Loss of appetite',
'Labored breathing'
],
treatment: 'Salt bath treatment (3-5 ppt for 3-5 days). Raise water temperature to 30°C. Use formalin or malachite green as directed.',
preventiveMeasures: [
'Quarantine new fish',
'Maintain stable water temperature',
'Good water quality management',
'Reduce stress factors'
],
severity: 'medium'
},
{
id: 'disease-003',
name: 'Columnaris Disease',
symptoms: [
'White or gray patches on skin',
'Frayed fins',
'Ulcers or sores',
'Difficulty breathing'
],
treatment: 'Antibiotic treatment with oxytetracycline or florfenicol. Salt bath (1%) for 5 minutes daily. Improve water quality.',
preventiveMeasures: [
'Maintain water temperature below 28°C',
'Minimize handling stress',
'Regular water quality checks',
'Proper stocking density'
],
severity: 'high'
},
{
id: 'disease-004',
name: 'Saprolegnia (Fungal Infection)',
symptoms: [
'Cotton-like growth on skin',
'White or gray fuzzy patches',
'Lethargy',
'Loss of equilibrium'
],
treatment: 'Salt treatment (10 ppt for 30 minutes). Potassium permanganate bath. Remove dead tissue if possible.',
preventiveMeasures: [
'Avoid physical injuries to fish',
'Maintain good water quality',
'Proper handling procedures',
'Quarantine infected fish'
],
severity: 'medium'
},
{
id: 'disease-005',
name: 'Ammonia Toxicity',
symptoms: [
'Gasping at surface',
'Red or inflamed gills',
'Lethargy',
'Loss of appetite',
'Erratic swimming'
],
treatment: 'Immediate 50% water change. Stop feeding. Add zeolite to remove ammonia. Increase aeration. Monitor ammonia levels closely.',
preventiveMeasures: [
'Regular water quality testing',
'Proper biofilter maintenance',
'Avoid overfeeding',
'Maintain proper stocking density',
'Regular partial water changes'
],
severity: 'critical'
},
{
id: 'disease-006',
name: 'Parasitic Anchor Worm',
symptoms: [
'Visible worm-like parasites',
'Red inflamed areas on skin',
'Flashing behavior',
'Loss of scales'
],
treatment: 'Manual removal with tweezers. Organophosphate treatment (trichlorfon). Salt bath treatment (3%).',
preventiveMeasures: [
'Quarantine all new fish',
'Regular inspection',
'Maintain good water quality',
'Use parasite-free water sources'
],
severity: 'low'
}
];
export const mockHealthRecords: HealthRecord[] = [
{
id: 'health-001',
tankId: 'tank-001',
date: '2026-02-10',
diseaseId: 'disease-001',
affectedCount: 150,
mortality: 12,
treatmentApplied: 'Oxytetracycline 60mg/kg feed for 10 days + increased aeration',
notes: 'Water quality improved after treatment. DO levels raised to 6.5 mg/L.',
resolved: true
},
{
id: 'health-002',
tankId: 'tank-002',
date: '2026-02-05',
diseaseId: 'disease-002',
affectedCount: 80,
mortality: 5,
treatmentApplied: 'Salt bath 4 ppt for 4 days + temperature raised to 30°C',
notes: 'White spots significantly reduced after 3 days of treatment.',
resolved: true
},
{
id: 'health-003',
tankId: 'tank-003',
date: '2026-02-12',
diseaseId: 'disease-005',
affectedCount: 300,
mortality: 45,
treatmentApplied: '60% water change, feeding stopped for 48h, added zeolite',
notes: 'Ammonia spike due to pump failure. Emergency measures taken immediately.',
resolved: false
},
{
id: 'health-004',
tankId: 'tank-001',
date: '2026-01-28',
diseaseId: 'disease-004',
affectedCount: 25,
mortality: 3,
treatmentApplied: 'Salt treatment 10 ppt for 30 minutes + quarantine',
notes: 'Infection occurred after rough handling during sampling.',
resolved: true
}
];
export const mockNotifications: Notification[] = [
{
id: 'notif-001',
userId: '1',
templateName: 'WATER_QUALITY_ALERT',
subject: 'Critical Water Quality Alert',
body: 'Tank A-03: pH level has dropped to 6.2. Immediate action required.',
data: { tankId: 'tank-003', parameter: 'pH', value: 6.2 },
status: 'SENT',
sentAt: new Date('2026-02-15T08:30:00'),
createdAt: new Date('2026-02-15T08:30:00')
},
{
id: 'notif-002',
userId: '1',
templateName: 'WATER_QUALITY_ALERT',
subject: 'High Ammonia Alert',
body: 'Tank B-01: Ammonia levels elevated to 0.08 mg/L. Check immediately.',
data: { tankId: 'tank-003', parameter: 'ammonia', value: 0.08 },
status: 'SENT',
sentAt: new Date('2026-02-15T09:15:00'),
createdAt: new Date('2026-02-15T09:15:00')
},
{
id: 'notif-003',
userId: '2',
templateName: 'WATER_QUALITY_ALERT',
subject: 'Low Dissolved Oxygen',
body: 'Tank A-01: DO dropped to 3.5 mg/L. Increase aeration.',
data: { tankId: 'tank-001', parameter: 'DO', value: 3.5 },
status: 'READ',
sentAt: new Date('2026-02-14T14:20:00'),
readAt: new Date('2026-02-14T14:45:00'),
createdAt: new Date('2026-02-14T14:20:00')
},
{
id: 'notif-004',
userId: '1',
templateName: 'WATER_QUALITY_ALERT',
subject: 'Feed Inventory Low',
body: 'High Protein Feed 32% is running low. Only 250 kg remaining.',
data: { foodType: 'High Protein Feed 32%', quantity: 250 },
status: 'SENT',
sentAt: new Date('2026-02-15T07:00:00'),
createdAt: new Date('2026-02-15T07:00:00')
},
{
id: 'notif-005',
userId: '1',
templateName: 'WATER_QUALITY_ALERT',
subject: 'Harvest Due Soon',
body: 'Tank A-02 batch is approaching target weight. Consider harvest planning.',
data: { tankId: 'tank-002', batchId: 'batch-002' },
status: 'PENDING',
createdAt: new Date('2026-02-15T10:00:00')
}
];
// mockData.ts
export interface InventoryItem {
id: string;
farmId: string;
name: string;
type: 'feed' | 'medicine' | 'tool' | 'fuel';
quantity: number;
unit: string;
reorderLevel: number;
costPerUnit: number;
supplier: string;
expiryDate?: string;
}
export const mockInventory: InventoryItem[] = [
{
id: '1',
farmId: 'farm-1',
name: 'Floating Fish Feed - 3mm',
type: 'feed',
quantity: 1200,
unit: 'kg',
reorderLevel: 500,
costPerUnit: 0.8,
supplier: 'AquaFeeds Co.',
expiryDate: '2026-05-15'
},
{
id: '2',
farmId: 'farm-1',
name: 'Tilapia Growth Booster',
type: 'medicine',
quantity: 40,
unit: 'bottles',
reorderLevel: 25,
costPerUnit: 15,
supplier: 'FishCare Pharma',
expiryDate: '2026-03-10'
},
{
id: '3',
farmId: 'farm-1',
name: 'Water Quality Test Kit',
type: 'tool',
quantity: 5,
unit: 'units',
reorderLevel: 3,
costPerUnit: 120,
supplier: 'AquaTools Ltd'
},
{
id: '4',
farmId: 'farm-2',
name: 'Diesel Fuel',
type: 'fuel',
quantity: 300,
unit: 'liters',
reorderLevel: 200,
costPerUnit: 1.2,
supplier: 'Local Fuel Station'
},
{
id: '5',
farmId: 'farm-2',
name: 'Sinking Fish Feed - 5mm',
type: 'feed',
quantity: 350,
unit: 'kg',
reorderLevel: 400,
costPerUnit: 0.9,
supplier: 'AquaFeeds Co.',
expiryDate: '2026-02-20'
},
{
id: '6',
farmId: 'farm-1',
name: 'Antibiotic Treatment A',
type: 'medicine',
quantity: 10,
unit: 'boxes',
reorderLevel: 20,
costPerUnit: 45,
supplier: 'FishCare Pharma',
expiryDate: '2026-01-25'
}
];
// Growth Measurements Mock Data
export const mockGrowthMeasurements = [
{
id: 'growth-001',
batchId: 'batch-001',
tankId: 'A-03',
measuredAt: new Date('2026-02-12'),
daysInCulture: 45,
sampleSize: 30,
totalSampleWeightGrams: 9750,
averageWeightGrams: 325,
minWeightGrams: 280,
maxWeightGrams: 360,
stdDeviationGrams: 18.5,
coefficientOfVariation: 5.7,
averageLengthCm: 22.5,
estimatedFishCount: 920,
estimatedBiomassKg: 299,
sgr: 2.1,
adg: 2.5,
weightGainGrams: 75,
weightGainPercentage: 30,
fcr: 1.52,
survivalRate: 92,
conditionFactor: 1.89,
fcrRating: 'GOOD',
sgrRating: 'GOOD',
overallRating: 'GOOD',
recommendations: [
'Growth rate is on target - continue current feeding',
'FCR is within acceptable range',
'Consider sorting fish to improve uniformity'
],
measuredBy: 'Ahmed Mohamed',
isEstimate: false,
notes: 'Fish looking healthy, good color',
createdAt: new Date('2026-02-12')
},
{
id: 'growth-002',
batchId: 'batch-001',
tankId: 'A-03',
measuredAt: new Date('2026-01-13'),
daysInCulture: 15,
sampleSize: 25,
totalSampleWeightGrams: 6250,
averageWeightGrams: 250,
minWeightGrams: 220,
maxWeightGrams: 280,
estimatedFishCount: 950,
estimatedBiomassKg: 237.5,
sgr: 3.2,
adg: 10,
weightGainGrams: 150,
weightGainPercentage: 150,
fcr: 1.45,
survivalRate: 95,
fcrRating: 'EXCELLENT',
sgrRating: 'EXCELLENT',
overallRating: 'EXCELLENT',
recommendations: [
'Excellent growth rate - maintain current protocol',
'FCR is excellent',
'High survival rate - good water quality management'
],
measuredBy: 'Fatima Hassan',
isEstimate: false,
createdAt: new Date('2026-01-13')
},
{
id: 'growth-003',
batchId: 'batch-002',
tankId: 'B-12',
measuredAt: new Date('2026-02-10'),
daysInCulture: 60,
sampleSize: 35,
totalSampleWeightGrams: 15750,
averageWeightGrams: 450,
minWeightGrams: 380,
maxWeightGrams: 520,
estimatedFishCount: 780,
estimatedBiomassKg: 351,
sgr: 1.8,
adg: 3.5,
fcr: 1.65,
survivalRate: 88,
fcrRating: 'ACCEPTABLE',
sgrRating: 'ACCEPTABLE',
overallRating: 'ACCEPTABLE',
recommendations: [
'Growth rate slightly below target',
'Consider increasing feeding frequency',
'Monitor water quality closely'
],
measuredBy: 'Omar Ibrahim',
isEstimate: false,
notes: 'Some fish showing signs of stress',
createdAt: new Date('2026-02-10')
}
];
// Fish Inventory Batches Mock Data
export const mockFishInventoryBatches: FishInventoryBatch[] = [
{
id: 'fish-inv-001',
farmId: '1',
purchaseOrderId: 'PO-2026-001',
species: 'Nile Tilapia',
quantity: 5000,
initialQuantity: 5000,
averageWeight: 15,
status: 'READY_TO_STOCK',
healthCheckStatus: 'PASSED',
healthCheckDate: '2026-02-14',
deliveryDate: '2026-02-10',
quarantinePeriodDays: 5,
notes: 'High quality fingerlings from certified hatchery'
},
{
id: 'fish-inv-002',
farmId: '1',
purchaseOrderId: 'PO-2026-002',
species: 'African Catfish',
quantity: 3000,
initialQuantity: 3000,
averageWeight: 20,
status: 'QUARANTINE',
healthCheckStatus: 'PENDING',
deliveryDate: '2026-02-16',
quarantinePeriodDays: 7,
notes: 'In quarantine tank Q-01, observing for 7 days'
},
{
id: 'fish-inv-003',
farmId: '2',
purchaseOrderId: 'PO-2026-003',
species: 'European Seabass',
quantity: 2000,
initialQuantity: 2000,
averageWeight: 25,
status: 'READY_TO_STOCK',
healthCheckStatus: 'PASSED',
healthCheckDate: '2026-02-13',
deliveryDate: '2026-02-08',
quarantinePeriodDays: 5,
notes: 'Excellent condition, ready for stocking'
},
{
id: 'fish-inv-004',
farmId: '1',
purchaseOrderId: 'PO-2026-004',
species: 'Nile Tilapia',
quantity: 0,
initialQuantity: 4000,
averageWeight: 18,
status: 'DEPLETED',
healthCheckStatus: 'PASSED',
healthCheckDate: '2026-02-05',
deliveryDate: '2026-02-01',
quarantinePeriodDays: 5,
notes: 'All fish allocated to Tank A-01 and A-02'
}
];
// Fish Batches in Tanks Mock Data
export const mockFishBatches: FishBatch[] = [
{
id: 'batch-001',
tankId: 'tank-001',
farmId: '1',
inventoryBatchId: 'fish-inv-004',
species: 'Nile Tilapia',
initialCount: 2500,
currentCount: 2350,
initialAverageWeight: 18,
currentAverageWeight: 125,
remainingProportion: 0.94,
status: 'ACTIVE',
stockedDate: '2026-02-06',
expectedHarvestDate: '2026-05-15',
notes: 'Batch showing excellent growth'
},
{
id: 'batch-002',
tankId: 'tank-002',
farmId: '1',
inventoryBatchId: 'fish-inv-004',
species: 'Nile Tilapia',
initialCount: 1500,
currentCount: 1425,
initialAverageWeight: 18,
currentAverageWeight: 110,
remainingProportion: 0.95,
status: 'ACTIVE',
stockedDate: '2026-02-06',
expectedHarvestDate: '2026-05-15'
}
]; |