-
Notifications
You must be signed in to change notification settings - Fork 30
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
Setup for multi frame subjects #1345
Conversation
- Subject#getViewer() assigns the multiFrame subject viewer to subjects with between 2 and 10 frames. - The SubjectFactory defaults to creating a subject with 11 frames to test for a default viewer of null when none of the viewer conditions are met.
…image_mode'] is 'separate'
…_switching_flipbook_and_separate'] is true
…configuration.subject_viewer is 'multiFrame'
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!
expect(subjectStore.viewer).to.be.null() | ||
}) | ||
|
||
it('should return the multiFrame viewer if the workflow configuration for subject_viewer is defined as multiFrame', function () { |
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.
This is to test that regardless of the subject, including type or number of locations, if the workflow config is set to use multi frame viewer then the subject uses the multi frame viewer? Nice!
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.
It is, however, I am realizing there is an assumption that { subject_viewer: 'multiFrame' }
can only be enabled for subjects with between 2 and 10 frames.
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.
I will need to revisit this logic when creating a workflow config option in the lab editor. Thank you for the question!
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.
@beckyrother is working on some preliminary ideas for the workflow lab editor page with these new configurations.
Please request review from
@zooniverse/frontend
team. If PR is related to design, please request review from@beckyrother
in addition.Package: lib-classifier
Closes #1344
Describe your changes:
This PR sets up the folders, files, and logic for rendering the multiFrame subject viewer. For this PR, the MultiFrameViewer component itself is a simple placeholder.
The multiFrame viewer will render if:
{ subject_viewer: 'multiFrame' }
or the subject has between 2 and 10 framesReview Checklist
General
Components
Apps
yarn panic && yarn bootstrap
ordocker-compose up --build
and app works as expected?Publishing
Post-merging