Panoptes-Front-End
Panoptes-Front-End copied to clipboard
Project Builder: flatten Transcription Task exceptions
Code Cleanup
Affects: Project Builder -> Workflow Editor
The workflow editor has a bunch of exceptions for Transcription Tasks (e.g. adding a TT adds Steps), and we really need to flatten these if-elses if possible.
Reminder: the TT is available on both the classic PFE project builder and the new FEM-Lab, so be sure to mirror any code changes from /lab
to /lab-fem
Known issues on /app/pages/lab/workflow.cjsx
(Workflow Editor):
- [ ]
handleTaskDelete
branches intodeleteStepAndTask
- deleteStepAndTask should be folded into handleTaskDelete
- Intended new behaviour: If you delete ANY Task, you should always check if the Task exists in Steps.
Status
This issue is a work in progress. Assigned to Shaun. Somebody prod me if this sits idle for more than 1 month!