feat: add task activity
This commit is contained in:
@ -10,6 +10,40 @@ query findTask($taskID: UUID!) {
|
||||
id
|
||||
name
|
||||
}
|
||||
comments {
|
||||
id
|
||||
pinned
|
||||
message
|
||||
createdAt
|
||||
updatedAt
|
||||
createdBy {
|
||||
id
|
||||
fullName
|
||||
profileIcon {
|
||||
initials
|
||||
bgColor
|
||||
url
|
||||
}
|
||||
}
|
||||
}
|
||||
activity {
|
||||
id
|
||||
type
|
||||
causedBy {
|
||||
id
|
||||
fullName
|
||||
profileIcon {
|
||||
initials
|
||||
bgColor
|
||||
url
|
||||
}
|
||||
}
|
||||
createdAt
|
||||
data {
|
||||
name
|
||||
value
|
||||
}
|
||||
}
|
||||
badges {
|
||||
checklist {
|
||||
total
|
||||
|
27
frontend/src/shared/graphql/task/createTaskComment.ts
Normal file
27
frontend/src/shared/graphql/task/createTaskComment.ts
Normal file
@ -0,0 +1,27 @@
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
const CREATE_TASK_MUTATION = gql`
|
||||
mutation createTaskComment($taskID: UUID!, $message: String!) {
|
||||
createTaskComment(input: { taskID: $taskID, message: $message }) {
|
||||
taskID
|
||||
comment {
|
||||
id
|
||||
message
|
||||
pinned
|
||||
createdAt
|
||||
updatedAt
|
||||
createdBy {
|
||||
id
|
||||
fullName
|
||||
profileIcon {
|
||||
initials
|
||||
bgColor
|
||||
url
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export default CREATE_TASK_MUTATION;
|
11
frontend/src/shared/graphql/task/deleteTaskComment.ts
Normal file
11
frontend/src/shared/graphql/task/deleteTaskComment.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
const CREATE_TASK_MUTATION = gql`
|
||||
mutation deleteTaskComment($commentID: UUID!) {
|
||||
deleteTaskComment(input: { commentID: $commentID }) {
|
||||
commentID
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export default CREATE_TASK_MUTATION;
|
15
frontend/src/shared/graphql/task/updateTaskComment.ts
Normal file
15
frontend/src/shared/graphql/task/updateTaskComment.ts
Normal file
@ -0,0 +1,15 @@
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
const CREATE_TASK_MUTATION = gql`
|
||||
mutation updateTaskComment($commentID: UUID!, $message: String!) {
|
||||
updateTaskComment(input: { commentID: $commentID, message: $message }) {
|
||||
comment {
|
||||
id
|
||||
updatedAt
|
||||
message
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export default CREATE_TASK_MUTATION;
|
Reference in New Issue
Block a user