discourse/app/assets/javascripts/admin/addon/components
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-config-area-cards DEV: standardise toasts duration (#32741) 2025-05-15 14:59:37 +02:00
admin-config-areas FEATURE: Allow editing theme-owned palettes (#34722) 2025-10-06 09:02:39 +03:00
form-template DEV: Replace the use of Ember's .findBy for native methods on arrays (#34557) 2025-09-24 15:32:13 -03:00
modal DEV: Move tags-admin-dropdown to admin bundle (#35376) 2025-10-14 19:23:28 +01:00
report-filters DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
schema-setting DEV: Add delete confirm message on schema setting editor (#35330) 2025-10-10 14:50:10 -05:00
site-settings DEV: Replace deprecated Ember's array uniq and uniqBy (#35227) 2025-10-13 16:47:36 -03:00
admin-area-settings.gjs UX: Better separate login and authentication settings (#33711) 2025-10-09 15:29:21 -04:00
admin-backups-actions.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
admin-backups-logs.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
admin-badges-award.gjs DEV: Add Settings tab to admin Badges page (#32251) 2025-04-21 09:41:29 +08:00
admin-badges-index.gjs DEV: Add Settings tab to admin Badges page (#32251) 2025-04-21 09:41:29 +08:00
admin-badges-list.gjs DEV: Add Settings tab to admin Badges page (#32251) 2025-04-21 09:41:29 +08:00
admin-badges-show.gjs FIX: Badge grouping for system badges should be editable (#33504) 2025-07-08 10:56:47 +08:00
admin-badges.gjs DEV: allows to pass @currentWhen to NavItem (#32825) 2025-05-21 09:31:47 +02:00
admin-config-area-card-section.gjs UX: card section toggle (#31644) 2025-03-06 10:31:29 +11:00
admin-config-area-card.gjs DEV: Move AdminConfigAreaCard back to the admin bundle (#33429) 2025-07-02 14:03:33 +03:00
admin-config-area-empty-list.gjs FEATURE: Themeable site settings (#32233) 2025-07-16 11:00:21 +10:00
admin-editable-field.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
admin-embedding-host-form.gjs DEV: Remove unused services from core (#34236) 2025-08-18 13:15:11 +02:00
admin-filter-controls.gjs UX: Replace dropdown with a dedicated index page for email templates (#35284) 2025-10-13 13:05:26 +03:00
admin-filtered-site-settings.gjs UX: Better separate login and authentication settings (#33711) 2025-10-09 15:29:21 -04:00
admin-flag-item.gjs UX: make admin list item headings clickable (#34772) 2025-09-15 09:08:50 -04:00
admin-flags-form.gjs DEV: Simplify "Admin Flags Page" system test to reduce runtime duration (#32431) 2025-04-24 15:47:22 +08:00
admin-font-chooser.gjs UX: split admin logo and fonts to separate pages (#32700) 2025-05-14 14:02:34 +08:00
admin-fonts-form.gjs DEV: Remove unused services from core (#34236) 2025-08-18 13:15:11 +02:00
admin-form-row.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
admin-logo-form.gjs DEV: Convert SimpleList to glimmer (#34490) 2025-09-26 14:24:30 +02:00
admin-nav.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
admin-notice.gjs DEV: add btn-default classes to buttons using default styling (#31039) 2025-01-28 15:40:34 -05:00
admin-penalty-history.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
admin-penalty-post-action.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
admin-penalty-reason.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
admin-penalty-similar-users.gjs Build(deps-dev): Bump the lint group across 1 directory with 4 updates (#33881) 2025-07-28 18:02:41 +02:00
admin-permalink-form.gjs FIX: Make permalink search work even when there're 100+ permalinks (#31354) 2025-02-16 00:19:16 +03:00
admin-plugin-config-area.gjs DEV: Remove unused services from core (#34236) 2025-08-18 13:15:11 +02:00
admin-plugin-config-page.gjs DEV: Remove unused services from core (#34236) 2025-08-18 13:15:11 +02:00
admin-plugins-list-item.gjs UX: make admin list item headings clickable (#34772) 2025-09-15 09:08:50 -04:00
admin-plugins-list.gjs DEV: Use reusable d-table instead of admin-only styles (#33531) 2025-07-10 19:58:04 -06:00
admin-report-chart.gjs DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
admin-report-counters.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
admin-report-inline-table.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
admin-report-radar.gjs DEV: Replace Ember's deprecated mapBy with standard .map (#34963) 2025-09-26 12:59:35 -03:00
admin-report-stacked-chart.gjs DEV: Replace Ember's deprecated mapBy with standard .map (#34963) 2025-09-26 12:59:35 -03:00
admin-report-stacked-line-chart.gjs DEV: Replace Ember's deprecated mapBy with standard .map (#34963) 2025-09-26 12:59:35 -03:00
admin-report-storage-stats.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
admin-report-table-cell.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
admin-report-table-header.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
admin-report-table-row.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
admin-report-table.gjs DEV: Replace deprecated Ember's array compact (#35259) 2025-10-13 16:10:36 -03:00
admin-report.gjs DEV: Replace deprecated Ember's array uniq and uniqBy (#35227) 2025-10-13 16:47:36 -03:00
admin-reports.gjs DEV: apply common filter component to AI persona admin (#34300) 2025-08-14 10:25:18 -04:00
admin-search-filters.gjs UX: rework button classes (#34882) 2025-10-02 13:32:36 -06:00
admin-search.gjs DEV: Remove unused services from core (#34236) 2025-08-18 13:15:11 +02:00
admin-section-landing-item.gjs UX: don't highlight admin content on hover if it isn't clickable (#34332) 2025-08-14 15:59:29 -04:00
admin-section-landing-wrapper.gjs DEV: Add a skeleton for section landing page & items (#28477) 2024-10-02 12:19:38 +10:00
admin-site-settings-changes-banner.gjs FEATURE: Theme-owned color palettes (#32795) 2025-06-04 07:47:58 +03:00
admin-site-settings-filter-controls.gjs Revert "UX: Hide inner site settings sidebar if admin sidebar enabled (#31047)" (#31267) 2025-02-11 12:47:40 +10:00
admin-theme-editor.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
admin-user-exports-table.gjs DEV: standardise toasts duration (#32741) 2025-05-15 14:59:37 +02:00
admin-user-field-item.gjs UX: make admin list item headings clickable (#34772) 2025-09-15 09:08:50 -04:00
admin-user-fields-form.gjs FEATURE: Allow hiding user fields on signup form (#34672) 2025-09-15 10:42:07 +08:00
admin-watched-word.gjs A11Y: add aria-hidden="true" wrapper around zero width space character in buttons (#31544) 2025-02-27 12:51:10 -05:00
api-key-item.gjs DEV: Use reusable d-table instead of admin-only styles (#33531) 2025-07-10 19:58:04 -06:00
bulk-user-delete-confirmation.gjs DEV: revert admin users list change (#32723) 2025-05-15 09:48:01 +02:00
changes-banner.gjs Build(deps-dev): Bump the lint group across 1 directory with 4 updates (#33881) 2025-07-28 18:02:41 +02:00
chart.gjs DEV: Load chartjs via npm/webpack (#35249) 2025-10-07 21:20:10 +01:00
color-input.gjs FIX: Allow saving category when color attributes are 3-digits hex (#35119) 2025-10-02 14:33:30 +03:00
color-palette-editor.gjs FIX: Safari color palette pasting (#35348) 2025-10-13 13:37:37 +08:00
color-palette-list-item.gjs FEATURE: Allow editing theme-owned palettes (#34722) 2025-10-06 09:02:39 +03:00
dashboard-new-feature-item.gjs DEV: Remove unused services from core (#34236) 2025-08-18 13:15:11 +02:00
dashboard-new-features.gjs DEV: Replace deprecated Ember's array compact (#35259) 2025-10-13 16:10:36 -03:00
dashboard-period-selector.gjs DEV: add btn-default classes to buttons using default styling (#31039) 2025-01-28 15:40:34 -05:00
dashboard-problems.gjs DEV: Replace deprecated Ember's array sortBy with sort (#34998) 2025-09-26 13:38:26 -03:00
edit-category-general.gjs DEV: Move edit-category route to admin bundle (#35374) 2025-10-14 19:23:14 +01:00
edit-category-images.gjs DEV: Move edit-category route to admin bundle (#35374) 2025-10-14 19:23:14 +01:00
edit-category-localizations.gjs DEV: Move edit-category route to admin bundle (#35374) 2025-10-14 19:23:14 +01:00
edit-category-panel.gjs DEV: Move edit-category route to admin bundle (#35374) 2025-10-14 19:23:14 +01:00
edit-category-security.gjs DEV: Move edit-category route to admin bundle (#35374) 2025-10-14 19:23:14 +01:00
edit-category-settings.gjs DEV: Move edit-category route to admin bundle (#35374) 2025-10-14 19:23:14 +01:00
edit-category-tab.gjs DEV: Move edit-category route to admin bundle (#35374) 2025-10-14 19:23:14 +01:00
edit-category-tags.gjs DEV: Move edit-category route to admin bundle (#35374) 2025-10-14 19:23:14 +01:00
edit-category-topic-template.gjs DEV: Move edit-category route to admin bundle (#35374) 2025-10-14 19:23:14 +01:00
email-logs-list.gjs DEV: Consolidate AdminEmailLogs controllers into EmailLogsList (#35399) 2025-10-15 16:10:38 -03:00
email-styles-editor.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
embeddable-host.gjs DEV: Use reusable d-table instead of admin-only styles (#33531) 2025-07-10 19:58:04 -06:00
emoji-uploader.gjs DEV: Replace deprecated Ember's array uniq and uniqBy (#35227) 2025-10-13 16:47:36 -03:00
emoji-value-list.gjs DEV: Replace Ember's deprecated mapBy with standard .map (#34963) 2025-09-26 12:59:35 -03:00
file-size-input.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
flag-user.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
highlighted-code.gjs DEV: Convert highlighted-code to glimmer/gjs (#28914) 2024-09-17 13:49:35 +02:00
images-uploader.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
inline-edit-checkbox.gjs UX: rework button classes (#34882) 2025-10-02 13:32:36 -06:00
install-theme-item.gjs UX: Creating a new theme/component should redirect to theme edit route (#34353) 2025-08-19 11:30:44 +08:00
ip-lookup.gjs DEV: revert admin users list change (#32723) 2025-05-15 09:48:01 +02:00
moderation-history-item.js DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
permalink-form.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
plugin-commit-hash.gjs DEV: Convert various components to gjs (#26782) 2024-04-30 16:44:49 +02:00
screened-ip-address-form.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
secret-value-list.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
setting-validation-message.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
silence-details.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
simple-list.gjs FIX: Removes debugging line (#35157) 2025-10-02 14:54:12 -05:00
site-customization-change-details.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
site-customization-change-field.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
site-setting.gjs DEV: Replace deprecated Ember's array uniq and uniqBy (#35227) 2025-10-13 16:47:36 -03:00
site-text-summary.gjs DEV: Move discourse-common/(utils|lib) to discourse/lib (#30733) 2025-01-13 13:02:49 +00:00
staff-actions.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
tags-admin-dropdown.js DEV: Move tags-admin-dropdown to admin bundle (#35376) 2025-10-14 19:23:28 +01:00
tags-uploader.gjs DEV: Move discourse-common/ helpers to discourse/ (#30728) 2025-01-13 09:36:11 +00:00
theme-setting-editor.js FEATURE: Themeable site settings (#32233) 2025-07-16 11:00:21 +10:00
theme-setting-relatives-selector.js FIX: Make theme relative selectors save (#33344) 2025-06-25 14:06:13 +03:00
theme-settings-editor.gjs DEV: [gjs-codemod] convert admin files to gjs 2025-03-25 16:59:21 +00:00
theme-site-setting-editor.gjs FIX: Link to correct staff action logs for theme site setting (#34315) 2025-08-15 11:14:05 +10:00
theme-site-settings.gjs FEATURE: Move theme site settings config page to a tab in the customize page (#34376) 2025-08-20 12:03:47 +10:00
theme-translation.js FIX: Hide secret admin fields by default (#33255) 2025-06-24 13:36:59 -05:00
theme-upload-add.gjs DEV: [gjs-codemod] convert admin files to gjs 2025-03-25 16:59:21 +00:00
themes-grid-card.gjs DEV: Add plugin outlet to components config area and data-theme-id to themes grid (#35006) 2025-09-30 15:05:08 +03:00
themes-grid-placeholder.gjs UX: Add more info to theme cards (#32334) 2025-05-05 09:06:05 +08:00
themes-grid.gjs DEV: Remove unused services from core (#34236) 2025-08-18 13:15:11 +02:00
themes-list-item.gjs DEV: Replace deprecated Ember's array .[] (#35159) 2025-10-08 14:45:40 -03:00
uppy-backup-uploader.gjs DEV: Consolidate i18n import paths (#29804) 2024-11-19 20:45:18 +00:00
value-list.gjs DEV: Replace deprecated Ember's array uniq and uniqBy (#35227) 2025-10-13 16:47:36 -03:00
version-checks.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
watched-word-form.gjs DEV: Remove unused services from core (#34236) 2025-08-18 13:15:11 +02:00
watched-word-uploader.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
webhook-event-chooser.gjs DEV: Replace deprecated Ember's native array any with some (#35010) 2025-09-30 15:49:13 -03:00
webhook-event.gjs DEV: [gjs-codemod] convert admin files to gjs 2025-03-25 16:59:21 +00:00
webhook-events.gjs DEV: refactor load-more component to glimmer and use intersection observer (#32285) 2025-04-28 10:22:35 +08:00
webhook-item.gjs DEV: Use reusable d-table instead of admin-only styles (#33531) 2025-07-10 19:58:04 -06:00
webhook-status.gjs UX: Apply admin table to webhooks (#30317) 2024-12-17 08:52:29 -07:00