detached 697b5f3

fix(ui): restore tab bar state after popup rollback

commit
697b5f38df601b6bf35918e5b5380e498e83b484
author
brice · · 2026-07-27 08:46 UTC
parent
b95b119
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
2 files · +3 -2
M internal/ui/coordinator/content/popup_hosting.go +2 -2
@@ -2,7 +2,7 @@ package content
22
33 import (
44 "context"
5- "fmt"
5+ "errors"
66 "sync"
77
88 "github.com/bnema/dumber/internal/application/dto"
@@ -99,7 +99,7 @@ func (pm *popupManager) adoptPopupInBrowserWindow(
9999 })
100100 if err != nil || result.WindowID == "" {
101101 if err == nil {
102- err = fmt.Errorf("%s", emptyWindowError)
102+ err = errors.New(emptyWindowError)
103103 }
104104 logBrowsingContextFailure(*log, normalized, decision, failureCode, err)
105105 return false
@@ -2,7 +2,7 @@ package content
2 2
3 import (3 import (
4 "context"4 "context"
5- "fmt"5+ "errors"
6 "sync"6 "sync"
7 7
8 "github.com/bnema/dumber/internal/application/dto"8 "github.com/bnema/dumber/internal/application/dto"
@@ -99,7 +99,7 @@ func (pm *popupManager) adoptPopupInBrowserWindow(
99 })99 })
100 if err != nil || result.WindowID == "" {100 if err != nil || result.WindowID == "" {
101 if err == nil {101 if err == nil {
102- err = fmt.Errorf("%s", emptyWindowError)102+ err = errors.New(emptyWindowError)
103 }103 }
104 logBrowsingContextFailure(*log, normalized, decision, failureCode, err)104 logBrowsingContextFailure(*log, normalized, decision, failureCode, err)
105 return false105 return false
M internal/ui/coordinator/tab.go +1 -0
@@ -548,6 +548,7 @@ func (c *TabCoordinator) CreateWithPane(
548548 if target.MainWindow != nil && target.MainWindow.TabBar() != nil {
549549 target.MainWindow.TabBar().RemoveTab(output.Tab.ID)
550550 }
551+ c.UpdateBarVisibility(ctx, target)
551552 if c.onTabClosed != nil {
552553 c.onTabClosed(ctx, target, output.Tab)
553554 }
@@ -548,6 +548,7 @@ func (c *TabCoordinator) CreateWithPane(
548 if target.MainWindow != nil && target.MainWindow.TabBar() != nil {548 if target.MainWindow != nil && target.MainWindow.TabBar() != nil {
549 target.MainWindow.TabBar().RemoveTab(output.Tab.ID)549 target.MainWindow.TabBar().RemoveTab(output.Tab.ID)
550 }550 }
551+ c.UpdateBarVisibility(ctx, target)
551 if c.onTabClosed != nil {552 if c.onTabClosed != nil {
552 c.onTabClosed(ctx, target, output.Tab)553 c.onTabClosed(ctx, target, output.Tab)
553 }554 }

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 8

Tags 42

↑↓ moveenter openesc close