feat: add client revision tracking and public task visibility toggle in project details

This commit is contained in:
poyrazavsever
2026-06-06 22:35:39 +03:00
parent c361fff5a7
commit 20b81d4b12
4 changed files with 130 additions and 11 deletions
+16
View File
@@ -320,3 +320,19 @@ export async function deleteProjectPlanningSectionRecord(formData: FormData) {
revalidatePath("/projects");
revalidatePath(`/projects/${projectId}`);
}
export async function updateRevisionStatus(id: string, projectId: string, status: string) {
const { supabase } = await getCurrentUserId();
const { error } = await supabase
.from("project_revisions")
.update({ status })
.eq("id", id)
.eq("project_id", projectId);
if (error) {
throw new Error(`Revizyon durumu güncellenemedi: ${error.message}`);
}
revalidatePath(`/projects/${projectId}`);
}