Panoptes-Front-End icon indicating copy to clipboard operation
Panoptes-Front-End copied to clipboard

Project Builder: flatten Transcription Task exceptions

Open shaunanoordin opened this issue 3 years ago • 0 comments

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 into deleteStepAndTask
    • 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!

shaunanoordin avatar Nov 29 '21 02:11 shaunanoordin