chore(workorders): keep ticket keys out of source comments

This commit is contained in:
Alexandre Brandizzi 2026-09-24 22:03:23 -03:00
parent 51ca244524
commit c1fd8f6d88
5 changed files with 5 additions and 5 deletions

View file

@ -227,7 +227,7 @@ export const workOrdersApi = {
"Unable to verify the work order number: search result set exceeded the safety page limit.", "Unable to verify the work order number: search result set exceeded the safety page limit.",
); );
} }
// Every week plus undated rows: a WO# must be unique regardless of schedule (SH-391). // Every week plus undated rows: a WO# must be unique regardless of schedule.
const result = await workOrdersApi.searchBoard({ const result = await workOrdersApi.searchBoard({
search: normalized, search: normalized,
datePreset: "Custom", datePreset: "Custom",

View file

@ -23,7 +23,7 @@ export type DateRangeKey =
export type CompletionDocFilter = "No" | "Yes" | "NN"; export type CompletionDocFilter = "No" | "Yes" | "NN";
export interface WorkOrderAdvancedFilters { export interface WorkOrderAdvancedFilters {
/** `null` = no date range selected: search every week (SH-391). */ /** `null` = no date range selected: search every week. */
dateRange: DateRangeKey | null; dateRange: DateRangeKey | null;
customFrom: string; customFrom: string;
customTo: string; customTo: string;

View file

@ -319,7 +319,7 @@ export interface WorkOrderBoardSearchQueryParams {
*/ */
unscheduledOnly?: boolean; unscheduledOnly?: boolean;
/** /**
* SH-391: `true` adds open rows with no date to the range. Sent only when no * `true` adds open rows with no date to the range. Sent only when no
* date range is selected, so an explicit range strictly narrows the results. * date range is selected, so an explicit range strictly narrows the results.
*/ */
includeDateless?: boolean; includeDateless?: boolean;

View file

@ -18,7 +18,7 @@ const isOpenUndated = (row: WorkOrderTableRow): boolean =>
!row.scheduledOn && !isTerminalCarryOverStatus(row.status); !row.scheduledOn && !isTerminalCarryOverStatus(row.status);
// Mirrors the board search (ApplyDateRangeFilter and ApplyUnscheduledOnlyFilter) // Mirrors the board search (ApplyDateRangeFilter and ApplyUnscheduledOnlyFilter)
// so the page and /board/search keep the same rows (SH-391): a row is in a range // so the page and /board/search keep the same rows: a row is in a range
// when its date is, or when it is week-only and its target week overlaps. With // when its date is, or when it is week-only and its target week overlaps. With
// no range, every week is searched and open undated rows are added. Closed // no range, every week is searched and open undated rows are added. Closed
// undated rows are never unscheduled. // undated rows are never unscheduled.

View file

@ -162,7 +162,7 @@ function resolveAdvancedSearchDate(filters: WorkOrderAdvancedFilters): {
if (filters.unscheduledOnly) { if (filters.unscheduledOnly) {
return {}; return {};
} }
// SH-391: no range selected searches every week, undated rows included. Any // No range selected searches every week, undated rows included. Any
// selected range (This week included) strictly narrows the results. // selected range (This week included) strictly narrows the results.
if (filters.dateRange === null) { if (filters.dateRange === null) {
return { return {