Inbox and Issues nest a split view in the detail column, so the detail sits at its minimum width

Open
#392 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
swift
Domain
design, desktop

Research direction

Read Sources/SwitchboardApp/ContentView.swift and ListDetailSplit.swift, then inspect InboxView.swift and KeyboardNavigation.swift to understand the current columns and list behavior. The issue offers a three-column NavigationSplitView or a narrower-width visibility change, with moving the Inbox list to List as another possible part. Done means the Inbox and Issues views avoid the cramped detail layout while preserving the intended Board and session layouts; coordinate around the open PRs that also change ContentView.swift.

Written by the indexing model from the issue text.

Description

The Inbox and Issues views nest an HSplitView inside the window's two-column NavigationSplitView. At 1024 pt the sidebar, the list, and the detail all show, and the detail gets only its 340 pt minimum.

What happens

  • ContentView builds a two-column NavigationSplitView with a 300 pt ideal sidebar.
  • ListDetailSplit puts the Inbox or Issues list (280 pt ideal) and the detail (340 pt minimum) in an HSplitView inside the detail column.
  • The Inbox list is a hand-built LazyVStack (InboxView.swift:93), not a List. It only gets the keyboard behavior that KeyboardNavigation.swift adds, without system selection or type-select.

A 1024 pt capture of main shows three columns of about 300, 360, and 360 pt, and the detail header truncates (#391).

Why it matters

macOS apps with a sidebar, a list, and a detail use a three-column NavigationSplitView. The system then collapses the sidebar at narrow widths and saves column widths on its own. Two of #364's items come from this nesting. The list/detail divider runs up through the toolbar (item 2). The list's width isn't sticky (item 3), because this HSplitView doesn't save its divider position.

Suggested fix

Make the window a three-column NavigationSplitView (sidebar, content list, detail) for the Inbox and Issues, and keep two columns for the Board and a session. A smaller first step is to set columnVisibility to .doubleColumn below about 1200 pt so the sidebar hides at narrow widths. Moving the Inbox list to a List with selection could come in the same change.

This is finding 2 of the #295 UI once-over. Open PRs #375, #382, and #383 change ContentView.swift, so plan it after they merge.

Dominant language
Swift
Stars
0
Forks
0
Avg merge
6h 15m
Merged PRs (30d)
308

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from haacked/switchboard

All issues in haacked/switchboard

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.