diff --git a/PROJECT_STATE.md b/PROJECT_STATE.md index 4715dbf..2428294 100644 --- a/PROJECT_STATE.md +++ b/PROJECT_STATE.md @@ -63,6 +63,23 @@ ✅ Fixed bug: key_list_tab.go & snippet_list_tab.go dropped last row (`rows[:len(rows)-1]` excluded real data) ✅ Breakpoints: compact (<60 cols / mobile), medium (60–100 / tablet), wide (≥100 / desktop) +### Next: SFTP Stacked Mode Fix +⏳ **File**: `pkg/tui/sftp_browser_tab.go` +⏳ **Masalah**: Stacked mode (<50 cols) render 2 pane vertikal, masing-masing + `t.height-6` entries. Total 2x tinggi terminal. Pane kedua menutupi pane pertama. + Tab switch bekerja tapi tidak terlihat karena cuma 1 pane visible. +⏳ **Solusi**: + - Stacked mode: render cuma ACTIVE pane (bukan 2 pane) + - Tambah pane indicator bar: `[Local] Remote` (active disorot hijau) + - Side-by-side mode (>=50 cols): TIDAK DIUBAH, tetap 2 pane +⏳ **Detail implementasi**: + 1. Di `View()`, ganti blok `if t.width < 50`: + - Render cuma `t.renderPane(activePane, paneW)` bukan keduanya + - Tambah indicator bar sebelum pane: active pane disorot `StatusBarStyle`, inactive `SubtitleStyle` + 2. `maxDisplay` tidak perlu diubah (cuma 1 pane, full height) + 3. Footer tetap sama (sudah wrapped) +⏳ **Prioritas**: HIGH + --- ## 📊 Current Project Status