discourse/app/assets/javascripts/admin/addon
Sérgio Saquetim 47fc8adb5c
DEV: Consolidate AdminEmailLogs controllers into EmailLogsList (#35399)
This commit updates the email logs functionality, primarily
simplifying and improving the code structure by removing redundant
classes and methods. It introduces new utility functions for handling
arrays uniquely and enhances the readability and maintainability of the
codebase.

**Main Changes:**

- Refactored email-logs-list.gjs to use @trackedArray and
addUniqueValuesToArray for cohesive array updates.
- Removed redundant controller files (e.g., admin-email-logs,
subcontrollers for specific statuses, corresponding routes) because
their functionality was unified into the `EmailLogsList` component,
which is in fact responsible for fetching the data.
- Refactored array-tools to include:
  * New utility methods: addUniqueValueToArray, addUniqueValuesToArray.
  * Improved validation and typed errors for consistency.
- Enhanced unit tests in array-tools-test.js to validate added
functionality for unique array modifications.
2025-10-15 16:10:38 -03:00
..
adapters FEATURE: Theme-owned color palettes (#32795) 2025-06-04 07:47:58 +03:00
components DEV: Consolidate AdminEmailLogs controllers into EmailLogsList (#35399) 2025-10-15 16:10:38 -03:00
controllers DEV: Consolidate AdminEmailLogs controllers into EmailLogsList (#35399) 2025-10-15 16:10:38 -03:00
helpers DEV: Drop legacy topic-list and raw-handlebars compilation system (#32081) 2025-04-14 10:42:40 +01:00
lib DEV: Replace deprecated Ember's native array.get and .set (#35000) 2025-10-08 16:21:14 -03:00
models DEV: Replace deprecated Ember's array uniq and uniqBy (#35227) 2025-10-13 16:47:36 -03:00
routes DEV: Consolidate AdminEmailLogs controllers into EmailLogsList (#35399) 2025-10-15 16:10:38 -03:00
services DEV: Replace deprecated Ember's array uniq and uniqBy (#35227) 2025-10-13 16:47:36 -03:00
templates DEV: Move edit-category route to admin bundle (#35374) 2025-10-14 19:23:14 +01:00