I want to add Yaga badges to the profile card that pops up when you click on a users icon. Is a controller I can tap into for this car to add them at the bottom of the window?
Sorry I guess its called a handler. I am looking for the handler for the UserCard
A long time power user of Vanilla has the following sentence in his signature "grep is your friend" ;-)
So grep -ril usercards gives the following results:
grep -ril usercards
*.tsx are a hint for React components - welcome to hell...
"Funny" side note: I wanted to enable that feature and wasn't able to find out how to. I have no clue where in the settings to find that. Then, when reading the list of files for the 5th time, I saw "VanillaLabsPage" and I remembered there is a settings menu item "Labs". Well, if you want to change something there you
- need to understand the React build chain
- find out if you can simply override that page somehow without messing up the core files or
- recompile your changes on every update
React has scoped css which means you cannot simply style it with additional css, you cannot add or remove content to components on the fly. It's a dead end for simple extendability. Every change you want to have requires you to duplicate the complete theme. A "view-only" plugin which adds some content somewhere has been super easy with php based themes, but is messy with React.
So there are no built in handlers so that a plugin can add to the user card before or after its render?