Thanks for sharing Laura, this is very clever 'hacking' of what's there!
I may be missing it, but I don't see how this would make my badges 'visible' to others in the course. I can't think of a way to do this in the user's profile page, either.
So, as far as I can see, this is a helpful feedback for the student on their own progress. Have I got it right?
Martin