Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
The job icons are not correctly representing the situation.
The hourglass (blue) is displayed for unsubmitted jobs. A job manager though isn't waiting for anything here.
The orange triangle is (also) displayed for a submitted job. This state doesn't need action from the job manager as long as no unreviewed items are pending.
Proposed resolution
Switch the unsubmitted jobs to a red triangle. (Or any better proposal...)
A submitted job should display the hourglass as long as no item is pending for review.
User interface changes
Icons fit better.
Comment | File | Size | Author |
---|---|---|---|
#17 | 2663756-fix.patch | 3.25 KB | johnchque |
| |||
#13 | interdiff-2663756-9-13.txt | 5.34 KB | johnchque |
#13 | make_job_icons_also-2663756-13.patch | 15.3 KB | johnchque |
#9 | interdiff-2663756-2-8.txt | 13.95 KB | johnchque |
#9 | make_job_icons_also-2663756-9.patch | 14.44 KB | johnchque |
Comments
Comment #2
johnchqueIcons changed.
About the feedback:
I am not sure if we should do it in that way since the defined state for active jobs is STATE_ACTIVE and it is independent from JobItemState.
The icons now look like this:
Comment #3
miro_dietikerDiscussed with Berdir, we want to have an icon that has multiple variants for the active state.
The internal state names are not so relevant. We could change "Job state" to "Label" and just change "Active" to "In progress" and add the extra item for "Needs review".
Comment #4
miro_dietikerComment #5
miro_dietikerPushing this.
Identified this inconsistent output after introducing the progress bar.
After applying it looks better.
But the last icon is wrong now. It should show the orange triangle. It's translated, we are not waiting anymore.
Comment #6
miro_dietikerComment #7
johnchqueI am still working on this but it needs a lot of refactoring on tests. I will upload a patch soon.
Comment #8
miro_dietikerYeah, discussed this today and identified todo's in individual tests to cover all missing pieces and also upcoming issues... and also identified how we want to split the larger spaghetti in testCheckoutForm(). Most importantly, we said we want to have the overview and exposed filter test coverage with the different job + item states in a separate test method and check icon, progress indicators and also job item / data item status on the related detail level.
Comment #9
johnchqueAdded tests. I still thing that we need to delete some lines on other tests that are already being testes on the new ones in the patch.
Comment #10
johnchqueComment #12
miro_dietikerLooks pretty nice :-) ... can i haz passing tests? ;-)
Comment #13
johnchqueMy bad, should work now. Also, made some refactoring.
Comment #14
miro_dietikerYay, committed, nice work!
Comment #17
johnchqueThis should fix the tests fails.
Comment #19
miro_dietikerThx, fixed! :-)