Improved badge granting workflow

Thanks for the pointer :slight_smile:

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:

  1. to make Grant Badge a modal like Change Ownership.
  2. to make a new widget appear like so:

    (quick mockup in paint)
  3. to open the normal badge granting page in /admin/users/[:id]/[:username]/badges and fill in the reason automatically with where we first click the Grant Badge button

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?

3 Likes