uiowaSEP2024 / 002_ImagePro

Image processing backend
1 stars 0 forks source link

89 fix frontend so we can see steps progress #123

Closed powersaudrey25 closed 6 months ago

powersaudrey25 commented 6 months ago

Overview

This PR contains code that reformats how steps are displayed for a job. It also includes the use of two new enum roles "Pending" and "In progress". Before steps were displayed in a vertical orientation and each step only showed up when it was completed. See screenshot.

Screenshot 2024-02-28 at 2 51 59 PM

Now, ALL steps are displayed horizontally. I created a mock pipeline that initializes all steps to pending. Then for each step after 5 seconds the status moves to in progress and then after another 5 seconds the status moves to complete. New icons were introduced for pending and in progress statuses. See screenshots.

Screenshot 2024-02-28 at 2 46 58 PM Screenshot 2024-02-28 at 2 45 49 PM

Implementation

A "mock pipeline" was created in our logger script to mock the flow of a job. New icons were added.

Testing

To test start up your app and run the orthanc logger script. Verify that you can see the new icons and the layout is horizontal. No new tests (frontend and Cypress) needed to be written as functionality did not change.

Problems Faced

Notes

New icons are from the react icon library. If you have other suggestions for icons or colors let me know!

sonarcloud[bot] commented 6 months ago

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud