import type { ColumnDef } from "../types/columns.js";

export const RESOURCE_COLUMNS: ColumnDef[] = [
  { key: "displayName",   label: "Name",         defaultVisible: true,  hideable: false },
  { key: "eid",           label: "EID",           defaultVisible: true,  hideable: true  },
  { key: "chapter",       label: "Chapter",       defaultVisible: true,  hideable: true  },
  { key: "roles",         label: "Roles",         defaultVisible: true,  hideable: true  },
  { key: "chargeability", label: "Chargeability", defaultVisible: true,  hideable: true, sortable: true },
  { key: "lcr",           label: "LCR",           defaultVisible: false, hideable: true  },
  { key: "valueScore",    label: "Score",         defaultVisible: false, hideable: true  },
  { key: "rolledOff",     label: "Rolled Off",    defaultVisible: false, hideable: true  },
  { key: "departed",      label: "Departed",      defaultVisible: false, hideable: true  },
  { key: "isActive",      label: "Status",        defaultVisible: true,  hideable: true  },
];

export const PROJECT_COLUMNS: ColumnDef[] = [
  { key: "shortCode",   label: "Code",        defaultVisible: true,  hideable: false },
  { key: "name",        label: "Name",        defaultVisible: true,  hideable: false },
  { key: "status",      label: "Status",      defaultVisible: true,  hideable: true  },
  { key: "orderType",   label: "Type",        defaultVisible: true,  hideable: true  },
  { key: "dates",       label: "Dates",       defaultVisible: true,  hideable: true  },
  { key: "budget",      label: "Budget",      defaultVisible: false, hideable: true  },
  { key: "allocations", label: "Allocations", defaultVisible: true,  hideable: true  },
  { key: "shoring",     label: "Shoring",     defaultVisible: false, hideable: true  },
  { key: "responsible", label: "Responsible", defaultVisible: false, hideable: true  },
];

export const ALLOCATION_COLUMNS: ColumnDef[] = [
  { key: "resource",    label: "Resource",   defaultVisible: true,  hideable: false },
  { key: "project",     label: "Project",    defaultVisible: true,  hideable: false },
  { key: "dates",       label: "Dates",      defaultVisible: true,  hideable: true  },
  { key: "hoursPerDay", label: "h/day",      defaultVisible: true,  hideable: true  },
  { key: "status",      label: "Status",     defaultVisible: true,  hideable: true  },
  { key: "cost",        label: "Daily Cost", defaultVisible: false, hideable: true  },
  { key: "role",        label: "Role",       defaultVisible: true,  hideable: true  },
];
