Skip to content

feat(zbugs-gpui): three-column layout as zbugs-swift's - #171

Merged
tmm merged 1 commit into
mainfrom
zbugs-gpui-layout
Nov 11, 2026
Merged

tmm merged 1 commit into
mainfrom
zbugs-gpui-layout

Conversation

@tmm

@tmm tmm commented Nov 11, 2026

Copy link
Copy Markdown
Member

Moves zbugs-gpui to zbugs-swift's macOS layout (apps/zbugs-swift/Sources/ZBugsUI/RootView.swift), so the three macOS apps share one structure:

  • Sidebar (collapsible with the panel button): the filters as labeled rows, as Swift's grouped form. Status, Sort and Order come first, then the Created by Me and Assigned to Me switches when logged in. A second group holds GPUI's extra filters: Project, Creator, Assignee and Labels, with the same searchable pickers as before.
  • List: a toolbar with "Open/Closed/All Issues", the count, the connection dot with its label (Connected, Connecting, Offline, Log In Again, Error), and icon buttons for a new issue, select-to-delete and the account menu. Rows show Swift's green circle or purple check, the title, and #id · creator · relative time with label chips, plus GPUI's unread dot.
  • Detail: a toolbar with Close/Reopen, Edit and Delete icons and the search field at the window's end. Below it come the title, "Open by …", the metadata pickers, the label chips, the body, the comments and the comment box, in a column at most 760 pt wide.
  • The toolbars replace the title bar: the window has a transparent title bar, and dragging a toolbar moves the window.
  • The theme follows the system's light or dark appearance, live (Theme::sync_system_appearance on observe_window_appearance).

Five Lucide icons that GPUI Kit's default set lacks (circle, square-pen, pencil, list-checks, trash) come in through icon_assets!, with no new dependencies. Pixels and colors stay GPUI-native.

Swift (reference)

zbugs-swift macOS

GPUI before

zbugs-gpui before

GPUI after

zbugs-gpui after, light

Dark, following the system:
zbugs-gpui after, dark

Sidebar collapsed:
zbugs-gpui after, sidebar collapsed

Status set to Closed, and Created by Me switched on:
zbugs-gpui after, closed
zbugs-gpui after, created by me

Checked on macOS 27: cargo clippy with and without e2e, cargo test, and the CI end-to-end run (online, the database row check, and offline) all pass.

A collapsible sidebar with the filters as labeled rows (Status, Sort,
Order, Created by Me and Assigned to Me, then Project, Creator,
Assignee and Labels), the list with its title, count, connection and
new-issue, select and account buttons in its toolbar, and the issue
with close, edit and delete icons and the search in its toolbar. The
toolbars take the title bar's place. The theme follows the system's
light or dark appearance.

Amp-Thread-ID: https://ampcode.com/threads/T-cbacad36-05e5-4611-baca-5ce275bfe755
Co-authored-by: tmm <tmm@tmm.dev>
@tmm
tmm merged commit 3a700df into main Nov 11, 2026
16 checks passed
@tmm
tmm deleted the zbugs-gpui-layout branch November 11, 2026 22:44
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