From be5e682c688587d298a1a20aa8f3b7291c9d1027 Mon Sep 17 00:00:00 2001 From: bilalgursen Date: Fri, 30 Oct 2026 01:59:12 +0300 Subject: [PATCH 1/4] =?UTF-8?q?feat(sonuc):=20giri=C5=9Fsiz=20kullan=C4=B1?= =?UTF-8?q?c=C4=B1ya=20telefonda=20sabit=20"Google=20ile=20kaydet"=20?= =?UTF-8?q?=C3=A7ubu=C4=9Fu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BACKLOG #4. md altında, oturum sinyali girişsiz dediğinde görünür; tık mevcut /giris akışına (callback'li) gider, giris_cta_tiklandi{kaynak:"sonuc_cubuk"} olayı düşer. Güvenli alan ve içerik altı ara parçası var. Co-Authored-By: Claude Opus 5.5 --- src/app/sonuc/page.tsx | 4 + .../liste/components/sonuc-kaydet-cubugu.tsx | 85 +++++++++++++++++++ 2 files changed, 89 insertions(+) create mode 100644 src/features/liste/components/sonuc-kaydet-cubugu.tsx diff --git a/src/app/sonuc/page.tsx b/src/app/sonuc/page.tsx index 10a57a8..a567657 100644 --- a/src/app/sonuc/page.tsx +++ b/src/app/sonuc/page.tsx @@ -16,6 +16,7 @@ import { LISTE_SAYI_CEREZ_ADI } from "@/features/liste/liste-dogrula"; import { TadimlikBolumu } from "@/features/rapor/components/tadimlik-bolumu"; import { SonucSihirbazi } from "@/features/sihirbaz/components/sihirbaz-bolumu"; import { SiraGerekli } from "@/features/sihirbaz/components/sira-gerekli"; +import { SonucKaydetCubugu } from "@/features/liste/components/sonuc-kaydet-cubugu"; import { SiteFooter } from "@/components/site-footer"; import { Skeleton } from "@/components/ui/skeleton"; @@ -183,6 +184,9 @@ export default function SonucPage({

+ {/* Girişsiz + telefonda sabit "kaydet" çubuğu; footer'ın altına + kendi boyu kadar boşluk bırakır. */} + ); })} diff --git a/src/features/liste/components/sonuc-kaydet-cubugu.tsx b/src/features/liste/components/sonuc-kaydet-cubugu.tsx new file mode 100644 index 0000000..5d1a277 --- /dev/null +++ b/src/features/liste/components/sonuc-kaydet-cubugu.tsx @@ -0,0 +1,85 @@ +"use client"; + +// /sonuc'ta girişsiz kullanıcıya telefonda sabit alt çubuk (BACKLOG #4): +// sayfadaki giriş paneli görünse de tıklanmıyordu, telefonda /sonuc'tan +// çıkış hızlıydı; kaydetme kapısı parmağın altında dursun. Yalnız `md` +// altında ve oturum sinyali "girişsiz" dediğinde görünür (sinyal gelmeden +// gizli: girişli kullanıcıya bir an bile çıkmaz). +// +// Tık yeni bir giriş akışı açmaz: diğer giriş CTA'ları gibi /giris'e +// (bu sayfaya dönen callback'le) gider. Google düğmesi orada ilk sıradadır +// ve KVKK aydınlatma/koşullar notu o sayfada; çubuktan doğrudan Google'a +// atlamak o notu atlatırdı. +// +// Çubuk içerik akışında kendi boyu kadar boşluk bırakır (ara parça), böylece +// sayfanın en altı (dipnot, footer) çubuğun altında kalmaz. + +import Link from "next/link"; +import { motion, useReducedMotion } from "motion/react"; +import { ArrowRight } from "lucide-react"; +import { Button } from "@/components/ui/button"; +import { SayiRulo } from "@/components/ui/sayi-rulo"; +import { ViewportPortal } from "@/components/viewport-portal"; +import { olay } from "@/lib/analitik"; +import { YAY } from "@/lib/hareket"; +import { useManuelListe } from "../liste-store"; +import { useOturumDurumu } from "../liste-oturum-sinyali"; +import { useGirisUrl } from "../liste-giris-url"; + +export function SonucKaydetCubugu() { + const girisli = useOturumDurumu(); + const liste = useManuelListe(); + const girisUrl = useGirisUrl(); + const azalt = useReducedMotion(); + + if (girisli !== false) return null; + + return ( + <> + {/* Ara parça: çubuğun yüksekliği (p-2 + h-12 + alt boşluk) + güvenli alan */} +
+ +
+ +

+ {liste.length > 0 ? ( + <> + + seçimin + {" "} + yalnız bu tarayıcıda + + ) : ( + <> + + Seçimlerin + {" "} + yalnız bu tarayıcıda + + )} +

+ +
+
+
+ + ); +} From 7438e92a6080d02c0d87fb29cb993fb0473eec0f Mon Sep 17 00:00:00 2001 From: bilalgursen Date: Fri, 30 Oct 2026 02:02:24 +0300 Subject: [PATCH 2/4] =?UTF-8?q?fix(sonuc):=20kaydet=20=C3=A7ubu=C4=9Fu=20m?= =?UTF-8?q?etni=20375=20px'te=20iki=20k=C4=B1sa=20sat=C4=B1r?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- .../liste/components/sonuc-kaydet-cubugu.tsx | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/features/liste/components/sonuc-kaydet-cubugu.tsx b/src/features/liste/components/sonuc-kaydet-cubugu.tsx index 5d1a277..e06a06c 100644 --- a/src/features/liste/components/sonuc-kaydet-cubugu.tsx +++ b/src/features/liste/components/sonuc-kaydet-cubugu.tsx @@ -49,22 +49,21 @@ export function SonucKaydetCubugu() { transition={YAY.varsayilan} className="pointer-events-auto mx-auto flex max-w-xl items-center gap-3 rounded-2xl border border-slate-200 bg-card p-2 pl-4 shadow-xl" > -

- {liste.length > 0 ? ( - <> - + {/* İki kısa satır: 375 px'te düğmenin yanında kalan ~110 px'e + tek cümle sığmıyor, üç satıra kırılıyordu. */} +

+ + {liste.length > 0 ? ( + <> seçimin - {" "} - yalnız bu tarayıcıda - - ) : ( - <> - - Seçimlerin - {" "} - yalnız bu tarayıcıda - - )} + + ) : ( + "Seçimlerin" + )} + + + yalnız bu cihazda +