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: design updates for internal test #7129

Closed shaunanoordin closed 1 week ago

shaunanoordin commented 1 week ago

PR Overview

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

This PR adds a number of small design updates, in preparation for additional internal tests. Here's the ToDo List from Slack, 10 Jun:

Status

Ready for review!

coveralls commented 1 week ago

Coverage Status

coverage: 56.991%. remained the same when pulling 66d24fb2c0e84117ae139db146fab8882331a2a0 on pages-editor-pt26 into 78699da2a1e70781887dfb44c892ee1bb7ecc8fa on master.

coveralls commented 1 week ago

Coverage Status

coverage: 56.999% (+0.008%) from 56.991% when pulling 7376979a85c5ced352e410e01ca91c21a18e1cd1 on pages-editor-pt26 into 78699da2a1e70781887dfb44c892ee1bb7ecc8fa on master.

shaunanoordin commented 1 week ago

Testing Steps

Test with macOS + Chrome or Firefox. If you use Safari, please be warned that the dropdowns look gradient-ly, which is out of design.

Testing Feature update: Workflow URLs on the Workflows listing

Testing Feature update: collapsible Help fields

Testing Design updates:

coveralls commented 1 week ago

Coverage Status

coverage: 56.999% (+0.008%) from 56.991% when pulling d8a1927b060023f4965b69134f7938fce36fc421 on pages-editor-pt26 into 78699da2a1e70781887dfb44c892ee1bb7ecc8fa on master.

shaunanoordin commented 1 week ago

PR Update

eatyourgreens commented 1 week ago

@shaunanoordin you're welcome. You'll still need to add the expanded state etc. to your toggle button, so that it's announced as open/closed for blind users. I'll add a comment to the PR.

seanmiller26 commented 1 week ago

Observe that the following Tasks' help fields start off automatically expanded: the 1st Task on the Page (even if the Help text is empty), and the 3rd Task on the Page (because the Help text isn't empty) All other Tasks' help fields start off automatically collapsed.

Interesting UX choices here. Let's see how it tests first, but I hope we can revisit the '1 Help text entry per page' discussion at a later stage to really sort this out.

1 minor styling nitpick: Can we change the Help Text header to be less bold than the Main Text/Text Task header style?

Figma:

Screenshot 2024-06-24 at 12 01 12 PM
coveralls commented 1 week ago

Coverage Status

coverage: 56.999% (+0.03%) from 56.969% when pulling 7bcfb063da44ce216d4635330309ae9b60680bd6 on pages-editor-pt26 into 67033277e544c626292be15c3d0a696c2f9f6443 on master.

eatyourgreens commented 1 week ago

Very minor styling point. Since you're hiding the input with hidden, maybe use a CSS animation to transition between the visible and hidden states.

coveralls commented 1 week ago

Coverage Status

coverage: 56.999% (+0.03%) from 56.969% when pulling c19dbac0024bf4f49ff819218d4b96e6d2639ca6 on pages-editor-pt26 into 67033277e544c626292be15c3d0a696c2f9f6443 on master.

coveralls commented 1 week ago

Coverage Status

coverage: 56.999% (+0.03%) from 56.969% when pulling c19dbac0024bf4f49ff819218d4b96e6d2639ca6 on pages-editor-pt26 into 67033277e544c626292be15c3d0a696c2f9f6443 on master.

coveralls commented 1 week ago

Coverage Status

coverage: 56.999% (+0.03%) from 56.969% when pulling c19dbac0024bf4f49ff819218d4b96e6d2639ca6 on pages-editor-pt26 into 67033277e544c626292be15c3d0a696c2f9f6443 on master.

coveralls commented 1 week ago

Coverage Status

coverage: 56.999% (+0.03%) from 56.969% when pulling 55c4a95f2378385d57fd4e617470c80083e81c93 on pages-editor-pt26 into 67033277e544c626292be15c3d0a696c2f9f6443 on master.

shaunanoordin commented 1 week ago

PR Update

image

👍

coveralls commented 1 week ago

Coverage Status

coverage: 56.999% (+0.008%) from 56.991% when pulling 740ed7ca8df7a2b301e1da359c9136bb09744541 on pages-editor-pt26 into 25a04dc7381509eea0dd1a9d44aeb2325411a606 on master.

coveralls commented 1 week ago

Coverage Status

coverage: 56.948% (+0.008%) from 56.94% when pulling 1f9d10dfe0cc493ff6397b84e8f477bcd53263b6 on pages-editor-pt26 into d7f9954ff59851d1af9b91766807fd94b30b48e9 on master.

coveralls commented 1 week ago

Coverage Status

coverage: 56.948% (+0.008%) from 56.94% when pulling 46db5b5a726f8e8b099bc70074de7e914669a981 on pages-editor-pt26 into d7f9954ff59851d1af9b91766807fd94b30b48e9 on master.

shaunanoordin commented 1 week ago

Thanks Travis!

eatyourgreens commented 1 week ago

I've adjusted the aria-label for the Tasks accordingly.

The aria-label shouldn’t change when the button is pressed. That can make the UX confusing in a screen reader.