mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-05 07:12:06 +00:00
chore(work-orders): remove ticket keys from lifecycle docs
This commit is contained in:
parent
f6a22a9096
commit
e65049691c
1 changed files with 3 additions and 3 deletions
|
|
@ -12,17 +12,17 @@ import {
|
|||
} from "@/domain/work-orders/utils/wo-closability";
|
||||
|
||||
/**
|
||||
* SH-169: lifecycle states the server derives (Incomplete from create, Scheduled from Schedule On).
|
||||
* Lifecycle states the server derives (Incomplete from create, Scheduled from Schedule On).
|
||||
* Past Due is an overlay, not a status. None of these may be picked manually on an existing WO.
|
||||
*/
|
||||
export const AUTOMATIC_LIFECYCLE_STATUSES: readonly WizardWOStatus[] = ["Incomplete", "Scheduled"];
|
||||
|
||||
/** Manually selectable statuses for an existing WO — Canceled is kebab-only (SH-113). */
|
||||
/** Manually selectable statuses for an existing WO — Canceled is kebab-only. */
|
||||
export const BOARD_INLINE_STATUSES: readonly WizardWOStatus[] = ALL_WIZARD_STATUSES.filter(
|
||||
(status) => !AUTOMATIC_LIFECYCLE_STATUSES.includes(status),
|
||||
);
|
||||
|
||||
/** SH-358: inline options for an existing WO never repeat its current status. */
|
||||
/** Inline options for an existing WO never repeat its current status. */
|
||||
export function getInlineStatusTransitions(currentStatus: string): WizardWOStatus[] {
|
||||
return BOARD_INLINE_STATUSES.filter((status) => status !== currentStatus);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue