discourse/app/assets/javascripts/admin/addon/components/site-settings
Sérgio Saquetim 0c4f285618
DEV: Replace deprecated Ember's array uniq and uniqBy (#35227)
This commit replaces several instances of `.uniq`, `.uniqBy`, and related
array deduplication methods with a new utility function
`uniqueItemsFromArray`. This change ensures proper deduplication logic
across the codebase while addressing the deprecation issues.

**Main Changes:**

* Created new utility function `uniqueItemsFromArray`: Located in a new
file, `array-tools.js`, this function provides a reusable and
configurable alternative for deduplication.
* Replaced old methods: Updated multiple files to use the new utility
function instead of deprecated or custom implementations for
deduplication.
* Replaced manual deduplication: Replace uses of `[...new Set(array)]`
to standardize the deduplication logic across the codebase.
* Added unit tests: Introduced thorough test coverage
(`array-tools-test.js`) to validate functionality and edge cases for the
utility function.
* Updated deprecation workflow: Added logging for deprecated uniq and
uniqBy methods to the `deprecation-workflow.js`.

This change is primarily focused on code quality improvements, ensuring
future-proof deduplication, and maintaining alignment with deprecation
guidelines.
2025-10-13 16:47:36 -03:00
..
bool.gjs FEATURE: Show themeable site settings in site setting lists (#34666) 2025-09-22 10:55:23 +10:00
category-list.gjs DEV: Replace Ember's deprecated mapBy with standard .map (#34963) 2025-09-26 12:59:35 -03:00
category.gjs DEV: Round 1 converting admin site setting components to gjs (#30526) 2025-01-03 11:34:28 +10:00
color.gjs UX: add welcome banner text color setting (#34657) 2025-09-24 15:19:40 +08:00
compact-list.gjs DEV: Replace deprecated Ember's array uniq and uniqBy (#35227) 2025-10-13 16:47:36 -03:00
description.gjs DEV: Update htmlSafe imports (#26776) 2024-04-27 12:01:58 +02:00
emoji-list.gjs DEV: Round 1 converting admin site setting components to gjs (#30526) 2025-01-03 11:34:28 +10:00
enum.gjs FEATURE: Show themeable site settings in site setting lists (#34666) 2025-09-22 10:55:23 +10:00
file-size-restriction.gjs FIX: Make cancel and reset buttons work for file_size_restriction settings (#28347) 2024-08-15 19:38:47 +03:00
file-types-list.gjs DEV: Replace deprecated Ember's array uniq and uniqBy (#35227) 2025-10-13 16:47:36 -03:00
font-list.gjs UX: Use FontSelector for displaying font-related settings. (#30636) 2025-01-09 09:57:38 +11:00
group-list.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
host-list.gjs FEATURE: Show themeable site settings in site setting lists (#34666) 2025-09-22 10:55:23 +10:00
integer.gjs FEATURE: Show themeable site settings in site setting lists (#34666) 2025-09-22 10:55:23 +10:00
job-status.gjs FIX: Remove text added by mistake (#34447) 2025-08-20 16:48:51 -03:00
list.gjs FEATURE: Show themeable site settings in site setting lists (#34666) 2025-09-22 10:55:23 +10:00
locale-enum.gjs FEATURE: Localize language names (#33790) 2025-07-29 11:48:45 +08:00
locale-list.gjs FEATURE: Localize language names (#33790) 2025-07-29 11:48:45 +08:00
named-list.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
secret-list.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
simple-list.gjs DEV: Enable ember/no-classic-components (#33978) 2025-07-30 14:54:24 +02:00
string.gjs FEATURE: Show themeable site settings in site setting lists (#34666) 2025-09-22 10:55:23 +10:00
tag-group-list.gjs FEATURE: Show themeable site settings in site setting lists (#34666) 2025-09-22 10:55:23 +10:00
tag-list.gjs FEATURE: Show themeable site settings in site setting lists (#34666) 2025-09-22 10:55:23 +10:00
upload.gjs FEATURE: Show themeable site settings in site setting lists (#34666) 2025-09-22 10:55:23 +10:00
uploaded-image-list.gjs FEATURE: Show themeable site settings in site setting lists (#34666) 2025-09-22 10:55:23 +10:00
url-list.gjs FEATURE: Show themeable site settings in site setting lists (#34666) 2025-09-22 10:55:23 +10:00
value-list.gjs FEATURE: Show themeable site settings in site setting lists (#34666) 2025-09-22 10:55:23 +10:00