Merge branch 'gece/p2-olcum' into main
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -12,24 +12,19 @@ import { kullaniciTanit, kullaniciTemizle } from "@/lib/analitik";
|
|||||||
|
|
||||||
export function RybbitIdentify({
|
export function RybbitIdentify({
|
||||||
kullaniciId,
|
kullaniciId,
|
||||||
eposta,
|
|
||||||
isim,
|
|
||||||
}: {
|
}: {
|
||||||
/** null = oturum yok; o cihazdaki kimlik temizlenir (çıkış sonrası) */
|
/** null = oturum yok; o cihazdaki kimlik temizlenir (çıkış sonrası) */
|
||||||
kullaniciId: string | null;
|
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(() => {
|
useEffect(() => {
|
||||||
if (!kullaniciId) {
|
if (!kullaniciId) {
|
||||||
kullaniciTemizle();
|
kullaniciTemizle();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const traits: Record<string, string> = {};
|
kullaniciTanit(kullaniciId);
|
||||||
if (eposta) traits.email = eposta;
|
}, [kullaniciId]);
|
||||||
if (isim) traits.name = isim;
|
|
||||||
kullaniciTanit(kullaniciId, traits);
|
|
||||||
}, [kullaniciId, eposta, isim]);
|
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ export async function UserNav() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="order-2 flex shrink-0 items-center gap-1.5 sm:gap-2">
|
<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} />
|
<ListeSenkron userId={u.id} />
|
||||||
<ListemButonu />
|
<ListemButonu />
|
||||||
{/* Yapay Zeka raporunun kalıcı kapısı: girişli kullanıcı /listem'i
|
{/* Yapay Zeka raporunun kalıcı kapısı: girişli kullanıcı /listem'i
|
||||||
|
|||||||
Reference in New Issue
Block a user