The discussion revolves around creating a custom activity tab in a user profile and modifying the Discourse UI through plugin development. SubStrider seeks guidance on adding UI elements like a custom string under the username, a button in the post control area, and a custom tab on the user profile. Arkshine suggests using the developer toolbar and plugin outlets, referencing the post-metadata__after outlet and the renderAfterWrapperOutlet API. NateDhaliwal clarifies the correct API usage, while David warns that the new glimmer post stream mode is not production-ready and recommends using the decorateWidget or addPosterIcon APIs for the current implementation. SubStrider also mentions challenges with opening a modal using a component, referencing a related issue.
I was dabbling with plugin development and while I have been able to make the plugin settings appear on the admin settings page, I am not quite sure how to make the UI elements to appear on the discourse UI.
If someone can point me to the direction of relevant documentation or which files to look at in any existing plugin as reference, then that would be really great.
PS:
I am trying to modify these sections overall.
add a custom string in the (topic meta data) userbit area under the username in the post.
add a button in the posts control area to open a form
add a custom tab on the user profile activity page
add some custom summary information on the user card and user summary stats
I am hoping to insert user reputation rating under their username. Or based on experience what would be a good place to insert it. topic-map-expanded-after?
It’s fine to play with this, but please make sure to read the disclaimer in the setting description. This mode is not yet ready for production use. We aren’t even using it on Meta.
For the current post-stream implementation, you’d need to use the old decorateWidget API, or the addPosterIcon API:
Sorry, David, I got too excited with the new stuff that I completely disregarded the warning that it’s still under active development. I will be careful next time.