-
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
VV - Implement Classifier Annotation Model #6568
Conversation
I haven't looked too deeply in to the code changes, but I started to review by running your staging project at:
In all three cases, I can trigger a crashing bug by clicking one or two annotations, and then scrolling my touchpad over the volumetric viewer. In Storybook, the error shows up hundreds of times in the console, but when the apps are run the page crashes. The error message is: Could you see if you can replicate this crashing bug? Am I using the correct test staging project? |
Here's a video of the bug with lib-classifier run locally. bug.mov |
@goplayoutside3 - I apologize for not clarifying that I did not do any work inside of the If I could constrain the focus of the PR to 1) does the annotation show up in the Task Area and 2) if an annotation is created, does it get submitted, that would be appreciated. All work fixing interactions with the VV are fixed in the Styles PR. Here's the changelog for the Styles PR:
|
Ah okay understood about further scroll behavior changes in the other styling PR. Focusing on the annotations flow, I can click on the viewer and I see areas of the 3D subject become highlighted. The task area says "1 drawn". However, further clicks on the subject do not increment the task area beyond "1 drawn", even though new areas are highlighted in the subject viewer. This behavior is true when your test staging project is run locally with app-project or lib-classifier. Is the |
Yup - also didn't clarify the testing action flow for creating multiple annotations. Thank you :) So the interaction flow is:
|
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.
Gotcha. Using Shift + Click I can make multiple annotations of different colors and the task area label increments as expected. I assume the interaction instructions will be in tutorial and field guide.
I can also see the expected annotations inside a classification object when I hit Submit.
Just a note about classification data - The universal onSubjectReady()
function is called as expected when the subject is ready to be interacted with. This function defined on the SubjectViewerStore also pushes metadata about clientHeight
, clientWidth
, naturalHeight
, and naturalWidth
into the classification object, and those values will always be zero for volumetric subjects. If the researchers ever ask:
@@ -0,0 +1,48 @@ | |||
import asyncStates from '@zooniverse/async-states' | |||
import { lazy, Suspense } from 'react' | |||
import { withStores } from '@helpers' |
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.
A non-blocking suggestion to use the useStores()
hook instead. I know some of the oldest code like SubjectViewer.js still contains withStores()
, but component wrappers and the "with" syntax are designed for Class components. useStores()
hook is designed for functional components.
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 appreciate that recommendation - cleaned up the code a nice little bit!
- Create Volumetric Annotation
f434245
to
e0cfcf7
Compare
Package
Linked Issue and/or Talk Post
Describe your changes
VolumetricViewerWrapper
)isVolumetricViewer
into the Subject viewer detection function alongside all other viewer detection codeonAnnotation
callback in thelib-subject-viewers
VolumetricViewer component to communicate back to MobX the updated annotationsHow to Review
{n} drawn
General
yarn panic && yarn bootstrap
ordocker-compose up --build
and FEM works as expected