+
{section.title}
- {section.type === 'milestone' ? 'Milestone' : section.type === 'deliverable' ? 'Teslimat' : 'Not'}
+ {section.type === 'milestone' ? 'Aşama' : section.type === 'deliverable' ? 'Teslimat' : 'Not'}
{section.content}
@@ -109,91 +180,49 @@ export function PortalProjectClient({ project, sections, tasks, revisions, clien
)}
+
- {/* Revisions */}
- {revisions.length > 0 && (
-
-
- Revizyon Talepleriniz
+
+
+
+
+
Revizyon Talepleriniz
+
Kalan Hak: {project.revision_quota !== null ? project.revision_quota : 'Sınırsız'}
+
+
+ {revisions.length === 0 ? (
+
+
+
Henüz bir revizyon talebi oluşturmadınız.
+
+
+ ) : (
{revisions.map((rev: any) => (
-
-
+
+
-
+
{format(new Date(rev.created_at), "d MMM yyyy, HH:mm", { locale: tr })}
+ } className="capitalize">
{rev.status === 'pending' ? 'Bekliyor' :
rev.status === 'in_progress' ? 'İşleniyor' :
rev.status === 'completed' ? 'Tamamlandı' : 'Reddedildi'}
-
{rev.description}
+
{rev.description}
))}
-
-
- )}
-
-
- {/* Right Sidebar */}
-
-
-
- İlerleme Durumu
-
-
- %{project.progress}
-
-
-
-
-
-
-
-
-
- Tamamlanan İşler
-
- {tasks.length === 0 ? (
- Listelenecek açık görev bulunmuyor.
- ) : (
-
- {tasks.map((task: any) => (
- -
- {task.status === 'completed' ? (
-
- ) : (
-
- )}
-
-
- {task.title}
-
- {task.date && (
-
- {format(new Date(task.date), 'd MMM yyyy', { locale: tr })}
-
- )}
-
-
- ))}
-
)}
-
-
+
+
);
}
diff --git a/components/layout/portal-shell.tsx b/components/layout/portal-shell.tsx
index 2da89d4..49990af 100644
--- a/components/layout/portal-shell.tsx
+++ b/components/layout/portal-shell.tsx
@@ -1,7 +1,7 @@
"use client";
import { signOut } from "@/app/login/actions";
-import { Button } from "poyraz-ui/atoms";
+import { Button, Card, CardContent } from "poyraz-ui/atoms";
import {
DropdownMenu,
DropdownMenuContent,
@@ -120,39 +120,7 @@ function AppSidebar({
variant="bordered"
className="flex h-dvh max-h-dvh flex-col overflow-hidden rounded-none border-0"
>
-
-
-
-
-
- Genel Durum
- Proje İlerlemesi
-
-
-
-
-
- %{progress} Tamamlandı
-
-
-
-
-
-
-
-
-
-
-
+
{portalSidebarData.map((group, groupIndex) => (
@@ -194,7 +162,27 @@ function AppSidebar({
-
+
+
+
+ Proje İlerlemesi
+
+
+ %{progress} Tamamlandı
+
+
+
+
+
+
+