mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-02 10:53:13 +00:00
17 lines
825 B
TypeScript
17 lines
825 B
TypeScript
/**
|
|
* Help copy for date-column headers on the work orders board table.
|
|
* 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;
|
|
}
|