From b7e10efd1d17ed40c4e8b8b4189aec4ad00fc739 Mon Sep 17 00:00:00 2001 From: bilalgursen Date: Sat, 8 Aug 2026 13:57:48 +0300 Subject: [PATCH] =?UTF-8?q?perf:=20TercihHaritasi=20dinamik=20+=20lazy=20s?= =?UTF-8?q?armalay=C4=B1c=C4=B1lara=20kap=C4=B1/preload=20(Faz=203)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - tercih-haritasi-lazy: turkey-map-react il geometrisi (~197 KB) dynamic ssr:false + viewBox oranlı iskelet (CLS yok); /sonuc 1286->1099 KB, /listem 1503->1315 KB eager JS - manuel-harita: liste boşken harita hiç render edilmez (boş haritaya 197 KB iniyordu) — aynı oranlı placeholder alanı korur - program tablosu section'ına hover/focus preload (niyet anında ısıtma) - liste-cekmecesi/kaydet-banner/tercih-profili-kapisi lazy sarmalayıcıları kapı kazandı: koşul sağlanana dek chunk inmez; açan butonlara (listem-butonu, + butonu, navbar sıralama butonları) hover/focus preload - liste-cekmecesi: kullanılmayan DrawerDescription importu temizlendi Co-Authored-By: Claude Fable 5 --- .../katalog/components/katalog-arama.tsx | 9 +++++++ .../liste/components/kaydet-banner-lazy.tsx | 14 +++++++++- .../liste/components/liste-cekmecesi-lazy.tsx | 20 ++++++++++++-- .../liste/components/liste-cekmecesi.tsx | 1 - .../liste/components/listem-butonu.tsx | 3 +++ .../liste/components/manuel-harita.tsx | 26 ++++++++++++------ .../liste/components/program-ekle-butonu.tsx | 4 +++ .../liste/components/program-tablosu.tsx | 10 ++++++- .../liste/components/tercih-haritasi-lazy.tsx | 27 +++++++++++++++++++ .../components/tercih-profili-kapisi-lazy.tsx | 24 +++++++++++++++-- .../rapor/components/listem-govde.tsx | 4 +-- 11 files changed, 125 insertions(+), 17 deletions(-) create mode 100644 src/features/liste/components/tercih-haritasi-lazy.tsx diff --git a/src/features/katalog/components/katalog-arama.tsx b/src/features/katalog/components/katalog-arama.tsx index a5b0968..baf4900 100644 --- a/src/features/katalog/components/katalog-arama.tsx +++ b/src/features/katalog/components/katalog-arama.tsx @@ -20,6 +20,7 @@ import { sonucaGitIste, useTercihProfili, } from "@/features/liste/hooks/use-tercih-profili"; +import { preloadTercihProfiliKapisi } from "@/features/liste/components/tercih-profili-kapisi-lazy"; import { PUAN_TURU_ETIKET } from "@/features/sihirbaz/sihirbaz-sabitler"; import { olay } from "@/lib/analitik"; import { @@ -256,6 +257,8 @@ export function KatalogArama({ rehberler }: { rehberler: RehberAramaKaydi[] }) {