refactor(ui): clean up cancelPendingChange duplication and i18n keys in app.js #252

Open
opened 2026-10-03 09:12:06 +00:00 by gabogg · 0 comments
Owner

Follow-up for PR #177 (next-day settings activation, #114) addressing pass-4 review finding P3-5:

Scope

In app/static/js/app.js, cancelPendingChange is a near-duplicate of deleteHoliday and reuses confirmDeleteScheduleException and scheduleExceptionDeleted translation keys, causing the UI to report that an exception was "deleted" when the user cancels a pending change. Furthermore, its || '...' English fallbacks are dead code.

Acceptance Criteria

  • Introduce dedicated i18n keys for pending change cancellation confirmation and success.
  • Eliminate duplicate code and remove dead code English fallbacks in app.js.

Refs #177, #114.

Follow-up for PR #177 (next-day settings activation, #114) addressing pass-4 review finding P3-5: ### Scope In `app/static/js/app.js`, `cancelPendingChange` is a near-duplicate of `deleteHoliday` and reuses `confirmDeleteScheduleException` and `scheduleExceptionDeleted` translation keys, causing the UI to report that an exception was "deleted" when the user cancels a pending change. Furthermore, its `|| '...'` English fallbacks are dead code. ### Acceptance Criteria - Introduce dedicated i18n keys for pending change cancellation confirmation and success. - Eliminate duplicate code and remove dead code English fallbacks in `app.js`. Refs #177, #114.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gabogg/hikcentral#252
No description provided.