feat: the status pane counts repos with secret files next to the accounts (#27)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit was merged in pull request #27.
This commit is contained in:
kebandClaude Opus 5.5 committed 2026-10-12 00:07:00 +02:00
1 parent ea85c4c8a3
commit a6293178b6
2 files changed
+17 -1

No files matched your search

+12
View File
@@ -1181,6 +1181,18 @@ func TestDetailsFollowFocus(t *testing.T) {
}
}
func TestStatusLineCountsRepos(t *testing.T) {
t.Parallel()
d := newDriver(t, fake.Azure(0), fake.Repos())
if line := strings.Split(d.screen(), "\n")[1]; !strings.Contains(line, "1 account · 3 repos") {
t.Errorf("status line: %q", line)
}
d = newDriver(t, fake.Azure(0))
if line := strings.Split(d.screen(), "\n")[1]; strings.Contains(line, "repo") {
t.Errorf("repos counted without any: %q", line)
}
}
func TestStatusPane(t *testing.T) {
t.Parallel()
var opened []string