feat: add notes to relations#9736
Open
imjvdn wants to merge 1 commit into
Open
Conversation
👷 Deploy request for heartex-docs pending review.Visit the deploys page to approve it
|
👷 Deploy request for label-studio-docs-new-theme pending review.Visit the deploys page to approve it
|
✅ Deploy Preview for label-studio-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for label-studio-playground ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Author
|
Hi team—this PR is now linked in Gitpay task #757 (status: pending assignment). If you’re able to review this and sign off, Gitpay payout can proceed immediately once review/merge completes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds free-text notes to annotation relations so annotators can capture context on links between regions, not just direction and optional relation labels.
This updates the relation store, relation details UI, result serialization/deserialization, docs, and focused regression coverage.
Details
notesfield to relation state and includes it in serialized results only when populated.notesfrom existing relation results during annotation load.<Relations>labels, so notes work for plain relations too.notesrelation result field.Prior Art
I saw the older stale draft PR #5995 and closed attempts around this issue. This PR is a fresh, smaller implementation against current
develop, with docs and focused tests, including the no-relation-labels case.Validation
git diff --checknode --check web/libs/editor/src/stores/RelationStore.jsnode --check web/libs/editor/src/stores/Annotation/Annotation.jsI could not run the full
yarn lsf:unit/yarn lsf:integrationsuites locally because this sparse checkout does not havenode_modulesinstalled.Addresses #5495.
AI assistance disclosure: this contribution was prepared with AI assistance and manually reviewed before submission.