diff --git a/javascript/apps/taiga/src/app/shared/navigation/notification/notification.component.html b/javascript/apps/taiga/src/app/shared/navigation/notification/notification.component.html index 106884db3..75e1d1bb6 100644 --- a/javascript/apps/taiga/src/app/shared/navigation/notification/notification.component.html +++ b/javascript/apps/taiga/src/app/shared/navigation/notification/notification.component.html @@ -170,6 +170,35 @@ + +
+ + +
+

+ +
+
+
{{username}} was unassigned to the story
{{story}}", "stories.status_change": "{{username}} changed the status of the story
{{story}} to {{status}}", "story_comment.create": "{{username}} commented on the story
{{story}}", - "stories.delete": "{{username}} deleted the story {{story}}" + "stories.delete": "{{username}} deleted the story {{story}}", + "stories.workflow_change": "{{username}} moved the story
{{story}} to {{status}} status on the {{workflow}} workflow." } } }, diff --git a/javascript/libs/data/src/lib/notification.model.ts b/javascript/libs/data/src/lib/notification.model.ts index 59daaeb5a..6c1e12d59 100644 --- a/javascript/libs/data/src/lib/notification.model.ts +++ b/javascript/libs/data/src/lib/notification.model.ts @@ -67,9 +67,21 @@ export interface NotificationStoryDelete extends Notification { }; } +export interface NotificationWorkflowChange extends Notification { + type: 'stories.workflow_change'; + content: { + story: Pick; + project: Pick; + changedBy: Pick; + status: string; + workflow: string; + }; +} + export type NotificationType = | NotificationStoryAssign | NotificationStoryUnassign | NotificationStoryStatusChange | NotificationStoryCommentCreate - | NotificationStoryDelete; + | NotificationStoryDelete + | NotificationWorkflowChange;