Closed shaunanoordin closed 3 weeks ago
This PR is now ready for review!
Here are some additional notes, notably for the "branching task "next page" arrows should appear outside grey box" item
experimentalRestyleContainer()
function triggers on render.Additional refinements:
Ready for review! Once this is merged, the Pages Editor will be ready for internal review.
Oh goodness, those Safari visuals! 😭
Thanks for the review, Delilah!
Update:
deleteTask()
's safety check has been reinstated to check for workflow, with a note to remind devs not to check for a task before trying to delete said task.Alright, let's go!
PR Overview
Part of: Pages Editor MVP project and FEM Lab super-project Follows #7102 Staging branch URL: https://pr-7105.pfe-preview.zooniverse.org/lab/1982/workflows/editor/3711?env=staging
This PR adds a number of misc updates in preparation for the internal team review, at the end of May. Here's the adapted ToDo List from Slack, 13 May:
Functional:
Design:
Limited Branching Rule
The Pages Editor implements some incredibly ad-hoc rules on whether a Page can have more than one Question Task.
This is due to some unfortunate "logic overloading", i.e. a Single Answer Question Task (aka type=single) is ALWAYS a Branching Task. This can be a problem if e.g. you want to have 4x Single-Type Tasks on a page, but don't want the page to branch. 🤷
(Also, a smaller reason is that having a Single Answer Question Task can make the design look wonky when it's not the last item on the page, since the yellow "next page" indicators are supposed to sit outside the grey box representing the page. But at least this is something we can figure out later.)
ANYWAY, here's the intended change to the Limited Branching Rule:
OLD:
NEW:
NOTE: it's easy to completely disable the Limited Branching Rule by setting this in the TasksPage:
Status
WIPUpdate (2024.05.31 23:30 BST): Ready for review!