-
Notifications
You must be signed in to change notification settings - Fork 75
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
Pages Editor: rebuild "Next Page" logic. Add placeholder answers. #7055
Conversation
PR UpdateNew behaviour:
Following our discussion on Mon 11 March 2024, a new plan for future behaviour has been noted:
StatusI think there are a few design bits that need to be cleaned up, but this PR is now generally ready for review. |
My apologies for putting up updates on Sunday night, but the past week has had a few debug/fixing curveballs thrown my way that borked my planned Pages Editor schedule. Please ignore any Github emails from this PR until it's your actual office hours; I'm only playing catchup this weekend because of something I promised myself. |
ac9c2d9
to
23dd1fa
Compare
ee66733
to
ce45daf
Compare
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.
LGTM - everything is straightforward and works as expected!
ce45daf
to
76ea935
Compare
Thanks Travis! 👍 |
PR Overview
Part of: Pages Editor MVP project and FEM Lab super-project
Follows #7052
Staging branch URL: https://pr-7055.pfe-preview.zooniverse.org/lab/1982/workflows/editor/3711?env=staging
This PR rebuilds the "Next Page" logic. Plus, it adds placeholder answers (fake text input & fake buttons for tasks). All this has been done mostly for UI examining purposes.
Next Page Logic:
step.next
, but insteadstep.task[x].answer[y].next
! This meant that if we have more than 1 Single Question Task on the Page/Step, and especially if that SQT wasn't the final Task on the Page/Step, the visual design would be broken.Placeholder Answers:
Misc:
Screenshot: an example workflow created by the new Quick Setup. Has 2 pages with 3 tasks. The first page has two SQTasks, but only the first has branching controls. The 2nd and 3rd tasks have fake text input/buttons to visually demonstrate how the task would looks like in the classifier. The 2nd page has simple "next page" control, currently pointing to "Submit"
Testing
Status
Mon 11 Mar: WIPMon 18 Mar: Ready for Review
This PR is currently targeting pages-editor-pt16 for review purposes. Do not merge until 7052 is ready and this branch's merge is re-targeted to
master
.