Improved badge granting workflow

Hi everyone :slight_smile: I forked the repository and did some commits as I think it could be easier then to comment. I would appreciate some guidance before I get more lost :slight_smile: You can see my commits here:

https://github.com/mauditecandela/discourse/commit/c8155861ad33269eb14abb52436bfeef54c25def

  • I created a select button in the tanner menu (post-admin-menu) as UX for the feature.
  • This button renders a modal that should show the grantable Badges and add the url of the post automatically as a reason. As you can see I was able to pass the object of the selected post, but I don’t know how to read its attributes (this is my first ember project), in order to get the url. Is there any easy solution? Any suggestions?
  • Also I would like to be able to read all the grantableBadges for the user. I don’t know if I should directly call them from the grant-badges controller or import them from somewhere else as I did with the selectedPost. What do you think? Any ideas?

Any other feedback is also welcome. Thanks in advance!

6 Likes