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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

miro_dietiker created an issue. See original summary.

johnchque’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
1.8 KB
33.22 KB

Icons changed.
About the feedback:

A submitted job should display the hourglass as long as no item is pending for review.

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:

miro_dietiker’s picture

Discussed 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".

miro_dietiker’s picture

Status: Needs review » Needs work
miro_dietiker’s picture

Pushing 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.

miro_dietiker’s picture

Title: Replace icons of jobs » Make job icons also represent job item progress
johnchque’s picture

I am still working on this but it needs a lot of refactoring on tests. I will upload a patch soon.

miro_dietiker’s picture

Yeah, 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.

johnchque’s picture

Added 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.

johnchque’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, 9: make_job_icons_also-2663756-9.patch, failed testing.

miro_dietiker’s picture

Looks pretty nice :-) ... can i haz passing tests? ;-)

johnchque’s picture

My bad, should work now. Also, made some refactoring.

miro_dietiker’s picture

Status: Needs review » Fixed

Yay, committed, nice work!

Status: Fixed » Needs work

The last submitted patch, 13: make_job_icons_also-2663756-13.patch, failed testing.

johnchque’s picture

Status: Needs work » Needs review
FileSize
3.25 KB

This should fix the tests fails.

miro_dietiker’s picture

Status: Needs review » Fixed

Thx, fixed! :-)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.