{
  "name": "Animal ReproTech",
  "short_name": "ReproTech",
  "description": "Genomics, reproduction, lab, and herd management",
  "start_url": "/?source=pwa",
  "scope": "/",
  "display": "standalone",
  "display_override": ["window-controls-overlay", "standalone", "browser"],
  "orientation": "any",
  "background_color": "#070d1b",
  "theme_color": "#0e7490",
  "icons": [
    { "src": "/icons/icon-48.png",  "sizes": "48x48",   "type": "image/png", "purpose": "any" },
    { "src": "/icons/icon-72.png",  "sizes": "72x72",   "type": "image/png", "purpose": "any" },
    { "src": "/icons/icon-96.png",  "sizes": "96x96",   "type": "image/png", "purpose": "any" },
    { "src": "/icons/icon-128.png", "sizes": "128x128", "type": "image/png", "purpose": "any" },
    { "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any" },
    { "src": "/icons/icon-384.png", "sizes": "384x384", "type": "image/png", "purpose": "any" },
    { "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any" },
    { "src": "/icons/icon-maskable-192.png", "sizes": "192x192", "type": "image/png", "purpose": "maskable" },
    { "src": "/icons/icon-maskable-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }
  ],
  "shortcuts": [
    {
      "name": "Animals",
      "short_name": "Animals",
      "description": "Search herd registry and animal records",
      "url": "/#/animals",
      "icons": [
        {
          "src": "/icons/icon-96.png",
          "sizes": "96x96",
          "type": "image/png"
        }
      ]
    },
    {
      "name": "Daily Ultrasound",
      "short_name": "Ultrasound",
      "description": "Open daily clinical ultrasound scans",
      "url": "/#/repro-daily-ultrasound",
      "icons": [
        {
          "src": "/icons/icon-96.png",
          "sizes": "96x96",
          "type": "image/png"
        }
      ]
    },
    {
      "name": "Daily Work",
      "short_name": "Daily Work",
      "description": "Open field reproduction task board",
      "url": "/#/repro-daily-work",
      "icons": [
        {
          "src": "/icons/icon-96.png",
          "sizes": "96x96",
          "type": "image/png"
        }
      ]
    },
    {
      "name": "Offline & mobile tools",
      "short_name": "PWA Tools",
      "description": "Sync queue, offline status, and field readiness",
      "url": "/#/pwa-center",
      "icons": [
        {
          "src": "/icons/icon-96.png",
          "sizes": "96x96",
          "type": "image/png"
        }
      ]
    }
  ],
  "share_target": {
    "action": "/share-handler",
    "method": "POST",
    "enctype": "multipart/form-data",
    "params": {
      "title": "title", "text": "text", "url": "url",
      "files": [{ "name": "file", "accept": ["image/*", "application/pdf", ".csv", ".xlsx"] }]
    }
  },
  "protocol_handlers": [
    { "protocol": "web+reprotech", "url": "/deep-link?target=%s" }
  ],
  "screenshots": [
    {
      "src": "/screenshots/mobile-animals.png",
      "sizes": "1080x1920",
      "type": "image/png",
      "form_factor": "narrow",
      "label": "Animal Management"
    },
    {
      "src": "/screenshots/mobile-reproduction.png",
      "sizes": "1080x1920",
      "type": "image/png",
      "form_factor": "narrow",
      "label": "Reproduction Dashboard"
    },
    {
      "src": "/screenshots/desktop-genomics.png",
      "sizes": "1920x1080",
      "type": "image/png",
      "form_factor": "wide",
      "label": "Genomics Pipeline"
    }
  ],
  "categories": ["productivity", "business", "medical"],
  "lang": "en",
  "dir": "ltr",
  "id": "com.animalreprotech.genomics",
  "handle_links": "preferred",
  "launch_handler": {
    "client_mode": "navigate-existing"
  },
  "edge_side_panel": {
    "preferred_width": 400
  },
  "file_handlers": [
    {
      "action": "/?handler=import",
      "accept": {
        "text/csv": [".csv"],
        "text/tab-separated-values": [".tsv"],
        "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [".xlsx"],
        "application/vnd.ms-excel": [".xls"],
        "text/plain": [".vcf", ".ped", ".map", ".bim", ".fam"]
      },
      "icons": [{ "src": "/icons/icon-96.png", "sizes": "96x96", "type": "image/png" }]
    }
  ],
  "widgets": [
    {
      "name": "Herd snapshot",
      "short_name": "Herd",
      "description": "Key herd KPIs at a glance",
      "tag": "herd-snapshot",
      "ms_ac_template": "/widgets/herd-snapshot.json",
      "data": "/api/widgets/herd-snapshot",
      "type": "application/json",
      "auth": true,
      "update": 3600,
      "icons": [{ "src": "/icons/icon-96.png", "sizes": "96x96", "type": "image/png" }],
      "screenshots": [
        { "src": "/screenshots/desktop-genomics.png", "sizes": "1920x1080", "label": "Herd snapshot" }
      ]
    }
  ]
}
