discourse/plugins/automation/admin
Sérgio Saquetim 6f06709643
DEV: Replace ArrayProxy with tracked array for ResultSets (#35527)
Refactors ResultSet handling to use tracked arrays and native array
APIs, removing ArrayProxy semantics.

- Access items via .content across controllers, routes, components, and
templates (conditionals, #each, find, map)
- Replace Ember array mutators on ResultSets:
  * removeObject → removeValueFromArray
  * addObjects → addUniqueValuesToArray
  * setObjects → content.splice(...)
  * unshiftObjects → content.unshift(...)
- Use modern native APIs on ResultSets:
  * toSorted for non-mutating sort
  * .at(-1) for last element access
- Update adapter/util logic to iterate results.content (e.g., theme
afterFindAll, default theme lookup)
- Initialize tracked collections where needed (e.g., themes list via
TrackedArray) to maintain reactivity
2025-10-28 16:04:09 -03:00
..
assets/javascripts DEV: Replace ArrayProxy with tracked array for ResultSets (#35527) 2025-10-28 16:04:09 -03:00