Anladım. Konu Dağıtım panelini daha profesyonel yapacağım (adımlı wizard, daha temiz UX, gruplandırma) ve Ders Programı tablosuna 3 action ekleyeceğim: Temizle, Tümünü Onayla, Yazdır.
Önce mevcut dashboard'ın action bölümüne bakayım.
Now I need to add markAllDone to the store, plus a print CSS. Let me first check the store.
Let me add markAllDone and setAllDone action, plus print CSS. First, the store:
Now let me check how the store handles emit — needed for setAllDone to work.
Now add print CSS:
CSS may have been reset. Let me view:
The .inp and .label utility classes are missing. Let me append them plus the print styles.
Now add "app-topbar" class to the topbar so print-hide works:
Now also add no-print class to the sidebar container in App.tsx. Actually Sidebar is inside App as separate <aside> — the CSS already targets aside. Good.
Now let me replace the AdminDashboard action row with 3 professional actions (Temizle, Tümünü Onayla, Yazdır) + confirm dialog, and also mark the schedule with print-schedule class. Let me view the header/imports and update:
Now add the confirm state + action bar. Let me first find the state block and add confirm state:
Now replace the action row with the new professional 3-action toolbar + confirm modal, and add print-schedule class to the schedule container:
Now add the schedule wrapper print-schedule class and the confirm modal. Let me find the schedule container:
Also make the toolbar's Anasayfa-hero and other decorative elements hidden in print. Also add no-print to hero header, top stats, deneme gunu selector. Let me find them:
Now find the top stats grid and Deneme Günü Ayarla section to hide them from print too:
Find the Deneme Günü Ayarla section:
Now add the confirm modal near the wizard modal:
Now the main task — rewrite DistributeWizard to be more professional with a stepper (2 steps: Configure → Subjects), better hierarchy, and cleaner visual language.
The Legend uses enabled (which takes id string) directly on subject objects. Fix:
Temiz derleme. Her iki büyük geliştirme de tamamlandı.
Yapılan Değişiklikler
1. Konu Dağıtım Paneli — Profesyonel 2 Adımlı Wizard
Adım 1 · Zaman Planı
- Hazır Şablonlar: Hafif (5g × 4s), Standart (6g × 6s), Yoğun (7g × 8s) — tek tıkla ayarla.
- İnce Ayar: 3 büyük stepper (Haftada Gün / Günde Ders / Aynı Ders/gün) — her biri açıklamalı ve ikonlu.
- Canlı kapasite ölçer ve durum açıklaması.
Adım 2 · Dersler & Konular
- Üstte arama kutusu + sayaç rozeti (X ders · Y konu) + Sıfırla.
- Her ders kartında sol tarafta renkli border-strip (ders rengi), rozet, drag handle, ↑↓ öncelik butonu, aç/kapa oku, çöp kutusu.
- Konu satırlarında Kopyala (Copy) butonu — bir tık ile aynı konuyu klonla.
- Hover'da satır aksiyonları belirir (kopyala + sil).
- + KONU EKLE butonu ders rengiyle boyalı, kesikli çerçeve.
- Sağda sabit Canlı Önizleme paneli: plan özeti (6g × 6s max 2), günlük dağılım ızgarası, ders sayısı legend'i.
- Aşağıda tekrar Kapasite Ölçer + Geri/Uygula navigasyonu.
Üstte adım göstergesi — hangi adımdayız, hangileri tamamlandı görsel olarak belli.
2. Ders Programı Toolbar — 3 Profesyonel Aksiyon
Tablonun üstünde ayrı bir toolbar kartı:
- 🗑 Temizle — kırmızı hover, tıklanınca onay dialogu açar
- ✓✓ Tümünü Onayla — yeşil buton, tüm hücreleri "tamamlandı" işaretler
- 🖨 Yazdır — koyu buton,
window.print() çağırır
Onay Dialogu her iki eylem için de:
- Ders sayısı ve etkilenecek seans sayısını gösteren istatistik kartı
- İşlemin geri alınabilirlik uyarısı
- Vazgeç / Onayla butonları
Yazdırma özellikleri:
@media print CSS: A4 yatay, sidebar/topbar/hero/deneme günü seçici gizlenir.
- Sadece program tablosu + yazdırma başlığı (öğrenci adı, sınav, hedef, seans sayısı) yazdırılır.
- Yazdırırken beyaz zemin, temiz kenarlıklar, gölgesiz görünüm.
Files built: src/store.ts, src/index.css, src/App.tsx, src/components/AdminDashboard.tsx, src/components/DistributeWizard.tsx