+
)
diff --git a/src/types/dto/tasks.dto.ts b/src/types/dto/tasks.dto.ts
index 2b4e6bce9..2e99eb6ad 100644
--- a/src/types/dto/tasks.dto.ts
+++ b/src/types/dto/tasks.dto.ts
@@ -98,9 +98,9 @@ export const UpdateTaskRequestSchema = z
clientId: z.string().uuid().nullish(),
companyId: z.string().uuid().nullish(),
associations: AssociationsSchema, //right now, we only need the feature to have max of 1 viewer per task
+ isShared: z.boolean().optional(),
})
.superRefine(validateUserIds)
- .superRefine(validateAssociationAndTaskShare)
export type UpdateTaskRequest = z.infer
@@ -129,6 +129,7 @@ export const TaskResponseSchema = z.object({
clientId: z.string().uuid().nullish(),
companyId: z.string().uuid().nullish(),
associations: AssociationsSchema,
+ isShared: z.boolean().optional(),
})
export type TaskResponse = z.infer
diff --git a/src/utils/assignee.ts b/src/utils/assignee.ts
index d291cd734..6e5edeb0e 100644
--- a/src/utils/assignee.ts
+++ b/src/utils/assignee.ts
@@ -17,7 +17,7 @@ export const UserIdsSchema = z.object({
export type UserIdsType = z.infer
-export type UserIdsWithViewersType = UserIdsType & { viewers?: Associations }
+export type UserIdsWithAssociationSharedType = UserIdsType & { associations?: Associations; isShared?: boolean }
export const isAssigneeTextMatching = (newInputValue: string, assigneeValue: IAssigneeCombined): boolean => {
const truncate = (newInputValue: string) => truncateText(newInputValue, TruncateMaxNumber.SELECTOR)
diff --git a/src/utils/twMerge.ts b/src/utils/twMerge.ts
new file mode 100644
index 000000000..d32b0fe65
--- /dev/null
+++ b/src/utils/twMerge.ts
@@ -0,0 +1,6 @@
+import { type ClassValue, clsx } from 'clsx'
+import { twMerge } from 'tailwind-merge'
+
+export function cn(...inputs: ClassValue[]) {
+ return twMerge(clsx(inputs))
+}
diff --git a/yarn.lock b/yarn.lock
index dd0819973..dfb833c35 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -9520,6 +9520,11 @@ tailwind-merge@^2.3.0:
resolved "https://registry.yarnpkg.com/tailwind-merge/-/tailwind-merge-2.6.0.tgz#ac5fb7e227910c038d458f396b7400d93a3142d5"
integrity sha512-P+Vu1qXfzediirmHOC3xKGAYeZtPcV9g76X+xg2FD4tYgR71ewMA35Y3sCz3zhiN/dwefRpJX0yBcgwi1fXNQA==
+tailwind-merge@^3.4.0:
+ version "3.4.0"
+ resolved "https://registry.yarnpkg.com/tailwind-merge/-/tailwind-merge-3.4.0.tgz#5a264e131a096879965f1175d11f8c36e6b64eca"
+ integrity sha512-uSaO4gnW+b3Y2aWoWfFpX62vn2sR3skfhbjsEnaBI81WD1wBLlHZe5sWf0AqjksNdYTbGBEd0UasQMT3SNV15g==
+
tailwindcss@^3.3.0:
version "3.4.17"
resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.4.17.tgz#ae8406c0f96696a631c790768ff319d46d5e5a63"