Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/app/src/actions/organization/invite-employee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const inviteEmployee = authActionClient
});

// Revalidate the employees list page
revalidatePath(`/${organizationId}/employees/all`);
revalidatePath(`/${organizationId}/people/all`);
revalidateTag(`user_${ctx.user.id}`); // Keep user tag revalidation

return {
Expand Down
4 changes: 2 additions & 2 deletions apps/app/src/actions/organization/remove-employee.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export const removeEmployeeRoleOrMember = authActionClient
]);

// Revalidate
revalidatePath(`/${organizationId}/employees/all`);
revalidatePath(`/${organizationId}/people/all`);
revalidateTag(`user_${currentUserId}`);

return { success: true, data: { removed: true } };
Expand All @@ -124,7 +124,7 @@ export const removeEmployeeRoleOrMember = authActionClient
});

// Revalidate
revalidatePath(`/${organizationId}/employees/all`);
revalidatePath(`/${organizationId}/people/all`);
revalidateTag(`user_${currentUserId}`);

return {
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ const getChecklistItems = cache(
title: "Add Employees",
description:
"You should add all of your employees to Comp AI, either through an integration or by manually adding them and then ask them to sign the policies you published in the employee portal.",
href: `/${orgId}/employees`,
href: `/${orgId}/people`,
dbColumn: "employees",
completed: onboarding.employees,
docs: "https://trycomp.ai/docs/employees",
docs: "https://trycomp.ai/docs/people",
buttonLabel: "Add an Employee",
icon: <Users className="h-5 w-5" />,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export const updateEmployeeDepartment = authActionClient
});

// Revalidate related paths
revalidatePath(`/${organizationId}/employees/${employeeId}`);
revalidatePath(`/${organizationId}/employees`);
revalidatePath(`/${organizationId}/people/${employeeId}`);
revalidatePath(`/${organizationId}/people`);

return {
success: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ export const updateEmployeeDetails = authActionClient
});

// Revalidate related paths
revalidatePath(`/${organizationId}/employees/${employeeId}`);
revalidatePath(`/${organizationId}/employees`);
revalidatePath(`/${organizationId}/people/${employeeId}`);
revalidatePath(`/${organizationId}/people`);

return {
success: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ export const updateEmployeeStatus = authActionClient
});

// Revalidate related paths
revalidatePath(`/${organizationId}/employees/${employeeId}`);
revalidatePath(`/${organizationId}/employees`);
revalidatePath(`/${organizationId}/people/${employeeId}`);
revalidatePath(`/${organizationId}/people`);

return {
success: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ export const updateEmployee = authActionClient
}
});

revalidatePath(`/${organizationId}/employees/${employeeId}`);
revalidatePath(`/${organizationId}/employees`);
revalidatePath(`/${organizationId}/people/${employeeId}`);
revalidatePath(`/${organizationId}/people`);

return { success: true, data: updatedMemberResult };
} catch (error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ export function EmployeeDetails({
type="email"
placeholder="Employee email"
className="h-10"
disabled
/>
</FormControl>
<FormMessage />
Expand Down
Loading