mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-02 12:03:12 +00:00
chore(work-orders): remove ticket keys from audit docs
This commit is contained in:
parent
e46e42df69
commit
c75f8b6239
3 changed files with 3 additions and 3 deletions
|
|
@ -41,7 +41,7 @@ function formatSeverityAuditLabel(raw: string): string {
|
|||
|
||||
const CLEARED_AUDIT_VALUE: FormattedAuditValue = { text: "—", isQuotedList: false };
|
||||
|
||||
/** SH-363: `from X to Y` whenever the previous value is known; a cleared value reads as "—". */
|
||||
/** `from X to Y` whenever the previous value is known; a cleared value reads as "—". */
|
||||
function formatFieldChangeSentence(
|
||||
label: string,
|
||||
oldValue: FormattedAuditValue,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
const AUDIT_DATE_PATTERN = /\b\d{1,2}\/\d{1,2}(\/\d{2,4})?\b/;
|
||||
|
||||
/**
|
||||
* SH-361: every entry, manual or system, shows a complete timestamp — `09/15/2026 · 7:42 PM`.
|
||||
* Every entry, manual or system, shows a complete timestamp — `09/15/2026 · 7:42 PM`.
|
||||
* Pre-formatted API strings are kept only when they already carry a calendar date.
|
||||
*/
|
||||
export function formatAuditTimestamp(value: string): string {
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ function formatGenericAuditFallback(args: {
|
|||
if (oldValue.text) {
|
||||
return `Changed ${label} from ${wrapAuditValue(oldValue)} to "—"`;
|
||||
}
|
||||
// SH-363: never surface a raw audit enum such as "FieldChanged" as the sentence.
|
||||
// Never surface a raw audit enum such as "FieldChanged" as the sentence.
|
||||
if (fieldName && action) return `Updated ${label}`;
|
||||
return "Updated work order";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue