Thanks for the pointer ![]()
I’ve done a bit of traversing through the code and found that the post admin menu is handled in post-admin-menu.js.es6.
to add the badge granting button, I’d just have to do a check over the permission and follow the same style as the other actions. like so:
(the button is only there to show how it would look like. )
But now I’m confused on how to approach it, there’s 3 that I could think of:
- to make
Grant Badgea modal likeChange Ownership. - to make a new widget appear like so:
(quick mockup in paint) - to open the normal badge granting page in
/admin/users/[:id]/[:username]/badgesand fill in the reason automatically with where we first click theGrant Badgebutton
that’s all so far.
If I were a user, I’d rather have 2 though as I don’t have to move to another page and make it flows smoother.
Any opinions? or a different direction I should aim for?

