Skip to content

Implementing the Comments Feature - #1293

Closed
Jiyang-Wu wants to merge 11 commits into
masterfrom
jiyang-comments
Closed

Jiyang-Wu wants to merge 11 commits into
masterfrom
jiyang-comments

Conversation

@Jiyang-Wu

@Jiyang-Wu Jiyang-Wu commented Aug 17, 2021 •

Copy link
Copy Markdown
Contributor

Early Stage Done:

  • Now can add commentBox objects onto the canvas
  • a pop-up window will be displayed when double-clicking the comment icon
  • delete button on 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
    Comments-Front-End

# 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
@Xiao-zhen-Liu

Copy link
Copy Markdown
Contributor

Group Discussion 1/11: ask @Jiyang-Wu to finish this PR soon

@Jiyang-Wu Jiyang-Wu closed this Jan 26, 2022
@Jiyang-Wu Jiyang-Wu mentioned this pull request Jan 26, 2022
@Jiyang-Wu

Copy link
Copy Markdown
Contributor Author

The development for comments feature goes on PR#1417 now
Link:#1417

Yicong-Huang added a commit that referenced this pull request Mar 2, 2022
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 :
- 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.
![Comments-Front-End](https://user-images.githubusercontent.com/72828385/156052516-c626c8c1-efb1-49c6-a2a1-9a9da3437f16.gif)

## 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]>
@aglinxinyuan
aglinxinyuan deleted the jiyang-comments branch May 25, 2023 21:02
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.
![Comments-Front-End](https://user-images.githubusercontent.com/72828385/156052516-c626c8c1-efb1-49c6-a2a1-9a9da3437f16.gif)

## 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]>
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.

2 participants