2026-09-25 11:08:21 -03:00
|
|
|
/** Filled in on every generated document; shown read-only so authors don't retype them. */
|
|
|
|
|
export const AUTO_POPULATED_FIELDS = ["WO#", "Site Code", "Address", "Service Type"] as const;
|
|
|
|
|
|
2026-09-25 11:13:25 -03:00
|
|
|
/** Server limits; the inputs stop there instead of failing the save. */
|
|
|
|
|
export const PROCEDURE_NAME_MAX_LENGTH = 200;
|
|
|
|
|
export const EXTRA_SAFETY_NOTE_MAX_LENGTH = 2000;
|
|
|
|
|
|
2026-09-25 11:08:21 -03:00
|
|
|
export const COMPLETION_TEMPLATE_COPY = {
|
|
|
|
|
pageTitle: "Completion Docs",
|
|
|
|
|
searchPlaceholder: "Search document title…",
|
|
|
|
|
addTemplate: "Add Template",
|
|
|
|
|
saveChanges: "Save changes",
|
|
|
|
|
titleRequired: "Document Title is required",
|
|
|
|
|
noProcedureDetail: "No procedure defined yet",
|
|
|
|
|
noProcedurePreview: "No procedure added yet.",
|
|
|
|
|
untitledDocument: "UNTITLED COMPLETION DOCUMENT",
|
|
|
|
|
autoFilledSuffix: "— auto-filled per work order",
|
|
|
|
|
emptySearchTitle: "No templates found",
|
|
|
|
|
emptySearchHint: "Try a different search, or add a new template.",
|
|
|
|
|
added: "Template added",
|
|
|
|
|
updated: "Template updated",
|
|
|
|
|
deleted: "Template deleted",
|
|
|
|
|
} as const;
|
|
|
|
|
|
|
|
|
|
export function templateCountLabel(count: number): string {
|
|
|
|
|
return `${count} template${count === 1 ? "" : "s"}`;
|
|
|
|
|
}
|