discourse/plugins/discourse-user-notes
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
..
app DEV: Clean up scope resolution operators in plugins (#34979) 2025-09-30 14:36:34 +02:00
assets DEV: Replace ArrayProxy with tracked array for ResultSets (#35527) 2025-10-28 16:04:09 -03:00
config FIX: ensures user notes routes are correctly defined (#34960) 2025-09-24 20:45:16 +02:00
db/migrate
lib/discourse_user_notes DEV: Clean up scope resolution operators in plugins (#34979) 2025-09-30 14:36:34 +02:00
spec DEV: Trigger event after user warning is created (#34997) 2025-09-26 14:27:58 -03:00
test/javascripts/acceptance
plugin.rb DEV: Clean up scope resolution operators in plugins (#34979) 2025-09-30 14:36:34 +02:00
README.md

discourse-user-notes

https://meta.discourse.org/t/user-notes-plugin/41026/

This plugin gives staff members the ability to attach notes to users.

Whenever the user posts, a little note icon will appear beside their name if they have any staff notes. Clicking on it will reveal the notes other staff members have left.

Installation

Follow our Install a Plugin howto, using git clone https://github.com/discourse/discourse-user-notes.git as the plugin command.

Once you've installed it, review the settings under admin and then enable user_notes_enabled.

Clearing browser cache might be required when first installed

Issues

If you have issues or suggestions for the plugin, please bring them up on Discourse Meta.

License

MIT