mirror of
https://github.com/yusufipk/dead-man-switch-2.0.git
synced 2026-09-11 09:26:07 +00:00
feat(faz3): implement file upload with Cloudflare R2
- 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
This commit is contained in:
@@ -1,16 +1,25 @@
|
||||
# Active Context - Dead Man Switch 2.0
|
||||
|
||||
## Şu Anki Durum
|
||||
Proje planlaması tamamlandı, teknoloji stack'i belirlendi.
|
||||
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 16 + App Router kullanılacak
|
||||
- Client-side encryption zorunlu değil, opsiyonel
|
||||
- İlk fazda temel MVP hedefleniyor
|
||||
- Next.js 15 + App Router kullanılıyor
|
||||
- shadcn/ui + Tailwind dark mode
|
||||
- Client-side encryption opsiyonel
|
||||
|
||||
## Sonraki Adım
|
||||
Faz 1: Proje kurulumu ve Auth sistemi
|
||||
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
|
||||
- Check-in reminder email'leri düşünülmeli
|
||||
|
||||
Reference in New Issue
Block a user