export const progressTimelineItems = [
  {
    id: "1",
    label: "Tower A",
    startDate: new Date(2023, 0, 15), // Jan 15, 2023
    endDate: new Date(2023, 6, 30), // Jul 30, 2023
    progress: 100,
    status: "completed",
    photos: [
      {
        id: "1-1",
        url: "/placeholder.svg?height=300&width=400",
        caption: "Foundation completed",
      },
      {
        id: "1-2",
        url: "/placeholder.svg?height=300&width=400",
        caption: "Structure completed",
      },
    ],
    dependsOn: [],
  },
  {
    id: "2",
    label: "Tower B",
    startDate: new Date(2023, 3, 1), // Apr 1, 2023
    endDate: new Date(2023, 9, 15), // Oct 15, 2023
    progress: 85,
    status: "in-progress",
    photos: [
      {
        id: "2-1",
        url: "/placeholder.svg?height=300&width=400",
        caption: "Foundation work",
      },
    ],
    dependsOn: ["1"],
  },
  {
    id: "3",
    label: "Tower C",
    startDate: new Date(2023, 6, 1), // Jul 1, 2023
    endDate: new Date(2024, 0, 31), // Jan 31, 2024
    progress: 45,
    status: "in-progress",
    photos: [],
    dependsOn: ["1"],
  },
  {
    id: "4",
    label: "Tower D",
    startDate: new Date(2023, 8, 15), // Sep 15, 2023
    endDate: new Date(2024, 3, 30), // Apr 30, 2024
    progress: 20,
    status: "delayed",
    photos: [],
    dependsOn: ["2"],
  },
  {
    id: "5",
    label: "Tower E",
    startDate: new Date(2023, 11, 1), // Dec 1, 2023
    endDate: new Date(2024, 5, 30), // Jun 30, 2024
    progress: 0,
    status: "not-started",
    photos: [],
    dependsOn: [],
  },
];

export const resourceTimeline = [
  { id: "a", title: "Tower A", extendedProps: { photoCount: 2 } },
  { id: "b", title: "Tower B", extendedProps: { photoCount: 1 } },
  { id: "c", title: "Tower C" },
  { id: "d", title: "Tower D" },
  { id: "e", title: "Tower E" },
];

export const resourceTimelineEvents = [
  {
    resourceId: "a",
    start: "2025-01-15",
    end: "2025-07-30",
    title: "100%",
    backgroundColor: "#22c55e",
    extendedProps: {
      resourceId: "a",
      photoCount: 2
    }
  },
  {
    resourceId: "b",
    start: "2025-04-01",
    end: "2025-10-15",
    title: "85%",
    backgroundColor: "#3b82f6",
    extendedProps: {
      resourceId: "b",
      photoCount: 1
    }
  },
  {
    resourceId: "c",
    start: "2025-07-01",
    end: "2026-01-31",
    title: "45%",
    backgroundColor: "#3b82f6",
    extendedProps: {
      resourceId: "c",
      photoCount: 0
    }
  },
  {
    resourceId: "d",
    start: "2025-09-15",
    end: "2026-04-30",
    title: "20%",
    backgroundColor: "#f59e0b",
    extendedProps: {
      resourceId: "d",
      photoCount: 0
    }
  },
  {
    resourceId: "e",
    start: "2025-12-01",
    end: "2026-06-30",
    title: "0%",
    backgroundColor: "#9ca3af",
    extendedProps: {
      resourceId: "e",
      photoCount: 0
    }
  },
];

export const legendsItem = [
  { color: "#22c55e", label: "Complete" },
  { color: "#3b82f6", label: "In Progress" },
  { color: "#f59e0b", label: "Delayed" },
  { color: "#9ca3af", label: "Not Started" },
];
