detached 24d3cbc

fix(installer): auto-continue when network check passes

The network check now automatically proceeds to the preflight form when
successful, instead of requiring the user to press ENTER. This improves
the installation flow by only requiring user interaction when the
network check fails and needs to be retried.
commit
24d3cbc3972f73393a4e75953ab5fff2dacaaff2
author
bnema · · 2025-10-28 21:01 UTC
parent
11be03a
signature
GPG Unverified2B82207D370127A0 The key is unknown
1 file · +6 -3
M internal/ui/model.go +6 -3
@@ -164,10 +164,13 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
164164 m.networkErr = msg.err
165165 if msg.err != nil {
166166 m.logger.Warn("Network check failed", "error", msg.err)
167- } else {
168- m.logger.Info("Network check passed")
167+ return m, nil
169168 }
170- return m, nil
169+ // Network check passed - automatically continue to preflight form
170+ m.logger.Info("Network check passed - continuing automatically")
171+ m.state = StatePreflightForm
172+ m.currentForm = CreatePreflightForm(m.config, m.formBuilder, m.system)
173+ return m, m.currentForm.Init()
171174
172175 case phaseCompleteMsg:
173176 switch {
@@ -164,10 +164,13 @@ func (m *Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
164 m.networkErr = msg.err164 m.networkErr = msg.err
165 if msg.err != nil {165 if msg.err != nil {
166 m.logger.Warn("Network check failed", "error", msg.err)166 m.logger.Warn("Network check failed", "error", msg.err)
167- } else {167+ return m, nil
168- m.logger.Info("Network check passed")
169 }168 }
170- return m, nil169+ // Network check passed - automatically continue to preflight form
170+ m.logger.Info("Network check passed - continuing automatically")
171+ m.state = StatePreflightForm
172+ m.currentForm = CreatePreflightForm(m.config, m.formBuilder, m.system)
173+ return m, m.currentForm.Init()
171 174
172 case phaseCompleteMsg:175 case phaseCompleteMsg:
173 switch {176 switch {

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 0

    ↑↓ moveenter openesc close