Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
fix: ekran okuyucuda tekrarlanan rol adlarini ve menubar ARIA yapisini duzelt
This commit is contained in:
@@ -22,7 +22,7 @@ export default function HakkimizdaPage() {
|
|||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<nav className="navbar-nav" aria-label="Sayfa içi Gezinme">
|
<nav className="navbar-nav" aria-label="Sayfa İçi Bağlantılar">
|
||||||
<a href="/" className="nav-link-btn">
|
<a href="/" className="nav-link-btn">
|
||||||
<ArrowLeft size={16} aria-hidden="true" />
|
<ArrowLeft size={16} aria-hidden="true" />
|
||||||
<span>3B Stüdyoya Dön</span>
|
<span>3B Stüdyoya Dön</span>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export default function IletisimPage() {
|
|||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<nav className="navbar-nav" aria-label="Sayfa içi Gezinme">
|
<nav className="navbar-nav" aria-label="Sayfa İçi Bağlantılar">
|
||||||
<a href="/" className="nav-link-btn">
|
<a href="/" className="nav-link-btn">
|
||||||
<ArrowLeft size={16} aria-hidden="true" />
|
<ArrowLeft size={16} aria-hidden="true" />
|
||||||
<span>3B Stüdyoya Dön</span>
|
<span>3B Stüdyoya Dön</span>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export default function KullanimKosullariPage() {
|
|||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<nav className="navbar-nav" aria-label="Sayfa içi Gezinme">
|
<nav className="navbar-nav" aria-label="Sayfa İçi Bağlantılar">
|
||||||
<a href="/" className="nav-link-btn">
|
<a href="/" className="nav-link-btn">
|
||||||
<ArrowLeft size={16} aria-hidden="true" />
|
<ArrowLeft size={16} aria-hidden="true" />
|
||||||
<span>3B Stüdyoya Dön</span>
|
<span>3B Stüdyoya Dön</span>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export default function KurumsalGuvenlikPage() {
|
|||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<nav className="navbar-nav" aria-label="Sayfa içi Gezinme">
|
<nav className="navbar-nav" aria-label="Sayfa İçi Bağlantılar">
|
||||||
<a href="/" className="nav-link-btn">
|
<a href="/" className="nav-link-btn">
|
||||||
<ArrowLeft size={16} aria-hidden="true" />
|
<ArrowLeft size={16} aria-hidden="true" />
|
||||||
<span>3B Stüdyoya Dön</span>
|
<span>3B Stüdyoya Dön</span>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export default function KVKKPage() {
|
|||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<nav className="navbar-nav" aria-label="Sayfa içi Gezinme">
|
<nav className="navbar-nav" aria-label="Sayfa İçi Bağlantılar">
|
||||||
<a href="/" className="nav-link-btn">
|
<a href="/" className="nav-link-btn">
|
||||||
<ArrowLeft size={16} aria-hidden="true" />
|
<ArrowLeft size={16} aria-hidden="true" />
|
||||||
<span>3B Stüdyoya Dön</span>
|
<span>3B Stüdyoya Dön</span>
|
||||||
|
|||||||
@@ -12414,7 +12414,7 @@ function SecondaryToolbar({
|
|||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<div className="sketch-toolbar-ribbon" aria-label="Sketch toolbar">
|
<div className="sketch-toolbar-ribbon" role="toolbar" aria-label="Eskiz Araçları">
|
||||||
{sketchActive ? (
|
{sketchActive ? (
|
||||||
<>
|
<>
|
||||||
<div className="toolbar-section sketch-create-section">
|
<div className="toolbar-section sketch-create-section">
|
||||||
|
|||||||
@@ -6332,6 +6332,9 @@ export function WorkplaneViewport({
|
|||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className={`lens-fov-btn ${lensMenuOpen ? "active" : ""}`}
|
className={`lens-fov-btn ${lensMenuOpen ? "active" : ""}`}
|
||||||
|
aria-label="Kamera Lens ve Görüş Açısı"
|
||||||
|
aria-haspopup="menu"
|
||||||
|
aria-expanded={lensMenuOpen}
|
||||||
title="Mimari Kamera Lens & Görüş Açısı (24mm, 35mm, 50mm, 85mm)"
|
title="Mimari Kamera Lens & Görüş Açısı (24mm, 35mm, 50mm, 85mm)"
|
||||||
onClick={() => setLensMenuOpen((prev) => !prev)}
|
onClick={() => setLensMenuOpen((prev) => !prev)}
|
||||||
style={{ fontSize: "11px", fontWeight: 800, padding: "4px 2px", color: "#38bdf8" }}
|
style={{ fontSize: "11px", fontWeight: 800, padding: "4px 2px", color: "#38bdf8" }}
|
||||||
@@ -6356,6 +6359,8 @@ export function WorkplaneViewport({
|
|||||||
<button
|
<button
|
||||||
key={lens.fov}
|
key={lens.fov}
|
||||||
type="button"
|
type="button"
|
||||||
|
role="menuitemradio"
|
||||||
|
aria-checked={currentFov === lens.fov}
|
||||||
onClick={() => setCameraLens(lens.fov)}
|
onClick={() => setCameraLens(lens.fov)}
|
||||||
className={`flex flex-col items-start px-2 py-1.5 rounded-lg text-left transition-colors ${
|
className={`flex flex-col items-start px-2 py-1.5 rounded-lg text-left transition-colors ${
|
||||||
currentFov === lens.fov
|
currentFov === lens.fov
|
||||||
|
|||||||
@@ -470,8 +470,8 @@ export function GlobalAccessibilityToolbar({
|
|||||||
</defs>
|
</defs>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
||||||
{/* Sağ Alt Yüzen Erişilebilirlik & Komut Paleti Çubuğu */}
|
{/* Sağ Alt Yüzen Erişilebilirlik & Komut Paleti */}
|
||||||
<div className="snapcad-floating-a11y-dock" role="region" aria-label="Hızlı Erişilebilirlik ve Komut Çubuğu">
|
<div className="snapcad-floating-a11y-dock" role="region" aria-label="Hızlı Erişilebilirlik ve Komutlar">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className="snapcad-dock-btn command"
|
className="snapcad-dock-btn command"
|
||||||
@@ -644,7 +644,7 @@ export function GlobalAccessibilityToolbar({
|
|||||||
<X size={17} />
|
<X size={17} />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div className="snapcad-command-list" role="listbox" aria-label="Komut Sonuçları">
|
<div className="snapcad-command-list" role="group" aria-label="Komut Sonuçları">
|
||||||
{filteredActions.map((act) => (
|
{filteredActions.map((act) => (
|
||||||
<button
|
<button
|
||||||
key={act.id}
|
key={act.id}
|
||||||
|
|||||||
@@ -1944,7 +1944,7 @@ export default function ClassroomsStudio({
|
|||||||
{/* Alt Sekmeler (Projeler, Etkinlikler, Roster) */}
|
{/* Alt Sekmeler (Projeler, Etkinlikler, Roster) */}
|
||||||
<div
|
<div
|
||||||
role="tablist"
|
role="tablist"
|
||||||
aria-label="Sınıf alt sekmeleri"
|
aria-label="Sınıf Bölümleri"
|
||||||
className="flex items-center gap-2 border-b border-slate-200 dark:border-slate-800 pb-2"
|
className="flex items-center gap-2 border-b border-slate-200 dark:border-slate-800 pb-2"
|
||||||
>
|
>
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -1033,7 +1033,7 @@ export default function CodeblocksStudio({
|
|||||||
const v = Number(e.target.value);
|
const v = Number(e.target.value);
|
||||||
setPreviewStepLimit(v >= generatedShapes.length ? null : v);
|
setPreviewStepLimit(v >= generatedShapes.length ? null : v);
|
||||||
}}
|
}}
|
||||||
aria-label="Kod blokları adım adım yürütme sürgüsü"
|
aria-label="Kod blokları adım adım yürütme"
|
||||||
/>
|
/>
|
||||||
</label>
|
</label>
|
||||||
|
|
||||||
|
|||||||
@@ -112,10 +112,10 @@ export function EnterprisePrecisionBar({
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<footer
|
<div
|
||||||
className={`enterprise-precision-bar ${className}`}
|
className={`enterprise-precision-bar ${className}`}
|
||||||
role="region"
|
role="region"
|
||||||
aria-label="Hassas Çizim ve Ölçü Kutusu (Measurements VCB)"
|
aria-label="Hassas Çizim ve Ölçü Girişi"
|
||||||
>
|
>
|
||||||
{/* 1. Sol Kısım: Araç Modu, Canlı Eğitmen İpucu ve Yüzey Rozeti */}
|
{/* 1. Sol Kısım: Araç Modu, Canlı Eğitmen İpucu ve Yüzey Rozeti */}
|
||||||
<div className="precision-group tools-group">
|
<div className="precision-group tools-group">
|
||||||
@@ -287,6 +287,6 @@ export function EnterprisePrecisionBar({
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -119,7 +119,7 @@ export function EnterpriseTopBar({
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<header className="enterprise-topbar" role="banner" aria-label="SnapCAD Studio Başlık Çubuğu">
|
<header className="enterprise-topbar" role="banner" aria-label="SnapCAD Studio Üst Alanı">
|
||||||
{/* 1. Sol: Marka ve Proje Başlığı */}
|
{/* 1. Sol: Marka ve Proje Başlığı */}
|
||||||
<div className="topbar-section left-section">
|
<div className="topbar-section left-section">
|
||||||
{onBackToDashboard ? (
|
{onBackToDashboard ? (
|
||||||
@@ -188,9 +188,9 @@ export function EnterpriseTopBar({
|
|||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* 2. Orta: Stüdyo Değiştirici Sekmeler (Studio Switcher Pills) */}
|
{/* 2. Orta: Stüdyo Değiştirici (Studio Switcher Pills) */}
|
||||||
<nav className="topbar-section center-section" aria-label="SnapCAD Studio Stüdyoları">
|
<nav className="topbar-section center-section" aria-label="SnapCAD Studio Stüdyoları">
|
||||||
<div className="studio-switcher-pills" role="tablist">
|
<div className="studio-switcher-pills" role="tablist" aria-label="Stüdyolar">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
role="tab"
|
role="tab"
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export function PlatformFooter({ onNavigateSection, className = "" }: PlatformFo
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<footer className={`snapcad-platform-footer ${className}`} role="contentinfo" aria-label="SnapCAD Studio Kurumsal Altbilgi">
|
<footer className={`snapcad-platform-footer ${className}`} role="contentinfo" aria-label="SnapCAD Studio Kurumsal">
|
||||||
<div className="footer-inner-container">
|
<div className="footer-inner-container">
|
||||||
{/* 1. Sütun: Marka & Kurumsal Tanım */}
|
{/* 1. Sütun: Marka & Kurumsal Tanım */}
|
||||||
<div className="footer-col brand-col">
|
<div className="footer-col brand-col">
|
||||||
|
|||||||
@@ -302,7 +302,7 @@ export function SketchUpDefaultTray({
|
|||||||
<aside
|
<aside
|
||||||
className="sketchup-default-tray"
|
className="sketchup-default-tray"
|
||||||
role="complementary"
|
role="complementary"
|
||||||
aria-label="Varsayılan Tepsi (Default Tray)"
|
aria-label="Varsayılan Tepsi"
|
||||||
>
|
>
|
||||||
<div className="tray-top-header">
|
<div className="tray-top-header">
|
||||||
<span className="tray-top-title">Varsayılan Tepsi</span>
|
<span className="tray-top-title">Varsayılan Tepsi</span>
|
||||||
@@ -521,7 +521,7 @@ export function SketchUpDefaultTray({
|
|||||||
{/* 3. BİLEŞENLER (YEREL & YAKNET 3B HAVUZ) */}
|
{/* 3. BİLEŞENLER (YEREL & YAKNET 3B HAVUZ) */}
|
||||||
{id === "components" ? (
|
{id === "components" ? (
|
||||||
<div className="tray-form-stack">
|
<div className="tray-form-stack">
|
||||||
<div className="tray-seg-tabs" role="tablist">
|
<div className="tray-seg-tabs" role="tablist" aria-label="Bileşen Kaynağı">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
role="tab"
|
role="tab"
|
||||||
|
|||||||
@@ -408,10 +408,8 @@ export function SketchUpMenuBar(props: SketchUpMenuBarProps) {
|
|||||||
<div
|
<div
|
||||||
ref={barRef}
|
ref={barRef}
|
||||||
className="sketchup-menubar"
|
className="sketchup-menubar"
|
||||||
role="menubar"
|
|
||||||
aria-label="Klasik CAD Menü Çubuğu"
|
|
||||||
>
|
>
|
||||||
<div className="sketchup-menubar-items">
|
<div className="sketchup-menubar-items" role="menubar" aria-label="Klasik CAD">
|
||||||
{menus.map((menu, idx) => {
|
{menus.map((menu, idx) => {
|
||||||
const isOpen = openMenuId === menu.id;
|
const isOpen = openMenuId === menu.id;
|
||||||
return (
|
return (
|
||||||
@@ -440,16 +438,18 @@ export function SketchUpMenuBar(props: SketchUpMenuBarProps) {
|
|||||||
</button>
|
</button>
|
||||||
|
|
||||||
{isOpen ? (
|
{isOpen ? (
|
||||||
<div className="sketchup-menu-dropdown" role="menu" aria-label={`${menu.label} alt menüsü`}>
|
<div className="sketchup-menu-dropdown" role="menu" aria-label={menu.label}>
|
||||||
{menu.items.map((item, itemIdx) =>
|
{menu.items.map((item, itemIdx) => {
|
||||||
item.kind === "separator" ? (
|
if (item.kind === "separator") {
|
||||||
<div key={`${menu.id}-sep-${itemIdx}`} className="sketchup-menu-sep" role="separator" />
|
return <div key={`${menu.id}-sep-${itemIdx}`} className="sketchup-menu-sep" role="separator" />;
|
||||||
) : (
|
}
|
||||||
|
const isCheckable = typeof item.checked === "boolean";
|
||||||
|
return (
|
||||||
<button
|
<button
|
||||||
key={item.id}
|
key={item.id}
|
||||||
type="button"
|
type="button"
|
||||||
role="menuitemcheckbox"
|
role={isCheckable ? "menuitemcheckbox" : "menuitem"}
|
||||||
aria-checked={Boolean(item.checked)}
|
aria-checked={isCheckable ? item.checked : undefined}
|
||||||
disabled={item.disabled}
|
disabled={item.disabled}
|
||||||
className={`sketchup-menu-item ${item.checked ? "checked" : ""}`}
|
className={`sketchup-menu-item ${item.checked ? "checked" : ""}`}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@@ -465,8 +465,8 @@ export function SketchUpMenuBar(props: SketchUpMenuBarProps) {
|
|||||||
<kbd className="sketchup-menu-shortcut">{item.shortcut}</kbd>
|
<kbd className="sketchup-menu-shortcut">{item.shortcut}</kbd>
|
||||||
) : null}
|
) : null}
|
||||||
</button>
|
</button>
|
||||||
),
|
);
|
||||||
)}
|
})}
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
@@ -475,7 +475,7 @@ export function SketchUpMenuBar(props: SketchUpMenuBarProps) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Sağ taraf: hızlı görünüm & kısayol profili anahtarları */}
|
{/* Sağ taraf: hızlı görünüm & kısayol profili anahtarları */}
|
||||||
<div className="sketchup-menubar-right">
|
<div className="sketchup-menubar-right" role="group" aria-label="Hızlı Panel ve Kısayol Ayarları">
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
className={`sketchup-quick-chip ${prefs.showLeftToolset ? "active" : ""}`}
|
className={`sketchup-quick-chip ${prefs.showLeftToolset ? "active" : ""}`}
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ export function SketchUpToolset({
|
|||||||
<aside
|
<aside
|
||||||
className="sketchup-large-toolset"
|
className="sketchup-large-toolset"
|
||||||
role="toolbar"
|
role="toolbar"
|
||||||
aria-label="Büyük Araç Seti (Large Tool Set)"
|
aria-label="Büyük Araç Seti"
|
||||||
aria-orientation="vertical"
|
aria-orientation="vertical"
|
||||||
>
|
>
|
||||||
{TOOL_GROUPS.map((group) => (
|
{TOOL_GROUPS.map((group) => (
|
||||||
@@ -199,6 +199,8 @@ export function SketchUpToolset({
|
|||||||
className={`sketchup-mini-pill ${visualStyle === "wireframe" ? "active" : ""}`}
|
className={`sketchup-mini-pill ${visualStyle === "wireframe" ? "active" : ""}`}
|
||||||
onClick={() => onSelectVisualStyle("wireframe")}
|
onClick={() => onSelectVisualStyle("wireframe")}
|
||||||
title="Tel Kafes (Wireframe)"
|
title="Tel Kafes (Wireframe)"
|
||||||
|
aria-label="Tel Kafes"
|
||||||
|
aria-pressed={visualStyle === "wireframe"}
|
||||||
>
|
>
|
||||||
TEL
|
TEL
|
||||||
</button>
|
</button>
|
||||||
@@ -207,6 +209,8 @@ export function SketchUpToolset({
|
|||||||
className={`sketchup-mini-pill ${visualStyle === "hidden-line" ? "active" : ""}`}
|
className={`sketchup-mini-pill ${visualStyle === "hidden-line" ? "active" : ""}`}
|
||||||
onClick={() => onSelectVisualStyle("hidden-line")}
|
onClick={() => onSelectVisualStyle("hidden-line")}
|
||||||
title="Gizli Çizgi (Hidden Line)"
|
title="Gizli Çizgi (Hidden Line)"
|
||||||
|
aria-label="Gizli Çizgi"
|
||||||
|
aria-pressed={visualStyle === "hidden-line"}
|
||||||
>
|
>
|
||||||
GİZ
|
GİZ
|
||||||
</button>
|
</button>
|
||||||
@@ -215,6 +219,8 @@ export function SketchUpToolset({
|
|||||||
className={`sketchup-mini-pill ${visualStyle === "shaded" ? "active" : ""}`}
|
className={`sketchup-mini-pill ${visualStyle === "shaded" ? "active" : ""}`}
|
||||||
onClick={() => onSelectVisualStyle("shaded")}
|
onClick={() => onSelectVisualStyle("shaded")}
|
||||||
title="Dokulu & Gölgeli (Shaded)"
|
title="Dokulu & Gölgeli (Shaded)"
|
||||||
|
aria-label="Dokulu ve Gölgeli"
|
||||||
|
aria-pressed={visualStyle === "shaded"}
|
||||||
>
|
>
|
||||||
GÖL
|
GÖL
|
||||||
</button>
|
</button>
|
||||||
@@ -223,6 +229,8 @@ export function SketchUpToolset({
|
|||||||
className={`sketchup-mini-pill ${visualStyle === "monochrome" ? "active" : ""}`}
|
className={`sketchup-mini-pill ${visualStyle === "monochrome" ? "active" : ""}`}
|
||||||
onClick={() => onSelectVisualStyle("monochrome")}
|
onClick={() => onSelectVisualStyle("monochrome")}
|
||||||
title="Monokrom (Monochrome)"
|
title="Monokrom (Monochrome)"
|
||||||
|
aria-label="Monokrom"
|
||||||
|
aria-pressed={visualStyle === "monochrome"}
|
||||||
>
|
>
|
||||||
MON
|
MON
|
||||||
</button>
|
</button>
|
||||||
@@ -231,6 +239,7 @@ export function SketchUpToolset({
|
|||||||
className={`sketchup-mini-pill ${backEdgesEnabled ? "active" : ""}`}
|
className={`sketchup-mini-pill ${backEdgesEnabled ? "active" : ""}`}
|
||||||
onClick={onToggleBackEdges}
|
onClick={onToggleBackEdges}
|
||||||
title="Arka Kenarları Göster/Gizle (Back Edges - K)"
|
title="Arka Kenarları Göster/Gizle (Back Edges - K)"
|
||||||
|
aria-label="Arka Kenarlar (K)"
|
||||||
aria-pressed={backEdgesEnabled}
|
aria-pressed={backEdgesEnabled}
|
||||||
>
|
>
|
||||||
<Highlighter size={11} aria-hidden="true" />
|
<Highlighter size={11} aria-hidden="true" />
|
||||||
@@ -240,6 +249,7 @@ export function SketchUpToolset({
|
|||||||
className={`sketchup-mini-pill ${xRayMode ? "active" : ""}`}
|
className={`sketchup-mini-pill ${xRayMode ? "active" : ""}`}
|
||||||
onClick={onToggleXRay}
|
onClick={onToggleXRay}
|
||||||
title="X-Ray (Röntgen - X)"
|
title="X-Ray (Röntgen - X)"
|
||||||
|
aria-label="Röntgen Modu (X)"
|
||||||
aria-pressed={xRayMode}
|
aria-pressed={xRayMode}
|
||||||
>
|
>
|
||||||
<Layers size={11} aria-hidden="true" />
|
<Layers size={11} aria-hidden="true" />
|
||||||
|
|||||||
@@ -510,10 +510,10 @@ export function YakNetCloudBar({
|
|||||||
</span>
|
</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
{/* YakNet Hesabı Menüsü Web Component (<yaknet-account>) */}
|
{/* YakNet Hesabı Web Component (<yaknet-account>) */}
|
||||||
<div
|
<div
|
||||||
ref={accountWidgetHostRef}
|
ref={accountWidgetHostRef}
|
||||||
aria-label="YakNet Hesabı ve Ekosistem Menüsü"
|
aria-label="YakNet Hesabı"
|
||||||
style={{ display: "flex", alignItems: "center", minHeight: "36px" }}
|
style={{ display: "flex", alignItems: "center", minHeight: "36px" }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -0,0 +1,76 @@
|
|||||||
|
import { describe, expect, it } from "vitest";
|
||||||
|
import fs from "node:fs";
|
||||||
|
import path from "node:path";
|
||||||
|
|
||||||
|
const readSrc = (...segments: string[]) =>
|
||||||
|
fs.readFileSync(path.resolve(__dirname, "../../apps/web/src", ...segments), "utf-8");
|
||||||
|
|
||||||
|
describe("ARIA accessibility labels & role hygiene", () => {
|
||||||
|
it("keeps SketchUpMenuBar role='menubar' strictly on menu triggers without repeating 'Menü Çubuğu' or 'alt menüsü'", () => {
|
||||||
|
const src = readSrc("components/snapcad/SketchUpMenuBar.tsx");
|
||||||
|
|
||||||
|
expect(src).toContain('<div className="sketchup-menubar-items" role="menubar" aria-label="Klasik CAD">');
|
||||||
|
expect(src).not.toMatch(/aria-label="[^"]*Menü Çubuğu[^"]*"/i);
|
||||||
|
expect(src).not.toMatch(/aria-label=\{`\$\{menu\.label\} alt menüsü`\}/i);
|
||||||
|
expect(src).toContain('<div className="sketchup-menu-dropdown" role="menu" aria-label={menu.label}>');
|
||||||
|
expect(src).toContain('role={isCheckable ? "menuitemcheckbox" : "menuitem"}');
|
||||||
|
expect(src).toContain('aria-checked={isCheckable ? item.checked : undefined}');
|
||||||
|
expect(src).toContain('<div className="sketchup-menubar-right" role="group" aria-label="Hızlı Panel ve Kısayol Ayarları">');
|
||||||
|
});
|
||||||
|
|
||||||
|
it("avoids repeating ARIA/semantic role nouns in aria-label across studio components and pages", () => {
|
||||||
|
const topBar = readSrc("components/snapcad/EnterpriseTopBar.tsx");
|
||||||
|
expect(topBar).not.toContain('aria-label="SnapCAD Studio Başlık Çubuğu"');
|
||||||
|
expect(topBar).toContain('aria-label="SnapCAD Studio Üst Alanı"');
|
||||||
|
expect(topBar).toContain('role="tablist" aria-label="Stüdyolar"');
|
||||||
|
|
||||||
|
const footer = readSrc("components/snapcad/PlatformFooter.tsx");
|
||||||
|
expect(footer).not.toContain('aria-label="SnapCAD Studio Kurumsal Altbilgi"');
|
||||||
|
expect(footer).toContain('aria-label="SnapCAD Studio Kurumsal"');
|
||||||
|
|
||||||
|
const classrooms = readSrc("components/snapcad/ClassroomsStudio.tsx");
|
||||||
|
expect(classrooms).not.toContain('aria-label="Sınıf alt sekmeleri"');
|
||||||
|
expect(classrooms).toContain('aria-label="Sınıf Bölümleri"');
|
||||||
|
|
||||||
|
const codeblocks = readSrc("components/snapcad/CodeblocksStudio.tsx");
|
||||||
|
expect(codeblocks).not.toContain('aria-label="Kod blokları adım adım yürütme sürgüsü"');
|
||||||
|
expect(codeblocks).toContain('aria-label="Kod blokları adım adım yürütme"');
|
||||||
|
|
||||||
|
const a11yCenter = readSrc("components/snapcad/AccessibilityCenter.tsx");
|
||||||
|
expect(a11yCenter).not.toContain('aria-label="Hızlı Erişilebilirlik ve Komut Çubuğu"');
|
||||||
|
expect(a11yCenter).toContain('role="group" aria-label="Komut Sonuçları"');
|
||||||
|
|
||||||
|
const precisionBar = readSrc("components/snapcad/EnterprisePrecisionBar.tsx");
|
||||||
|
expect(precisionBar).not.toContain("<footer");
|
||||||
|
expect(precisionBar).toContain('role="region"');
|
||||||
|
expect(precisionBar).toContain('aria-label="Hassas Çizim ve Ölçü Girişi"');
|
||||||
|
|
||||||
|
const cloudBar = readSrc("components/snapcad/YakNetCloudBar.tsx");
|
||||||
|
expect(cloudBar).not.toContain('aria-label="YakNet Hesabı ve Ekosistem Menüsü"');
|
||||||
|
|
||||||
|
const editor = readSrc("components/SketchForgeEditor.tsx");
|
||||||
|
expect(editor).not.toContain('aria-label="Sketch toolbar"');
|
||||||
|
expect(editor).toContain('className="sketch-toolbar-ribbon" role="toolbar" aria-label="Eskiz Araçları"');
|
||||||
|
|
||||||
|
for (const slug of ["hakkimizda", "iletisim", "kullanim-kosullari", "kurumsal-guvenlik", "kvkk"]) {
|
||||||
|
const pageSrc = readSrc("app", slug, "page.tsx");
|
||||||
|
expect(pageSrc).not.toContain('aria-label="Sayfa içi Gezinme"');
|
||||||
|
expect(pageSrc).toContain('<nav className="navbar-nav" aria-label="Sayfa İçi Bağlantılar">');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
it("provides descriptive Turkish aria-labels on abbreviated toolset buttons and tray tabs", () => {
|
||||||
|
const toolset = readSrc("components/snapcad/SketchUpToolset.tsx");
|
||||||
|
expect(toolset).toContain('aria-label="Büyük Araç Seti"');
|
||||||
|
expect(toolset).toContain('aria-label="Tel Kafes"');
|
||||||
|
expect(toolset).toContain('aria-label="Gizli Çizgi"');
|
||||||
|
expect(toolset).toContain('aria-label="Dokulu ve Gölgeli"');
|
||||||
|
expect(toolset).toContain('aria-label="Monokrom"');
|
||||||
|
expect(toolset).toContain('aria-label="Arka Kenarlar (K)"');
|
||||||
|
expect(toolset).toContain('aria-label="Röntgen Modu (X)"');
|
||||||
|
|
||||||
|
const tray = readSrc("components/snapcad/SketchUpDefaultTray.tsx");
|
||||||
|
expect(tray).toContain('aria-label="Varsayılan Tepsi"');
|
||||||
|
expect(tray).toContain('<div className="tray-seg-tabs" role="tablist" aria-label="Bileşen Kaynağı">');
|
||||||
|
});
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user