Files
Yusuf İpek 70d246bc17 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
2025-12-24 15:26:55 +03:00

882 B
Raw Permalink Blame History

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