# Improved badge granting workflow

**URL:** <https://meta.discourse.org/t/improved-badge-granting-workflow/58631>\
**Category:** Feature\
**Tags:** badges, completed\
**Created:** [March 8, 2017, 12:19pm UTC](https://meta.discourse.org/t/improved-badge-granting-workflow/58631 "2017-03-08T12:19:07Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![clapmyhands](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/clapmyhands/32/69810_2.png) [@clapmyhands](https://meta.discourse.org/u/clapmyhands)\
**Post date:** [March 25, 2017, 10:05am UTC](https://meta.discourse.org/t/improved-badge-granting-workflow/58631/6 "2017-03-25T10:05:56Z")

</div>

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](https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/widgets/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:

 ![](https://global.discourse-cdn.com/meta/original/3X/2/b/2bd4175cf829950274a051ca59601e86c2512e74.png)

(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:  
 ![](https://global.discourse-cdn.com/meta/original/3X/f/7/f7114eb24371d79a950b2066306753c350fbd3c7.png)  
(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?

---

_[View the full topic](https://meta.discourse.org/t/improved-badge-granting-workflow/58631)._
