nf-tower
nf-tower copied to clipboard
Workflow comment tab
The workflow page contains a note tab that should allow the use to annotate workflow in blog comment style approach.
Therefore when clicked the tab should show a list of comments (date, text) and a text field add a new comment.
It requires the creation of a new entity:
class WorkflowComment {
String text
OffsetDateTime dateCreated
static belongsTo = [workflow: Workflow]
}
Related entity and services are:
Ideally this feature should be added as a new tab in the top panel
It can be inspired to the GitHub comments feature. However, for now, it should be kept easy. Only plain text, no images or formatting. It should be reported. It would be nice to report the user name, icon and datetime of the comment somehow similarly to GitHub comments
@clvadym I've merged the PR in the branch dev-workflow-notes
. The small problem to fix is that when the comments are visualised and the user selects a different workflow (clicks on the left sidebar) the comments are not updated accordingly.
Also, endpoint errors should be reported as shown below:
https://github.com/seqeralabs/nf-tower/blob/63aca5fda0b2de0035b7e82482bec9e584f72379/tower-web/src/app/modules/main/component/access-token/access-token.component.ts#L100-L102