mint-o-badges / badgr-ui

GNU Affero General Public License v3.0
4 stars 2 forks source link

ui: once badge is awarded or QR code for badge request is added, no editing possible anymore #806

Open zven opened 3 weeks ago

zven commented 3 weeks ago

Badges should only be editable as long as they have not been awarded and no QR code for requesting badges has been generated. When one of the two cases apply, the "edit badge" button should be greyed out.

When the user has created a badge and wants to award it for the first time, the following dialogue should appear and warn the user: https://www.figma.com/design/rq5IOcBWjVAl7tmvtq0GqS/Use-Cases?node-id=8522-29761&t=BN76ohmrrN1YJ9H0-4

Image

The same applies for the QR code feature: https://www.figma.com/design/rq5IOcBWjVAl7tmvtq0GqS/Use-Cases?node-id=8522-29738&t=BN76ohmrrN1YJ9H0-4

Image

Please note that the button Badge vergeben does not make sense in the second case and should be replaced with QR Code erstellen.

umut0 commented 2 weeks ago

Do we do the same for learningpaths?

zven commented 2 weeks ago

@umut0 Good thought! For adding badges to a learning path, no: Since a learning path creator is also able to add external badges to their learning path, this way you could block editing of external badges.

Nevertheless, it would make sense to add this mechanism before awarding the final learning path badge.