asayler / COG-Web

Web Frontend for COG
GNU Affero General Public License v3.0
2 stars 3 forks source link

Add colored indicators for test runs #23

Closed hexacyanide closed 8 years ago

hexacyanide commented 8 years ago

This pull request adds the following:

Errors are red, warnings yellow, and successful runs are green.

asayler commented 8 years ago

Thanks. I'm traveling this week, but I'll shoot to get this merged in by early next week.

Also, if you have a moment, can you post a screenshot or two of what the new warning/error coloring looks like? We've discussed a number of options and I'm curious to see what the final arrangement results in on the page as a whole.

hexacyanide commented 8 years ago

Here's a screenshot of what's currently in the pull:

image

asayler commented 8 years ago

This looks pretty good, but does seem to have at least one minor bug. When the student submits a second (or later) submission without first reloading the page, the "Status" text color does not seem to update for the new status. The background color seems to be okay.

E.g.

first submission: Status: complete-exception <yellow> second submission: Status: complete <still yellow>

Thoughts?

hexacyanide commented 8 years ago

It looks like it was because clear_results() was never called before a new run, so the existing CSS classes would stay on the indicator, while another would be added (it would then have two conflicting styles). Should be resolved in ff3834c.

asayler commented 8 years ago

Yep, that fixed it. Thansk!