mirror of
https://github.com/yusufipk/dead-man-switch-2.0.git
synced 2026-09-11 17:36:06 +00:00
- Add AWS SDK for S3-compatible R2 storage - Create R2 client with presigned URL support - Add attachment upload/download/delete API routes - Create FileUpload and AttachmentList components - Integrate file upload in message form (new & edit) - Add .env.example with R2 configuration
26 lines
882 B
Markdown
26 lines
882 B
Markdown
# Active Context - Dead Man Switch 2.0
|
||
|
||
## Şu Anki Durum
|
||
Faz 1 ve Faz 2 tamamlandı. Mesaj CRUD sistemi çalışıyor, dark mode aktif.
|
||
|
||
## Son Yapılan Değişiklikler
|
||
- Message, Recipient modelleri ve Prisma migration eklendi
|
||
- Mesaj API route'ları (GET, POST, PATCH, DELETE)
|
||
- IDOR güvenlik açığı düzeltildi (PATCH'te ownership doğrulaması)
|
||
- Dashboard ve mesaj sayfaları (liste, yeni, detay)
|
||
- UI bileşenleri (card, input, label, textarea)
|
||
- Dark mode aktifleştirildi
|
||
- NextAuth session'a user id typing eklendi
|
||
|
||
## Aktif Kararlar
|
||
- Next.js 15 + App Router kullanılıyor
|
||
- shadcn/ui + Tailwind dark mode
|
||
- Client-side encryption opsiyonel
|
||
|
||
## Sonraki Adım
|
||
Faz 3: Cloudflare R2 ile dosya yükleme
|
||
|
||
## Notlar
|
||
- IDOR fix: recipient silme işleminden önce mesaj sahipliği doğrulanıyor
|
||
- Şifreleme UX'i kritik - kullanıcı şifreyi kaybederse veri kurtarılamaz
|