docs: document SFTP stacked mode fix plan for next agent

This commit is contained in:
swanadiva
2026-06-23 19:34:55 +07:00
parent 0ab4b5211d
commit c114b2435c
+17
View File
@@ -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 (60100 / 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