Problem/Motivation
The button next to the learning path progress is always set to “Continue Training” regardless of the state the user is in for that training.
In our case this is a bit confusing for the end user.
Steps to reproduce
Set up a learning path and the button text next to the progress bar is always “Continue Training” even if the user have not started yet or if it is passed.
Proposed resolution
It would make more sense if the button text changed accordingly to the progress. So if the
- progress is 0%, the button say “Start”
- progress is more than 0% the button say “Continue”
- progress is 100% the button say “Passed”
Attached is a patch with an attempt to adjust this. I am very new to the Opigno ecosystem so if there is a better way or something I’v missed here please help out.
Remaining tasks
TBD
User interface changes
TBD
API changes
TBD
Data model changes
TBD
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | learning_path_progress_button-3215120-6.patch | 1019 bytes | dajjen |
| #3 | learning_path_progress_button-3215120-3.patch | 940 bytes | dajjen |
| #2 | learning_path_progress_button-3215120.patch | 1.15 KB | miax |
Comments
Comment #2
miax commentedComment #3
dajjenReroll patch to latest 8.x-1.x branch as of today.
I also changed how to get current user cause code in Drupal should accept its dependencies via either constructor injection or setter method injection.
Comment #4
axelmHi
Thanks for the suggestion and the patch.
It will be applied in the next release
Comment #5
axelmComment #6
dajjenReroll patch.
Comment #7
axelmReleases in Opigno 2.27
Comment #8
axelm