{
  "name": "KaiInvoice",
  "short_name": "KaiInvoice",
  "description": "Professional invoice and estimate management for UK trade professionals. Create, send, and track invoices for plumbing, heating, and electrical services.",
  "start_url": "/dashboard",
  "id": "/kaiinvoice",
  "display": "standalone",
  "display_override": ["window-controls-overlay", "standalone", "minimal-ui", "browser"],
  "background_color": "#060912",
  "theme_color": "#059669",
  "orientation": "any",
  "scope": "/",
  "lang": "en-GB",
  "dir": "ltr",

  "icons": [
    {
      "src": "/icon-192.png",
      "sizes": "192x192",
      "type": "image/png",
      "purpose": "any"
    },
    {
      "src": "/icon-512.png",
      "sizes": "512x512",
      "type": "image/png",
      "purpose": "any"
    },
    {
      "src": "/icon-192-maskable.png",
      "sizes": "192x192",
      "type": "image/png",
      "purpose": "maskable"
    },
    {
      "src": "/icon-512-maskable.png",
      "sizes": "512x512",
      "type": "image/png",
      "purpose": "maskable"
    }
  ],

  "screenshots": [
    {
      "src": "/screenshot-wide.png",
      "sizes": "2752x1536",
      "type": "image/png",
      "form_factor": "wide",
      "label": "Dashboard overview with invoice statistics and document list"
    },
    {
      "src": "/screenshot-narrow.png",
      "sizes": "1536x2752",
      "type": "image/png",
      "form_factor": "narrow",
      "label": "Mobile invoice view with line items and totals"
    }
  ],

  "categories": ["business", "productivity", "finance"],

  "related_applications": [],
  "prefer_related_applications": false,

  "shortcuts": [
    {
      "name": "New Invoice",
      "short_name": "Invoice",
      "description": "Create a new invoice",
      "url": "/documents/new?type=invoice",
      "icons": [{ "src": "/icon-192.png", "sizes": "192x192" }]
    },
    {
      "name": "New Estimate",
      "short_name": "Estimate",
      "description": "Create a new estimate",
      "url": "/documents/new?type=estimate",
      "icons": [{ "src": "/icon-192.png", "sizes": "192x192" }]
    },
    {
      "name": "Customers",
      "short_name": "Customers",
      "description": "Manage customers",
      "url": "/customers",
      "icons": [{ "src": "/icon-192.png", "sizes": "192x192" }]
    },
    {
      "name": "Price Catalogue",
      "short_name": "Prices",
      "description": "View trade service prices",
      "url": "/price-catalogue",
      "icons": [{ "src": "/icon-192.png", "sizes": "192x192" }]
    }
  ],

  "file_handlers": [
    {
      "action": "/documents/import",
      "accept": {
        "text/csv": [".csv"],
        "application/json": [".json"]
      }
    }
  ],

  "launch_handler": {
    "client_mode": ["navigate-existing", "auto"]
  },

  "protocol_handlers": [
    {
      "protocol": "web+kaiinvoice",
      "url": "/handle-protocol?url=%s"
    },
    {
      "protocol": "web+invoice",
      "url": "/documents/new?data=%s"
    }
  ],

  "share_target": {
    "action": "/share-target",
    "method": "POST",
    "enctype": "multipart/form-data",
    "params": {
      "title": "name",
      "text": "description",
      "url": "link",
      "files": [
        {
          "name": "documents",
          "accept": ["text/csv", "application/json", "application/pdf"]
        }
      ]
    }
  },

  "edge_side_panel": {
    "preferred_width": 400
  },

  "handle_links": "preferred",

  "note_taking": {
    "new_note_url": "/documents/new"
  }
}
