fix(tui): wire up [e] edit key in detail panel
CI / test (pull_request) Successful in 2m38s
CI / lint (pull_request) Successful in 56s
CI / vulncheck (pull_request) Successful in 46s
CI / test (push) Successful in 2m40s
CI / lint (push) Successful in 56s
CI / vulncheck (push) Successful in 51s

The detail panel footer showed [e] Edit but handleDetailKey had no
case for it. Route to handleEditItem() like the dashboard does.
This commit was merged in pull request #55.
This commit is contained in:
2026-06-04 12:36:24 -04:00
parent 5b39be8eb2
commit 9e15b369d3
+2
View File
@@ -246,6 +246,8 @@ func (m *Model) handleDetailKey(msg tea.KeyMsg) (tea.Model, tea.Cmd) {
switch msg.String() { switch msg.String() {
case "i", "esc": case "i", "esc":
m.state = stateDashboard m.state = stateDashboard
case "e":
return m.handleEditItem()
case "h": case "h":
if m.cursor < len(m.sites) { if m.cursor < len(m.sites) {
site := m.sites[m.cursor] site := m.sites[m.cursor]