discourse/app/assets/javascripts/admin/addon/routes
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
..
admin DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-api DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-api-keys DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-badges DEV: Remove unused service injections (#34750) 2025-10-08 13:31:41 +02:00
admin-config DEV: Delete unused route file (#35379) 2025-10-14 18:06:43 +01:00
admin-customize DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-customize-email-style DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-customize-form-templates DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-customize-themes DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-email DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-email-logs DEV: Consolidate AdminEmailLogs controllers into EmailLogsList (#35399) 2025-10-15 16:10:38 -03:00
admin-email-templates UX: Replace dropdown with a dedicated index page for email templates (#35284) 2025-10-13 13:05:26 +03:00
admin-embedding DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-emojis DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-groups DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-logs DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-permalinks DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-plugins DEV: Remove unused service injections (#34750) 2025-10-08 13:31:41 +02:00
admin-reports DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-search DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-search-logs DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-site-settings DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-site-text DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-user DEV: Replace deprecated Ember's native array.get and .set (#35000) 2025-10-08 16:21:14 -03:00
admin-user-fields DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-users DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-users-list DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-watched-words DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-web-hooks DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
edit-category DEV: Move edit-category route to admin bundle (#35374) 2025-10-14 19:23:14 +01:00
admin-analytics.js DEV: Add Analytics and SEO admin config page (#32190) 2025-04-07 16:15:37 +08:00
admin-api-keys.js DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-api.js DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-badges.js DEV: Add Settings tab to admin Badges page (#32251) 2025-04-21 09:41:29 +08:00
admin-config-theme-site-settings.js FEATURE: Themeable site settings (#32233) 2025-07-16 11:00:21 +10:00
admin-config-user-api.js FEATURE: Initial version of experimental admin search (#31299) 2025-02-21 11:59:24 +10:00
admin-config-with-settings-route.js DEV: Preserve unsaved site settings (#32100) 2025-04-03 16:10:30 +08:00
admin-customize-email-style.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-customize-form-templates.js DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-customize-robots-txt.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-customize-themes.js DEV: remove old themes/components code (#32875) 2025-05-26 09:21:15 +08:00
admin-customize.js DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-email-logs.js DEV: Consolidate AdminEmailLogs controllers into EmailLogsList (#35399) 2025-10-15 16:10:38 -03:00
admin-email-templates.js UX: Replace dropdown with a dedicated index page for email templates (#35284) 2025-10-13 13:05:26 +03:00
admin-email.js UX: Add missing admin config page titles (#32198) 2025-04-08 10:02:11 +08:00
admin-embedding.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-emojis.js DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
admin-flags-posts-active.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-flags-posts-old.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-flags-topics-index.js DEV: Update admin routes to native class syntax (#20686) 2023-03-15 13:17:51 +00:00
admin-groups.js DEV: Add dedicated admin groups page (#32377) 2025-04-22 11:23:25 +08:00
admin-logs.js UX: Add missing admin config page titles (#32198) 2025-04-08 10:02:11 +08:00
admin-permalinks.js UX: Add missing admin config page titles (#32198) 2025-04-08 10:02:11 +08:00
admin-plugins.js DEV: Remove unused service injections (#34750) 2025-10-08 13:31:41 +02:00
admin-reports.js UX: Add missing admin config page titles (#32198) 2025-04-08 10:02:11 +08:00
admin-route-map.js DEV: Move edit-category route to admin bundle (#35374) 2025-10-14 19:23:14 +01:00
admin-search-logs.js DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-search.js DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-site-settings-category.js DEV: Replace the use of Ember's .findBy for native methods on arrays (#34557) 2025-09-24 15:32:13 -03:00
admin-site-settings.js DEV: Change admin site settings filter to be route based (#33167) 2025-06-16 11:20:38 +08:00
admin-site-text.js UX: Add missing admin config page titles (#32198) 2025-04-08 10:02:11 +08:00
admin-user-fields.js DEV: Modernize admin user fields (#29843) 2024-11-25 11:54:43 +08:00
admin-user.js DEV: Sort imports 2023-10-10 21:46:54 +01:00
admin-users-list.js FIX: Clicking send invites and export button on admin users page (#33121) 2025-06-10 08:44:43 +08:00
admin-users.js DEV: Standardize Ember route, controller and template naming (#34417) 2025-09-25 11:27:45 +01:00
admin-watched-words.js UX: Add missing admin config page titles (#32198) 2025-04-08 10:02:11 +08:00
admin-web-hooks.js Admin webhooks UI guidelines (#30764) 2025-01-16 10:22:18 +08:00
admin.js DEV: Remove unused service injections (#34750) 2025-10-08 13:31:41 +02:00
edit-category.js DEV: Move edit-category route to admin bundle (#35374) 2025-10-14 19:23:14 +01:00
new-category.js DEV: Move edit-category route to admin bundle (#35374) 2025-10-14 19:23:14 +01:00