revert: 22de7d5 — manuel bölümleme arayüzünü 1804 satır geri getir

22de7d5 ("Dead code uyarılarını gidemek için #[allow(dead_code)] eklendi")
commit mesajı yalnızca 3 adet #[allow(dead_code)] eklediğini söyliyordu,
ancak src/steps/partition.rs dosyasını 2438 satırdan 811 satıra düşürdü
(-1804 satır). Silinen kısım, dosyanın tamamıydı.

## Etki
Manuel bölümleme arayüzü fiilen işlevsiz hale gelmişti:
- "+ Ekle" / "Düzenle" / "Sil" butonları yalnızca hiç okunmayan
  bayraklar set ediyordu -> hiçbir diyalog açılmıyordu
- `delete = true` hiçbir yerden set edilmiyordu ->
  CustomPartitionJob'un FAZ A'si (parted rm) erisilemez durumdaydi
- `state.volume_groups` / `state.logical_volumes` hicbir yerden
  yazilmadigi icin SetupLvmJob hep bos vektor aliyordu -> LVM
  tamamen erisilemez durumdaydi
- `#[allow(dead_code)]`, derleyicinin bu boslugu bildirmesini bastirdi

## Geri getirilenler (1804 satir)
- Tum manuel bölümleme diyaloglari (ekle / düzenle / sil onayi /
  LVM VG / LVM LV)
- draw_partition_table_header, manual_dual_bars, draw_layout_bar,
  partition_bar, TableRow enum
- disk_size_mb, used_mb_on_disk, bar_style, format_number_thousands
- validate_manual hata mesajlarinin ekranda gosterilmesi
  (önceden hesaplanip atiliyordu; "İleri" butonu sessizce griydi)
- 21 birim testi

## Bu commit
- 8633422'nin uc validasyon duzeltmesini geri uyguladi:
  duplicate mountpoint kontrolu, swap boyut sinirlari (512MB-8GB),
  size_mb==0 && mountpoint bos uyarisi, is_complete'a
  state.selected_disk kontrolu
- 8633422'den gelen testi guncelledi (secili disk olmadan tamamlanmaz)
  ve yeni kural icin ayri bir test ekledi
- 2438 + 113807 baytlik iki yedek dosyayi depodan kaldirdi; .gitignore'a
  yedek/backup desenleri ekledi (dosyalar git history'de duruyor)
- src/ui/theme.rs: select_disk_label() geri geldi (partition.rs:949
  kullaniyor, 22de7d5 ile yorum satirina alinmisti)
- src/installer.rs: FsType ve VolumeGroup uzerindeki
  #[allow(dead_code)] kaldirildi (artik kullaniliyor)

## Dogrulama
cargo check --all-targets : 0 hata, 0 uyari
cargo test              : 23/23 gecti (1 test + 21 geri gelen + 1 yeni)
clippy                 : 70 uyari, tamami stil (collapsed_if, replace zinciri)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erkan IŞIK
2026-09-25 22:20:02 +03:00
parent a5d46279b8
commit 8c6dc08361
7 changed files with 1857 additions and 5026 deletions
+6
View File
@@ -14,5 +14,11 @@ Cargo.lock
*.swo
*.bak
# Eski sürüm yedekleri (git'e alınmamalı — git zaten var)
src/steps/*_orj*.rs*
src/steps/partition.rs_[0-9]*
*_copy.rs
*_copy.toml*
# OS files
.DS_Store
-1
View File
@@ -125,7 +125,6 @@ mp_free_space = "Boş Alan"
mp_bar_now = "Mevcut Durum"
mp_bar_after = "Kurulum Sonrası"
# ── UI / Genel ────────────────────────────────────────────
installer = "PisiLinux Kurulum Aracı"
app_name = "YALI"
+1 -2
View File
@@ -113,7 +113,6 @@ impl std::fmt::Display for PartitionTableType {
/// Manuel bölümleme için desteklenen dosya sistemleri.
#[derive(Clone, Debug, PartialEq)]
#[allow(dead_code)]
pub enum FsType {
Ext4,
Ext3,
@@ -123,6 +122,7 @@ pub enum FsType {
Ntfs,
Swap,
Lvm, // LVM fiziksel bölüm (PV)
#[allow(dead_code)]
LvmLv, // LVM mantıksal bölüm (LV)
}
@@ -150,7 +150,6 @@ impl std::fmt::Display for FsType {
/// LVM Volume Group yapılandırması.
#[derive(Clone, Debug, Default)]
#[allow(dead_code)]
pub struct VolumeGroup {
pub name: String,
pub pv_devices: Vec<String>, // PV olarak kullanılacak bölüm aygıtları
+1849 -201
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -2
View File
@@ -52,8 +52,7 @@ pub fn c_sidebar_text() -> Color32 { color_from_hex(SIDEBAR_TEXT.load(Ordering::
pub fn c_footer_bg() -> Color32 { color_from_hex(BG_FOOTER.load(Ordering::Relaxed)) }
pub fn c_root_bg() -> Color32 { color_from_hex(BG_ROOT.load(Ordering::Relaxed)) }
pub fn c_keyboard_bg() -> Color32 { color_from_hex(KEYBOARD_BG.load(Ordering::Relaxed)) }
//pub fn select_disk_label() -> Color32 { color_from_hex(0xFFFFFF) }
pub fn select_disk_label() -> Color32 { color_from_hex(0xFFFFFF) }
pub fn set_theme_mode(is_dark: bool) {
if is_dark {