Merge branch 'gece/p2-olcum' into main

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
bilalgursen
2026-10-04 13:39:44 +03:00
2 changed files with 5 additions and 10 deletions

View File

@@ -12,24 +12,19 @@ import { kullaniciTanit, kullaniciTemizle } from "@/lib/analitik";
export function RybbitIdentify({
kullaniciId,
eposta,
isim,
}: {
/** null = oturum yok; o cihazdaki kimlik temizlenir (çıkış sonrası) */
kullaniciId: string | null;
eposta?: string | null;
isim?: string | null;
}) {
// Yalnızca opak kullanıcı ID'si gider: e-posta/isim gibi kişisel veri
// üçüncü taraf analitiğe trait olarak GÖNDERİLMEZ.
useEffect(() => {
if (!kullaniciId) {
kullaniciTemizle();
return;
}
const traits: Record<string, string> = {};
if (eposta) traits.email = eposta;
if (isim) traits.name = isim;
kullaniciTanit(kullaniciId, traits);
}, [kullaniciId, eposta, isim]);
kullaniciTanit(kullaniciId);
}, [kullaniciId]);
return null;
}

View File

@@ -39,7 +39,7 @@ export async function UserNav() {
return (
<div className="order-2 flex shrink-0 items-center gap-1.5 sm:gap-2">
<RybbitIdentify kullaniciId={u.id} eposta={u.email} isim={u.name} />
<RybbitIdentify kullaniciId={u.id} />
<ListeSenkron userId={u.id} />
<ListemButonu />
{/* Yapay Zeka raporunun kalıcı kapısı: girişli kullanıcı /listem'i