{
  "report_type": "PROJECT_DETAILED",
  "report_name": "SkylineTowers_ProjectDetailed_20260605_143022",
  "generated_at": "2026-06-05T14:30:22.000Z",
  "generated_at_epoch": 1780752622000,
  "generated_by": {
    "name": "Admin FieldWire",
    "email": "admin@fieldwire.com"
  },
  "company": {
    "name": "Skyline Construction Inc.",
    "logo_url": "https://firoj-computer.waysandmeanstechnology.co.uk/files/company-logos/skyline-logo.png"
  },
  "project": {
    "id": "6cac083c-356b-47a4-b7ef-b4b80f7ca0a2",
    "name": "Skyline Towers - Phase 2",
    "description": "Commercial high-rise construction project - 45 floors"
  },
  "filters_applied": {
    "status_keys": ["TO_INSTALL", "COMPLETED", "DEFICIENCY"],
    "priority": ["HIGH", "MEDIUM"],
    "category": "HVAC",
    "date_range": "Jan 2026 - Jun 2026"
  },
  "summary": {
    "total_tasks": 156,
    "by_status": [
      { "key": "TO_INSTALL", "label": "To Install", "color": "#2563eb", "count": 42, "percentage": 26.9 },
      { "key": "COMPLETED", "label": "Completed", "color": "#16a34a", "count": 68, "percentage": 43.6 },
      { "key": "VERIFIED", "label": "Verified", "color": "#7c3aed", "count": 22, "percentage": 14.1 },
      { "key": "DEFICIENCY", "label": "Deficiency", "color": "#dc2626", "count": 12, "percentage": 7.7 },
      { "key": "REWORK_NOT_COMPLETED", "label": "Rework Not Completed", "color": "#d97706", "count": 8, "percentage": 5.1 },
      { "key": "CANNOT_INSTALL_APPLIANCE", "label": "Cannot Install (Appliance)", "color": "#ef4444", "count": 4, "percentage": 2.6 }
    ],
    "by_priority": [
      { "key": "HIGH", "label": "High", "color": "#dc2626", "count": 34, "percentage": 21.8 },
      { "key": "MEDIUM", "label": "Medium", "color": "#d97706", "count": 78, "percentage": 50.0 },
      { "key": "LOW", "label": "Low", "color": "#2563eb", "count": 44, "percentage": 28.2 }
    ],
    "by_category": [
      { "name": "HVAC", "count": 45 },
      { "name": "Electrical", "count": 38 },
      { "name": "Plumbing", "count": 32 },
      { "name": "Fire Safety", "count": 22 },
      { "name": "General", "count": 19 }
    ],
    "by_assignee": [
      { "name": "Joseph Jose", "count": 28 },
      { "name": "Sevyn Romero", "count": 24 },
      { "name": "Bryson Donaldson", "count": 22 },
      { "name": "Octavia Correa", "count": 18 },
      { "name": "Unassigned", "count": 64 }
    ],
    "completion_rate": 57.7,
    "tasks_with_attachments": 89,
    "tasks_with_checklist": 112,
    "tasks_pinned_on_plan": 134,
    "total_comments": 342,
    "total_attachments": 267,
    "plan_count": 12,
    "checklist_completion_rate": 72.4
  },
  "tasks": [
    {
      "id": "db9b977b-78ad-498b-8b0d-25e644477f72",
      "title": "Install HVAC Unit - Suite 2301",
      "description": "Install and configure the main HVAC unit in suite 2301. Ensure proper ductwork connections and test airflow.",
      "status": {
        "key": "COMPLETED",
        "label": "Completed",
        "color": "#16a34a"
      },
      "priority": "HIGH",
      "priority_color": "#dc2626",
      "category": {
        "name": "HVAC",
        "color": "#22C55E"
      },
      "subcategory": {
        "name": "Central Air Units"
      },
      "appliance_type": {
        "name": "Split AC Unit"
      },
      "suite_number": "Suite 2301",
      "assigned_to": {
        "name": "Joseph Jose",
        "email": "joseph@mailinator.com",
        "profile_image_url": "/uploads/profile-images/profile-1774519874621-606543022.jpg"
      },
      "created_by": {
        "name": "Admin FieldWire",
        "email": "admin@fieldwire.com"
      },
      "plan": {
        "name": "Floor 23 - Mechanical Layout",
        "pin_snapshot_url": "https://firoj-computer.waysandmeanstechnology.co.uk/files/pin-snapshots/snapshot-db9b977b-78ad-498b-8b0d-25e644477f72-86ef6ce7.jpg"
      },
      "x_coordinate": 0.5136,
      "y_coordinate": 0.6417,
      "start_date": "2026-03-15",
      "end_date": "2026-03-22",
      "created_at": "2026-02-10T09:15:00.000Z",
      "updated_at": "2026-03-20T16:45:00.000Z",
      "last_status_changed_at": "2026-03-20T16:45:00.000Z",
      "last_status_changed_by": "Joseph Jose",
      "tags": [
        { "name": "Urgent", "color": "#dc2626" },
        { "name": "Floor 23", "color": "#2563eb" }
      ],
      "flags": [
        { "group_name": "Inspection Status", "label": "Passed" },
        { "group_name": "Warranty", "label": "5-Year Coverage" }
      ],
      "checklist": {
        "total": 6,
        "completed": 6,
        "items": [
          { "label": "Unbox and inspect unit", "is_completed": true },
          { "label": "Mount bracket on wall", "is_completed": true },
          { "label": "Connect ductwork", "is_completed": true },
          { "label": "Wire electrical connections", "is_completed": true },
          { "label": "Test airflow and temperature", "is_completed": true },
          { "label": "Clean up work area", "is_completed": true }
        ]
      },
      "attachments": [
        {
          "file_url": "https://firoj-computer.waysandmeanstechnology.co.uk/files/task-attachments/hvac-installed-front.jpg",
          "file_name": "hvac-installed-front.jpg",
          "file_type": "image/jpeg",
          "file_size": 2450000,
          "is_serial": false,
          "uploaded_by": "Joseph Jose",
          "created_at": "2026-03-20T14:30:00.000Z"
        },
        {
          "file_url": "https://firoj-computer.waysandmeanstechnology.co.uk/files/task-attachments/hvac-serial-number.jpg",
          "file_name": "hvac-serial-number.jpg",
          "file_type": "image/jpeg",
          "file_size": 1800000,
          "is_serial": true,
          "uploaded_by": "Joseph Jose",
          "created_at": "2026-03-20T14:32:00.000Z"
        },
        {
          "file_url": "https://firoj-computer.waysandmeanstechnology.co.uk/files/task-attachments/ductwork-connection.jpg",
          "file_name": "ductwork-connection.jpg",
          "file_type": "image/jpeg",
          "file_size": 3100000,
          "is_serial": false,
          "uploaded_by": "Joseph Jose",
          "created_at": "2026-03-20T15:10:00.000Z"
        }
      ],
      "comments": [
        {
          "content": "Unit delivered and inspected. No damage found during shipping.",
          "user": {
            "name": "Joseph Jose",
            "profile_image_url": "/uploads/profile-images/profile-1774519874621-606543022.jpg"
          },
          "created_at": "2026-03-15T08:30:00.000Z",
          "attachments": []
        },
        {
          "content": "Installation complete. Airflow tested at 450 CFM - within spec. Temperature differential confirmed at 18°F.",
          "user": {
            "name": "Joseph Jose",
            "profile_image_url": "/uploads/profile-images/profile-1774519874621-606543022.jpg"
          },
          "created_at": "2026-03-20T16:00:00.000Z",
          "attachments": [
            {
              "file_url": "https://firoj-computer.waysandmeanstechnology.co.uk/files/comment-attachments/airflow-reading.jpg",
              "file_type": "image/jpeg"
            }
          ]
        },
        {
          "content": "Verified and approved. Good work.",
          "user": {
            "name": "Admin FieldWire",
            "profile_image_url": "/uploads/profile-images/profile-1774262268589-328045791.png"
          },
          "created_at": "2026-03-20T16:45:00.000Z",
          "attachments": []
        }
      ],
      "related_tasks": [
        { "title": "Electrical Wiring - Suite 2301", "status_key": "VERIFIED", "status_color": "#7c3aed" },
        { "title": "Thermostat Installation - Suite 2301", "status_key": "COMPLETED", "status_color": "#16a34a" }
      ],
      "activities": [
        { "action_type": "TASK_CREATED", "user": "Admin FieldWire", "created_at": "2026-02-10T09:15:00.000Z" },
        { "action_type": "STATUS_CHANGED", "user": "Joseph Jose", "old_status": "TO_INSTALL", "new_status": "COMPLETED", "created_at": "2026-03-20T16:45:00.000Z" }
      ]
    },
    {
      "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "title": "Fire Sprinkler Head Replacement - Floor 15 Corridor",
      "description": "Replace damaged fire sprinkler head in the main corridor of floor 15. Ensure proper water pressure test after installation.",
      "status": {
        "key": "DEFICIENCY",
        "label": "Deficiency",
        "color": "#dc2626"
      },
      "priority": "HIGH",
      "priority_color": "#dc2626",
      "category": {
        "name": "Fire Safety",
        "color": "#EF4444"
      },
      "subcategory": {
        "name": "Sprinkler Systems"
      },
      "appliance_type": null,
      "suite_number": "Corridor 15-A",
      "assigned_to": {
        "name": "Sevyn Romero",
        "email": "sevyn@mailinator.com",
        "profile_image_url": "/uploads/profile-images/profile-1774937538387-201489690.jpg"
      },
      "created_by": {
        "name": "Bryson Donaldson",
        "email": "bryson@mailinator.com"
      },
      "plan": {
        "name": "Floor 15 - Fire Safety Layout",
        "pin_snapshot_url": "https://firoj-computer.waysandmeanstechnology.co.uk/files/pin-snapshots/snapshot-a1b2c3d4-e5f6-7890-abcd-ef1234567890.jpg"
      },
      "x_coordinate": 0.3245,
      "y_coordinate": 0.7812,
      "start_date": "2026-05-01",
      "end_date": "2026-05-05",
      "created_at": "2026-04-28T11:00:00.000Z",
      "updated_at": "2026-05-03T09:20:00.000Z",
      "last_status_changed_at": "2026-05-03T09:20:00.000Z",
      "last_status_changed_by": "Admin FieldWire",
      "tags": [
        { "name": "Safety Critical", "color": "#dc2626" },
        { "name": "Floor 15", "color": "#6366f1" }
      ],
      "flags": [],
      "checklist": {
        "total": 4,
        "completed": 2,
        "items": [
          { "label": "Shut off water supply to section", "is_completed": true },
          { "label": "Remove damaged sprinkler head", "is_completed": true },
          { "label": "Install new sprinkler head", "is_completed": false },
          { "label": "Pressure test at 150 PSI for 2 hours", "is_completed": false }
        ]
      },
      "attachments": [
        {
          "file_url": "https://firoj-computer.waysandmeanstechnology.co.uk/files/task-attachments/damaged-sprinkler.jpg",
          "file_name": "damaged-sprinkler.jpg",
          "file_type": "image/jpeg",
          "file_size": 1950000,
          "is_serial": false,
          "uploaded_by": "Bryson Donaldson",
          "created_at": "2026-04-28T11:15:00.000Z"
        },
        {
          "file_url": "https://firoj-computer.waysandmeanstechnology.co.uk/files/task-attachments/water-damage-ceiling.jpg",
          "file_name": "water-damage-ceiling.jpg",
          "file_type": "image/jpeg",
          "file_size": 2800000,
          "is_serial": false,
          "uploaded_by": "Bryson Donaldson",
          "created_at": "2026-04-28T11:18:00.000Z"
        }
      ],
      "comments": [
        {
          "content": "Sprinkler head cracked during routine inspection. Water leak detected. Immediate replacement required.",
          "user": {
            "name": "Bryson Donaldson",
            "profile_image_url": null
          },
          "created_at": "2026-04-28T11:20:00.000Z",
          "attachments": []
        },
        {
          "content": "Replacement part ordered. ETA 2 days. Water supply shut off to this section.",
          "user": {
            "name": "Sevyn Romero",
            "profile_image_url": "/uploads/profile-images/profile-1774937538387-201489690.jpg"
          },
          "created_at": "2026-04-29T09:00:00.000Z",
          "attachments": []
        },
        {
          "content": "Marking as deficiency - replacement delayed due to supply chain issue. New ETA: May 8.",
          "user": {
            "name": "Admin FieldWire",
            "profile_image_url": "/uploads/profile-images/profile-1774262268589-328045791.png"
          },
          "created_at": "2026-05-03T09:20:00.000Z",
          "attachments": [
            {
              "file_url": "https://firoj-computer.waysandmeanstechnology.co.uk/files/comment-attachments/supplier-email-screenshot.png",
              "file_type": "image/png"
            }
          ]
        }
      ],
      "related_tasks": [
        { "title": "Ceiling Repair - Floor 15 Corridor", "status_key": "TO_INSTALL", "status_color": "#2563eb" }
      ],
      "activities": [
        { "action_type": "TASK_CREATED", "user": "Bryson Donaldson", "created_at": "2026-04-28T11:00:00.000Z" },
        { "action_type": "STATUS_CHANGED", "user": "Sevyn Romero", "old_status": "NEW", "new_status": "TO_INSTALL", "created_at": "2026-04-29T09:05:00.000Z" },
        { "action_type": "STATUS_CHANGED", "user": "Admin FieldWire", "old_status": "TO_INSTALL", "new_status": "DEFICIENCY", "created_at": "2026-05-03T09:20:00.000Z" }
      ]
    },
    {
      "id": "f1f2f3f4-a5a6-b7b8-c9c0-d1d2d3d4d5d6",
      "title": "Electrical Panel Upgrade - Basement Level B2",
      "description": "Upgrade main electrical panel from 200A to 400A to support additional load from new HVAC systems on floors 20-25.",
      "status": {
        "key": "TO_INSTALL",
        "label": "To Install",
        "color": "#2563eb"
      },
      "priority": "MEDIUM",
      "priority_color": "#d97706",
      "category": {
        "name": "Electrical",
        "color": "#F59E0B"
      },
      "subcategory": {
        "name": "Main Distribution"
      },
      "appliance_type": {
        "name": "400A Panel Board"
      },
      "suite_number": "Basement B2",
      "assigned_to": {
        "name": "Octavia Correa",
        "email": "wnmqa3@mailinator.com",
        "profile_image_url": null
      },
      "created_by": {
        "name": "Admin FieldWire",
        "email": "admin@fieldwire.com"
      },
      "plan": {
        "name": "Basement B2 - Electrical Layout",
        "pin_snapshot_url": null
      },
      "x_coordinate": null,
      "y_coordinate": null,
      "start_date": "2026-06-10",
      "end_date": "2026-06-15",
      "created_at": "2026-05-20T10:00:00.000Z",
      "updated_at": "2026-05-28T14:30:00.000Z",
      "last_status_changed_at": null,
      "last_status_changed_by": null,
      "tags": [
        { "name": "Critical Path", "color": "#dc2626" },
        { "name": "Basement", "color": "#6b7280" }
      ],
      "flags": [],
      "checklist": {
        "total": 8,
        "completed": 0,
        "items": [
          { "label": "Obtain electrical permit", "is_completed": false },
          { "label": "Schedule power shutdown with building management", "is_completed": false },
          { "label": "Disconnect existing 200A panel", "is_completed": false },
          { "label": "Install new 400A panel board", "is_completed": false },
          { "label": "Run new feeder cables", "is_completed": false },
          { "label": "Connect and label all circuits", "is_completed": false },
          { "label": "Perform load test", "is_completed": false },
          { "label": "Get inspector sign-off", "is_completed": false }
        ]
      },
      "attachments": [
        {
          "file_url": "https://firoj-computer.waysandmeanstechnology.co.uk/files/task-attachments/current-panel-photo.jpg",
          "file_name": "current-panel-photo.jpg",
          "file_type": "image/jpeg",
          "file_size": 3200000,
          "is_serial": false,
          "uploaded_by": "Admin FieldWire",
          "created_at": "2026-05-20T10:15:00.000Z"
        },
        {
          "file_url": "https://firoj-computer.waysandmeanstechnology.co.uk/files/task-attachments/panel-upgrade-spec.pdf",
          "file_name": "panel-upgrade-spec.pdf",
          "file_type": "application/pdf",
          "file_size": 4500000,
          "is_serial": false,
          "uploaded_by": "Admin FieldWire",
          "created_at": "2026-05-20T10:20:00.000Z"
        }
      ],
      "comments": [
        {
          "content": "Panel board ordered from Schneider Electric. Model: QED2-400. Delivery expected June 5.",
          "user": {
            "name": "Octavia Correa",
            "profile_image_url": null
          },
          "created_at": "2026-05-22T11:00:00.000Z",
          "attachments": []
        },
        {
          "content": "Building management confirmed power shutdown window: June 10, 6:00 AM - 2:00 PM (8 hours).",
          "user": {
            "name": "Admin FieldWire",
            "profile_image_url": "/uploads/profile-images/profile-1774262268589-328045791.png"
          },
          "created_at": "2026-05-28T14:30:00.000Z",
          "attachments": [
            {
              "file_url": "https://firoj-computer.waysandmeanstechnology.co.uk/files/comment-attachments/shutdown-approval.pdf",
              "file_type": "application/pdf"
            }
          ]
        }
      ],
      "related_tasks": [
        { "title": "HVAC System - Floor 20", "status_key": "TO_INSTALL", "status_color": "#2563eb" },
        { "title": "HVAC System - Floor 21", "status_key": "TO_INSTALL", "status_color": "#2563eb" },
        { "title": "HVAC System - Floor 22", "status_key": "TO_INSTALL", "status_color": "#2563eb" }
      ],
      "activities": [
        { "action_type": "TASK_CREATED", "user": "Admin FieldWire", "created_at": "2026-05-20T10:00:00.000Z" },
        { "action_type": "COMMENT_ADDED", "user": "Octavia Correa", "created_at": "2026-05-22T11:00:00.000Z" },
        { "action_type": "COMMENT_ADDED", "user": "Admin FieldWire", "created_at": "2026-05-28T14:30:00.000Z" }
      ]
    }
  ],
  "pagination": {
    "total_tasks_in_report": 156,
    "tasks_shown": 3,
    "note": "Each task starts on a new page in the PDF"
  },
  "footer": {
    "confidential_notice": "CONFIDENTIAL - This report is intended for authorized personnel only.",
    "software": "Generated by Fieldwire Project Management System"
  }
}
