Add help screen, connection indicators, README and release builds (M7)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-20 19:11:07 +02:00
co-authored by Claude Sonnet 5.5
parent f928427993
commit 3f6e595719
8 changed files with 229 additions and 8 deletions
+48
View File
@@ -0,0 +1,48 @@
package ui
import (
"github.com/gdamore/tcell/v2"
"github.com/rivo/tview"
)
const helpText = `[yellow]Global[-]
F1-F4, Alt+1-4, Tab switch view
?, F9 this help (F9 works while typing)
q, Ctrl+C quit
Esc close dialog / go back
[yellow]Movies and Series[-]
/ focus the search box
Enter, a add the selected title
i interactive release search (library titles)
[yellow]Release list[-]
Enter, g grab the selected release
s cycle sort (best, size, age)
f hide rejected releases
[yellow]Downloads[-]
h next panel
p pause / resume the SABnzbd queue
d delete the selected job or entry
b remove from arr queue + blocklist
t retry a failed download (history)
r refresh now
[yellow]Connections[-]
`
// showHelp opens the key reference together with the connection state.
func (a *App) showHelp() {
tv := tview.NewTextView().SetDynamicColors(true).SetScrollable(true)
tv.SetBorder(true).SetTitle(" Help — Esc to close ")
tv.SetText(helpText + a.serviceSummary())
tv.SetInputCapture(func(ev *tcell.EventKey) *tcell.EventKey {
if ev.Key() == tcell.KeyEsc || (ev.Key() == tcell.KeyRune && (ev.Rune() == 'q' || ev.Rune() == '?')) {
a.closeModal()
return nil
}
return ev
})
a.openModal(tv, 76, 34)
}