Repository navigation
Add Workflow Comments - #1417
Merged
Merged
Conversation
… and Comment object
# Conflicts: # core/new-gui/src/app/app.module.ts # core/new-gui/src/app/dashboard/component/feature-container/user-file-section/user-file-section.component.html # core/new-gui/src/app/workspace/component/navigation/navigation.component.html # core/new-gui/src/app/workspace/component/navigation/navigation.component.ts
# Conflicts: # core/new-gui/src/app/app.module.ts # core/new-gui/src/app/common/type/workflow.ts # core/new-gui/src/app/dashboard/component/feature-container/user-file-section/user-file-section.component.html # core/new-gui/src/app/workspace/component/navigation/navigation.component.ts # core/new-gui/src/app/workspace/component/property-editor/property-editor.component.ts # core/new-gui/src/app/workspace/component/workflow-editor/workflow-editor.component.ts # core/new-gui/src/app/workspace/service/joint-ui/joint-ui.service.ts # core/new-gui/src/app/workspace/service/workflow-graph/model/joint-graph-wrapper.ts # core/new-gui/src/app/workspace/service/workflow-graph/model/workflow-action.service.ts # core/new-gui/src/app/workspace/service/workflow-graph/model/workflow-graph.ts # core/new-gui/src/app/workspace/service/workflow-graph/util/workflow-util.service.ts # core/new-gui/src/app/workspace/types/workflow-common.interface.ts
sadeemsaleh
reviewed
Jan 28, 2022
sadeemsaleh
reviewed
Feb 1, 2022
sadeemsaleh
reviewed
Feb 1, 2022
sadeemsaleh
reviewed
Feb 1, 2022
Yicong-Huang
requested changes
Feb 2, 2022
Contributor
There was a problem hiding this comment.
Thanks for the PR. Left some comments.
Also some general comments:
- please fix the format, then check for merge error. you can "review" your changes on GitHub yourself first to see if any changes are necessary. only include necessary changes, be careful that you might alter logic by others.
- please remove console logs, and whenever appropriate, use NotificationService to alert the user.
- please consider making
CommentServiceto manage some logic in one place for the frontend. right now the logic of adding comments seems embedded in different components and services. - use
ng-zorrocomponents to replacengbootstrap. - Use
user-idto uniquely identify a user/creator of a comment.user-nameis not unique.
Please address the comments and request for another round of review.
Contributor
Author
|
Front-End Unit Tests updated, a GIF with new UI added to description |
Yicong-Huang
approved these changes
Mar 2, 2022
Yicong-Huang
left a comment
Contributor
There was a problem hiding this comment.
Approved with some fix.
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
Original PR apache#1293 -Updating Comments related stuff to the latest master configs and environment ## Introduction This PR includes the basic features of the Workflow Commenting feature of Texera--a feature implemented to support communication between contributors of a workflow and comprehension of people reading a workflow. Early Stage : - Now can add `commentBox` objects onto the canvas - a pop-up window will be displayed when double-clicking the comment icon - delete button on the top right corner which allows you to delete the commentBox - after opening the pop-up window, you can edit comments by typing in the input box. - the input box stores newly added comments and previous comments in a list.  ## Lifecycle of Comments A comment (the little dialog icon on canvas) consists of two components: a **CommentBox** and **a list of Comments**. **CommentBox** is generated when the dialog icon pops up, it is a container object with information of an id as identifier and a point representing its position on the canvas, and an empty list of **Comments**. **Comment** is generated and added to the list in **CommentBox** when someone types a comment and hits the send button. it contains information related to its creator, its content, and its creation time. Refer to `workflow-common.interface.ts` for more details. When the **Delete** button on the top-right corner of the icon is clicked, the commentBox gets deleted as well as all its corresponding comments. ## Storage of Comments Currently, CommentBoxes are components of a workflow (parallel with Links and Operators), it is persisted into the backend database as an attribute in the JSON object with every information embedded in -- position, ID, and all the comments inside. @Yicong-Huang, @zuozhiw and I have been discussing whether we should seperate comments from commentBoxes since the current method lacks the ability to handle detailed requests related to specific comments. ## 2022/02/26 Update - Updated to work with the share-editing feature. - Optimized front-end CommentBox UI for user-friendly purposes. Co-authored-by: Yicong Huang <[email protected]>
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.
Original PR #1293
-Updating Comments related stuff to the latest master configs and environment
Introduction
This PR includes the basic features of the Workflow Commenting feature of Texera--a feature implemented to support communication between contributors of a workflow and comprehension of people reading a workflow.
Early Stage :
commentBoxobjects onto the canvasLifecycle of Comments
A comment (the little dialog icon on canvas) consists of two components: a CommentBox and a list of Comments.
CommentBox is generated when the dialog icon pops up, it is a container object with information of an id as identifier and a point representing its position on the canvas, and an empty list of Comments.
Comment is generated and added to the list in CommentBox when someone types a comment and hits the send button. it contains information related to its creator, its content, and its creation time.
Refer to
workflow-common.interface.tsfor more details.When the Delete button on the top-right corner of the icon is clicked, the commentBox gets deleted as well as all its corresponding comments.
Storage of Comments
Currently, CommentBoxes are components of a workflow (parallel with Links and Operators), it is persisted into the backend database as an attribute in the JSON object with every information embedded in -- position, ID, and all the comments inside. @Yicong-Huang, @zuozhiw and I have been discussing whether we should seperate comments from commentBoxes since the current method lacks the ability to handle detailed requests related to specific comments.
2022/02/26 Update