vanvalenlab / kiosk-frontend

DeepCell web application built using NodeJS, Express, React, and Webpack.
Other
1 stars 0 forks source link

Use different visualizers for each job type #192

Closed tddough98 closed 2 years ago

tddough98 commented 2 years ago

I reworked how the predict page connects with visualizers so that each prediction pipeline can open results with a different site. The key change are

As I worked on the Predict component, I separated all the components defined in Predict.js into their own file. Some of the changes beyond copying and pasting into new files are:

There's an addition to .eslintrc.yml to make eslint consistent with prettier autoformatting for switch statements.

tddough98 commented 2 years ago

Finally got both the mesmer and spots visualizers working! There's a temporary test instance online that we can use to check things out.

As the mesmer visualizer is a year old now, there are some hard coded checks to change the behavior for the mesmer visualizer. I'm hoping to make the polaris, mesmer, and caliban viewers all match the behavior of the polaris viewer, but for now, there are some simple ternary checks in the VisualizeButton component.

tddough98 commented 2 years ago

Yes, REACT_APP_LABEL_BACKEND and REACT_APP_LABEL_FRONTEND should no longer appear anywhere in the codebase. This was motivated by