-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor classifier layout per survey task #6297
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of things before approval:
- Functions that start with
use
are reserved for custom React hooks. Because the function to detect if a workflow has a survey task is a store view, it should instead be namedhasSurveyTask
. I think that'll be just a quick find + replace everywhere that saysusesSurveyTask
in this PR. - In the survey task area, the choice carousel of images is left-aligned when it should be centered in the task area. This style bug is already present on production and can be seen if viewing the classifier layout on a mobile screen such an ipad. Here's a few screenshots:
@goplayoutside3 Your 2nd concern might be better addressed in a separate PR related to #6239. Thoughts, @mcbouslog? |
@goplayoutside3 - the Workflow store also includes |
@seanmiller26 - yes the Choice image Carousel will be further refactored in #6239 (expanded to full width of choice box), but I will add a interim edit to center align the current image Carousel to fix the current issue that's more noticeable with the larger task area width. |
@seanmiller26 - I'll deploy this to https://fe-project-branch.preview.zooniverse.org after homepage and stats pages deployment for your review. I'll message you on Slack once it's available. I think the key question will be widths of 1040px and below, and how the subject and task areas alignment change in workflows with and without a survey task. |
@mcbouslog I have some time to review today. Is this ready to preview? |
Yes! |
I'm not sure exactly the scope of this specific PR, but I have some styling to address.
Otherwise the basic adjustment to 540px looks good. And I like where it switches to a vertical layout. |
Package
Linked Issue and/or Talk Post
Describe your changes
usesSurveyTask
view to Workflow storeusesSurveyTask
from Layout to CurrentLayoutusesSurveyTask
usesSurveyTask
How to Review
Helpful explanations that will make your reviewer happy:
Checklist
PR Creator - Please cater the checklist to fit the review needed for your code changes.
PR Reviewer - Use the checklist during your review. Each point should be checkmarked or discussed before PR approval.
General
yarn panic && yarn bootstrap
ordocker-compose up --build
and FEM works as expectedGeneral UX
Example Staging Project: i-fancy-cats
Refactoring