NationalSecurityAgency / skills-service

SkillTree is a micro-learning gamification platform supporting the rapid integration of a gamified tool training approach into new and existing applications.
https://skilltreeplatform.dev
Apache License 2.0
414 stars 96 forks source link

skills-display - badges overall percentage does not take into account partial skill/level completion #2850

Open rmmayo opened 2 months ago

rmmayo commented 2 months ago

For both global and project badge's, the overall percentage completed is only incremented when a badges required skills and/or levels are fully completed. Consider changing the logic to take into account partially completed dependencies.

image :point_up: this should probably be at 40% Overall = (2/5 + 2/5) / 2

image :point_up: this should probably be at 20% Overall = (1/5) / 1

image :point_up: this should probably be at 75% Overall (1 + 0.5) / 2