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. |
||
|---|---|---|
| .. | ||
| app | ||
| assets | ||
| config | ||
| db/migrate | ||
| spec | ||
| 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