-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
feat: LEAP-1440: Allow to attach a region to a new comment #6400
Merged
Conversation
This file contains 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
Introduce `CommentMode` and `RelationMode` to handle linking annotations with regions. Also, refactor parts of the code to unify the method of linking actions under `LinkingModes` and replace deprecated `relationMode` checks.
Moved the `comment` and `firstRegion` variables to volatile state within the MobX-state-tree models for `CommentMode` and `RelationMode`. This change provides access to payload information of modes in case we need it.
Co-authored-by: hlomzik <[email protected]>
Co-authored-by: hlomzik <[email protected]>
Co-authored-by: hlomzik <[email protected]>
Updated all instances of `Constants.RELATION_MODE_CURSOR` to `Constants.LINKING_MODE_CURSOR` across various files. This ensures consistency in naming and improves code readability for linking mode features.
Refactored comments feature to support per-field comments through feature flags, added linking functionality between comments and regions, and updated UI with new icons and styles.
Reorganize the comment form components by separating old and new versions. Adjust CSS class names to avoid conflicts and import paths for clarity.
web/libs/editor/src/components/Comments/Comment/CommentForm.scss
Outdated
Show resolved
Hide resolved
Gondragos
changed the title
feat: LEAP-1469: Allow to attach a region to a new comment
feat: LEAP-1469: Allow to attach a region to a new comment [WIP]
Sep 18, 2024
16 tasks
hlomzik
reviewed
Sep 18, 2024
web/libs/editor/src/components/SidePanels/OutlinerPanel/OutlinerTree.tsx
Outdated
Show resolved
Hide resolved
/git merge develop
|
✅ Deploy Preview for heartex-docs canceled.
|
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
Replace `displayRegionLabel` with `RegionLabel` component in OutlinerTree and LinkState components.
Gondragos
changed the title
feat: LEAP-1469: Allow to attach a region to a new comment [WIP]
feat: LEAP-1469: Allow to attach a region to a new comment
Sep 19, 2024
bmartel
reviewed
Sep 19, 2024
web/libs/editor/src/components/Comments/Comment/CommentForm.scss
Outdated
Show resolved
Hide resolved
bmartel
reviewed
Sep 19, 2024
web/libs/editor/src/components/Comments/Comment/CommentForm.scss
Outdated
Show resolved
Hide resolved
bmartel
reviewed
Sep 19, 2024
bmartel
reviewed
Sep 19, 2024
web/libs/editor/src/components/SidePanels/OutlinerPanel/OutlinerTree.tsx
Show resolved
Hide resolved
bmartel
reviewed
Sep 19, 2024
bmartel
reviewed
Sep 19, 2024
bmartel
reviewed
Sep 19, 2024
Co-authored-by: bmartel <[email protected]>
Co-authored-by: bmartel <[email protected]>
Co-authored-by: bmartel <[email protected]>
Gondragos
changed the title
feat: LEAP-1469: Allow to attach a region to a new comment
feat: LEAP-1440: Allow to attach a region to a new comment
Sep 20, 2024
bmartel
approved these changes
Sep 20, 2024
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.
Really cool, overall a nice implementation and very interesting feature overall 👏
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.
This PR provides an ability to link a new comment to a region.
Other changes:
PR fulfills these requirements
[fix|feat|ci|chore|doc]: TICKET-ID: Short description of change made
ex.fix: DEV-XXXX: Removed inconsistent code usage causing intermittent errors
Change has impacts in these area(s)
Describe the reason for change
It's a part of implementing linking comment to region functionality.
What feature flags were used to cover this change?
fflag_feat_all_leap_1430_per_field_comments_100924_short
Does this PR introduce a breaking change?
(check only one)
What level of testing was included in the change?
(check all that apply)
Which logical domain(s) does this change affect?
NewComment