Enhance content clarity and structure across multiple guidance articles by updating descriptions and adding flowcharts for better understanding. Key changes include refining explanations in sections about scholarship programs, placement processes, and preference lists, along with the introduction of mermaid diagrams to visually represent complex information. This update aims to improve user navigation and comprehension of the educational pathways and requirements.
All checks were successful
Deploy / deploy (push) Successful in 9m44s

This commit is contained in:
bilalgursen
2026-08-02 05:04:38 +03:00
parent 205743f3b1
commit bd613adb8a
12 changed files with 203 additions and 12 deletions

View File

@@ -229,6 +229,8 @@ export function programEkleIste(opts: {
/** Profil yazıldıktan sonra; bekleyen hedef varsa yönlendirme href'i döner. */
export function profilTamamlandi(profil: TercihProfili): string | null {
const onceki = durum.profil;
const duzenle = durum.duzenle;
riskleriYenile(profil);
const bekleyen = durum.bekleyen;
const hedef = durum.bekleyenHedef;
@@ -245,7 +247,19 @@ export function profilTamamlandi(profil: TercihProfili): string | null {
profilYuklendi: true,
};
yayinla();
return hedef === "sonuc" ? sonucHref(profil) : null;
if (hedef === "sonuc") return sonucHref(profil);
// Düzenlemede sıra/tür değişince /sonuc?sira= URL'si yenilenmezse sunucudaki
// hayal/dengeli/garanti tablosu eski sıralamada kalır (profil localStorage'da
// güncellenir ama sayfa searchParams'tan hesaplanır).
if (
duzenle &&
typeof window !== "undefined" &&
window.location.pathname.startsWith("/sonuc") &&
(onceki?.sira !== profil.sira || onceki?.tur !== profil.tur)
) {
return sonucHref(profil);
}
return null;
}
export function useListeDolu(): boolean {

View File

@@ -177,7 +177,12 @@ function KapıIcerik({
if (!duzenle && !bekleyenVar) {
toast.success("Tercihlerin kaydedildi.");
}
if (yonlendir) router.push(yonlendir);
// Düzenlemede replace: aynı /sonuc sayfasında sira/tur değişince geçmiş
// şişmesin; ilk kurulumda push ile hedefe gitsin.
if (yonlendir) {
if (duzenle) router.replace(yonlendir);
else router.push(yonlendir);
}
}
const panelYuksekligi =