Remove duplicate utility code via shared formatting module #1
Reference in New Issue
Block a user
Delete Branch "dead-code/remove-duplicate-utilities"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Consolidate MONTH_NAMES, PALETTE, formatCurrency, formatCurrencyShort,
ordinal, and fmt into client/src/utils/formatting.js. Consolidate
CONFIG_KEYS into server/src/constants.js. All consumer files updated
to import from these shared modules. PaycheckView re-exports formatCurrency,
ordinal, and formatPayDate for backward compatibility with existing tests.
Nightshift-Task: dead-code
Nightshift-Ref: https://github.com/marcus/nightshift