1+ import { Helmet } from "react-helmet-async" ;
2+ import { ActivityFeed } from "@/components/ui/activity-feed" ;
3+ import { Badge } from "@/components/ui/badge" ;
4+ import { Card , CardContent , CardHeader , CardTitle } from "@/components/ui/card" ;
5+ import { FileText , Settings , BarChart3 , Users , Shield , Zap } from "lucide-react" ;
6+
7+ export default function ActivityFeeds ( ) {
8+ const activities = [
9+ {
10+ id : "1" ,
11+ user : { name : "Ahmet Yılmaz" , initials : "AY" } ,
12+ action : "Yeni rapor oluşturdu" ,
13+ target : "Q4 Analiz Raporu" ,
14+ time : "5 dakika önce" ,
15+ type : "success" as const ,
16+ icon : FileText
17+ } ,
18+ {
19+ id : "2" ,
20+ user : { name : "Fatma Kaya" , initials : "FK" } ,
21+ action : "Sistem ayarlarını güncelledi" ,
22+ target : "Güvenlik Politikaları" ,
23+ time : "1 saat önce" ,
24+ type : "info" as const ,
25+ icon : Settings
26+ } ,
27+ {
28+ id : "3" ,
29+ user : { name : "Mehmet Demir" , initials : "MD" } ,
30+ action : "Performans uyarısı aldı" ,
31+ target : "API Response Time" ,
32+ time : "2 saat önce" ,
33+ type : "warning" as const ,
34+ icon : BarChart3
35+ } ,
36+ {
37+ id : "4" ,
38+ user : { name : "Ayşe Özkan" , initials : "AÖ" } ,
39+ action : "Yeni kullanıcı ekledi" ,
40+ target : "Ekip Üyesi Kaydı" ,
41+ time : "3 saat önce" ,
42+ type : "success" as const ,
43+ icon : Users
44+ } ,
45+ {
46+ id : "5" ,
47+ user : { name : "Ali Arslan" , initials : "AA" } ,
48+ action : "Güvenlik ayarları değiştirildi" ,
49+ target : "2FA Aktivasyonu" ,
50+ time : "4 saat önce" ,
51+ type : "info" as const ,
52+ icon : Shield
53+ }
54+ ] ;
55+
56+ const criticalActivities = [
57+ {
58+ id : "6" ,
59+ user : { name : "Sistem" , initials : "SY" } ,
60+ action : "Kritik hata tespit edildi" ,
61+ target : "Database Connection" ,
62+ time : "Az önce" ,
63+ type : "error" as const ,
64+ icon : Zap
65+ } ,
66+ {
67+ id : "7" ,
68+ user : { name : "Sistem" , initials : "SY" } ,
69+ action : "Backup işlemi başarısız" ,
70+ target : "Günlük Yedekleme" ,
71+ time : "10 dakika önce" ,
72+ type : "warning" as const ,
73+ icon : Settings
74+ }
75+ ] ;
76+
77+ return (
78+ < >
79+ < Helmet >
80+ < title > Aktivite Akışları - CodeMaze Admin</ title >
81+ < meta name = "description" content = "Gerçek zamanlı aktivite takibi ve bildirim sistemi" />
82+ </ Helmet >
83+
84+ < div className = "space-y-8" >
85+ < div className = "text-center space-y-4" >
86+ < h1 className = "text-4xl font-bold tracking-tight bg-gradient-to-r from-primary to-primary/60 bg-clip-text text-transparent" >
87+ Aktivite Akışları
88+ </ h1 >
89+ < p className = "text-xl text-muted-foreground max-w-2xl mx-auto" >
90+ Gerçek zamanlı kullanıcı aktiviteleri ve sistem olaylarını takip edin
91+ </ p >
92+ </ div >
93+
94+ < div className = "grid gap-6 lg:grid-cols-2" >
95+ < section className = "space-y-4" >
96+ < div className = "flex items-center gap-2" >
97+ < h2 className = "text-2xl font-semibold" > Genel Aktiviteler</ h2 >
98+ < Badge variant = "secondary" > Canlı</ Badge >
99+ </ div >
100+ < ActivityFeed
101+ activities = { activities }
102+ title = "Kullanıcı Aktiviteleri"
103+ />
104+ </ section >
105+
106+ < section className = "space-y-4" >
107+ < div className = "flex items-center gap-2" >
108+ < h2 className = "text-2xl font-semibold" > Kritik Olaylar</ h2 >
109+ < Badge variant = "destructive" > Acil</ Badge >
110+ </ div >
111+ < ActivityFeed
112+ activities = { criticalActivities }
113+ title = "Sistem Uyarıları"
114+ />
115+ </ section >
116+ </ div >
117+
118+ < section className = "space-y-4" >
119+ < h2 className = "text-2xl font-semibold" > Özellikler</ h2 >
120+ < div className = "grid gap-6 md:grid-cols-2 lg:grid-cols-3" >
121+ < Card >
122+ < CardHeader >
123+ < CardTitle > Gerçek Zamanlı</ CardTitle >
124+ </ CardHeader >
125+ < CardContent >
126+ < p className = "text-muted-foreground" > Anlık aktivite güncellemeleri</ p >
127+ </ CardContent >
128+ </ Card >
129+ < Card >
130+ < CardHeader >
131+ < CardTitle > Tip Kategorileri</ CardTitle >
132+ </ CardHeader >
133+ < CardContent >
134+ < p className = "text-muted-foreground" > Success, Info, Warning, Error türleri</ p >
135+ </ CardContent >
136+ </ Card >
137+ < Card >
138+ < CardHeader >
139+ < CardTitle > Kullanıcı Avatarları</ CardTitle >
140+ </ CardHeader >
141+ < CardContent >
142+ < p className = "text-muted-foreground" > İnisiyaller ile otomatik avatar oluşturma</ p >
143+ </ CardContent >
144+ </ Card >
145+ < Card >
146+ < CardHeader >
147+ < CardTitle > Zaman Gösterimi</ CardTitle >
148+ </ CardHeader >
149+ < CardContent >
150+ < p className = "text-muted-foreground" > Relative time formatting</ p >
151+ </ CardContent >
152+ </ Card >
153+ < Card >
154+ < CardHeader >
155+ < CardTitle > İkon Desteği</ CardTitle >
156+ </ CardHeader >
157+ < CardContent >
158+ < p className = "text-muted-foreground" > Her aktivite için özel ikonlar</ p >
159+ </ CardContent >
160+ </ Card >
161+ < Card >
162+ < CardHeader >
163+ < CardTitle > Hover Efektleri</ CardTitle >
164+ </ CardHeader >
165+ < CardContent >
166+ < p className = "text-muted-foreground" > Smooth animasyonlar ve geçişler</ p >
167+ </ CardContent >
168+ </ Card >
169+ </ div >
170+ </ section >
171+ </ div >
172+ </ >
173+ ) ;
174+ }
0 commit comments