[tasks] add empty state and new task button (#1072)
* [tasks] add empty state * add refetch + use spacing for padding * create task auto assigned with dueAt as today * add unscheduled tasks section * remove unnecessary assigneeId fetching * remove unnecessary refetchQueries * add refetch for delete task * rename createCommentMutation to deleteActivityMutation in activityActionBar
This commit is contained in:
@ -2324,13 +2324,7 @@ export type CreateCommentMutationVariables = Exact<{
|
||||
export type CreateCommentMutation = { __typename?: 'Mutation', createOneComment: { __typename?: 'Comment', id: string, createdAt: string, body: string, activityId?: string | null, author: { __typename?: 'User', id: string, displayName: string, firstName?: string | null, lastName?: string | null, avatarUrl?: string | null } } };
|
||||
|
||||
export type CreateActivityMutationVariables = Exact<{
|
||||
activityId: Scalars['String'];
|
||||
body?: InputMaybe<Scalars['String']>;
|
||||
title?: InputMaybe<Scalars['String']>;
|
||||
type: ActivityType;
|
||||
authorId: Scalars['String'];
|
||||
createdAt: Scalars['DateTime'];
|
||||
activityTargetArray: Array<ActivityTargetCreateManyActivityInput> | ActivityTargetCreateManyActivityInput;
|
||||
data: ActivityCreateInput;
|
||||
}>;
|
||||
|
||||
|
||||
@ -2841,10 +2835,8 @@ export type CreateCommentMutationHookResult = ReturnType<typeof useCreateComment
|
||||
export type CreateCommentMutationResult = Apollo.MutationResult<CreateCommentMutation>;
|
||||
export type CreateCommentMutationOptions = Apollo.BaseMutationOptions<CreateCommentMutation, CreateCommentMutationVariables>;
|
||||
export const CreateActivityDocument = gql`
|
||||
mutation CreateActivity($activityId: String!, $body: String, $title: String, $type: ActivityType!, $authorId: String!, $createdAt: DateTime!, $activityTargetArray: [ActivityTargetCreateManyActivityInput!]!) {
|
||||
createOneActivity(
|
||||
data: {id: $activityId, createdAt: $createdAt, updatedAt: $createdAt, author: {connect: {id: $authorId}}, body: $body, title: $title, type: $type, activityTargets: {createMany: {data: $activityTargetArray, skipDuplicates: true}}}
|
||||
) {
|
||||
mutation CreateActivity($data: ActivityCreateInput!) {
|
||||
createOneActivity(data: $data) {
|
||||
id
|
||||
createdAt
|
||||
updatedAt
|
||||
@ -2885,13 +2877,7 @@ export type CreateActivityMutationFn = Apollo.MutationFunction<CreateActivityMut
|
||||
* @example
|
||||
* const [createActivityMutation, { data, loading, error }] = useCreateActivityMutation({
|
||||
* variables: {
|
||||
* activityId: // value for 'activityId'
|
||||
* body: // value for 'body'
|
||||
* title: // value for 'title'
|
||||
* type: // value for 'type'
|
||||
* authorId: // value for 'authorId'
|
||||
* createdAt: // value for 'createdAt'
|
||||
* activityTargetArray: // value for 'activityTargetArray'
|
||||
* data: // value for 'data'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user