discourse/plugins/discourse-user-notes
Sérgio Saquetim 95a95a492b
DEV: Deprecate Site.mobileView/desktopView during initialization (#34122)
This commit introduces deprecation warnings for accessing Site.mobileView or
Site.desktopView during application initialization to prevent
layout-related errors and improve code reliability.

The changes include:

* Added deprecation warnings for Site.mobileView and Site.desktopView
access during the initialization phase.
* Updated multiple plugins and components to avoid these deprecated
calls during startup.
* Refactored initialization logic across discourse-ai, discourse-chat,
discourse-calendar, discourse-reactions, discourse-assign,
discourse-subscriptions, and discourse-user-notes plugins
* Improved error prevention by discouraging early access to
view-dependent properties before the application is fully initialized
* Enhanced code maintainability by establishing clearer boundaries
between initialization and runtime phases

This deprecation helps prevent subtle bugs that can occur when
components try to determine the view type before the application context
is properly established, leading to more robust plugin initialization
patterns.
2025-08-25 16:49:52 -03:00
..
app
assets DEV: Deprecate Site.mobileView/desktopView during initialization (#34122) 2025-08-25 16:49:52 -03:00
config Update translations (#34510) 2025-08-25 11:43:23 +02:00
db/migrate
spec DEV: Remove unnecessary rails_helper requires (#33812) 2025-07-24 13:50:04 +02:00
test/javascripts/acceptance
plugin.rb
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