Fold duplicated campanha access, loaders, list/filter/form shells, and scripts into shared modules; reorganize utilities by domain; stabilize e2e; and document prevention-first audit workflow so the same smells cannot creep back in.
6 lines
371 B
TypeScript
6 lines
371 B
TypeScript
/** `value.trim()` when it is a string, `''` otherwise (P3-I — was byte-identical in 4 collections). */
|
||
export const trimmedText = (value: unknown): string =>
|
||
typeof value === 'string' ? value.trim() : ''
|
||
|
||
/** One day in milliseconds — THE neutral spelling (P3-K; was ×3, one of them in `suggestionCatalog`'s public interface). */
|
||
export const DAY_MS = 86_400_000
|