Skip to content

fix(zbugs-swift): open the first issue on launch on a Mac or an iPad - #183

Merged
tmm merged 1 commit into
mainfrom
fix/zbugs-swift-select-first-issue
Nov 12, 2026
Merged

tmm merged 1 commit into
mainfrom
fix/zbugs-swift-select-first-issue

Conversation

@tmm

@tmm tmm commented Nov 12, 2026

Copy link
Copy Markdown
Member

With no saved selection, zbugs-swift's detail column said No Issue Selected until you clicked an issue. zbugs-gpui and zbugs-rune open at the issue they saved.

Now, when nothing is selected, a Mac or an iPad selects the list's first issue as soon as the list has rows. A saved selection still wins. An iPhone (compact width) still opens on the list, so no detail view gets pushed over it.

Checked on a Mac (Xcode 26.1.1) against apps/zbugs-swift/server: the UI test's launch screenshot ("1 Issues") shows the first issue open in the detail column.

Amp-Thread-ID: https://ampcode.com/threads/T-4feab53a-cd8c-4a4a-94d5-b776ada08725

With no saved selection, the detail column said No Issue Selected until
an issue was clicked, while zbugs-gpui and zbugs-rune opened at the issue
they had saved. Now a Mac or an iPad selects the list's first issue once
the list has rows. A saved selection still comes first, and an iPhone
still opens on the list rather than over it.

Amp-Thread-ID: https://ampcode.com/threads/T-4feab53a-cd8c-4a4a-94d5-b776ada08725
Co-authored-by: tmm <tmm@tmm.dev>
@tmm
tmm merged commit 51c7d75 into main Nov 12, 2026
24 checks passed
@tmm
tmm deleted the fix/zbugs-swift-select-first-issue branch November 12, 2026 22:14
tmm added a commit that referenced this pull request Nov 13, 2026
…ne (#190)

As zbugs-swift does since #183: with no saved selection, zbugs-gpui and
zbugs-rune opened with no issue selected. Now each selects the list's
first issue once the list has rows. A saved selection still comes first,
and it happens once per launch, so deleting the selected issue later
still leaves none selected.

The e2e runs check it: zbugs-gpui's online run starts with nothing saved
and waits for the list's first issue to be selected, and e2e.sh launches
zbugs-rune with empty settings and compares the selection it saves with
the first open issue in Postgres.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1d36c-4ffc-7241-95ec-d56d1643dc77

Co-authored-by: Amp <amp@ampcode.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants