2026-09-16 12:05:50 -03:00
|
|
|
/**
|
2026-09-16 16:56:26 -03:00
|
|
|
* Help copy for date-column headers on the work orders board table.
|
2026-09-16 12:05:50 -03:00
|
|
|
* Keyed by the `WO_TABLE_COLS` column key; only columns with copy here show a
|
|
|
|
|
* header help icon. `appt` (Appt Time) is an intentional open point — do not
|
|
|
|
|
* add it without a business-rule decision.
|
|
|
|
|
*/
|
|
|
|
|
export const WO_TABLE_HEADER_TOOLTIPS = {
|
|
|
|
|
sched: "The date the work is planned to happen. Setting it moves the work order to Scheduled.",
|
|
|
|
|
due: "The deadline for the work — when it must be completed by.",
|
|
|
|
|
completed: "The date the vendor actually finished the work. Required to complete the work order.",
|
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
|
|
export function getWoTableHeaderTooltip(colKey: string): string | undefined {
|
|
|
|
|
return colKey in WO_TABLE_HEADER_TOOLTIPS
|
|
|
|
|
? WO_TABLE_HEADER_TOOLTIPS[colKey as keyof typeof WO_TABLE_HEADER_TOOLTIPS]
|
|
|
|
|
: undefined;
|
|
|
|
|
}
|