zooniverse / Panoptes-Front-End

Front end for zooniverse/Panoptes
https://www.zooniverse.org
Apache License 2.0
64 stars 75 forks source link

Pages Editor: UI tweaks, improved Workflow Settings #7093

Closed shaunanoordin closed 1 month ago

shaunanoordin commented 2 months ago

PR Overview

Part of: Pages Editor MVP project and FEM Lab super-project Follows #7088 Staging branch URL: https://pr-7093.pfe-preview.zooniverse.org/lab/1982/workflows/editor/3711?env=staging

This PR combines a number of UI tweaks and updates to the Workflow Settings. The UI changes makes the visual presentation closer to Sean's intended design, while the Workflow Settings changes make that tab ⭐ on par with the Project Builder FEM Lab's functionality. (comparative link)

Part 1: UI changes

image ➡️ image

image ➡️ image

image

Part 2: Workflow Settings Tab

Misc Changes

Update 1 (link)

Testing

No specific tests recommended. Just check that general functionality is maintained, and the code makes sense.

Status

Ready for review. 👌

Requires 7088 to be merged first before this can be merged.

shaunanoordin commented 1 month ago

PR Update

coveralls commented 1 month ago

Coverage Status

coverage: 56.994%. remained the same when pulling 669589a1b29e60f4c1869498a2b8870d31229419 on pages-editor-pt22 into 614ec1b6c3fd2f124a87983cbadca4c2c3bae3f9 on master.

shaunanoordin commented 1 month ago

Thanks Delilah! 👍

Updates & responses:

Item 1: should the ?tab= in the URL change when the tab changes? For the moment, the ?tab=settings is just a hidden shortcut that for developers, but I see this may actually be a useful thing for project owners as well. I'll look into this in a future update

Item 2: when "Separate Frames" options are enabled, the "single column" layout should be the default. Done 👍 The "single column" is now shown to be the default, though the actual multi_image_layout data value isn't updated.

In practice (and following PFE logic) this means that, if multi_image_mode = 'separate', then multi_image_layout = undefined is treated the same as multi_image_layout = 'col'. Shaun TODO: confirm that this logic is consistent across PFELab/FEMLab project builder, Pages Editor, PFE Classifier, and FEM Classifier.

Item 3: the small help text in the "Separate Frames I've cranked up the fontsize, but to 14px instead of 16px for now. 🤔 I think that small help text should be somehow separate from the main text; I'll ask Sean for a designer's look-through after 7105 gets merged.

image

Item 4: how do workflow versions work in regards to workflow.steps? 🤷 I guess we'll find out! https://github.com/zooniverse/panoptes/issues/4340