Skip to content
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

Add logic for creating new annotations #406

Draft
wants to merge 8 commits into
base: feature/metadata-editing/develop
Choose a base branch
from

Conversation

aswallace
Copy link
Contributor

@aswallace aswallace commented Feb 5, 2025

This adds the redux & endpoint logic for creating new annotations, with some support UI modifications

@aswallace aswallace changed the title Feature/metadata editing/new annotation pathway Add logic for creating new annotations Feb 5, 2025
[newFieldName, statuses]
);
// Check for updates to the annotation submission status
React.useEffect(() => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We aren't able to directly chain off of the createAnnotation dispatch (we don't use thunk in this codebase) so instead we need to wait for the status to update in state and then respond accordingly when we see SUCCEEDED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant