The session header takes a quarter of the window and mixes text and icon buttons

Open
#394 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
52/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
swift
Domain
design, desktop

Research direction

Read Sources/SwitchboardApp/SessionView.swift, especially SessionView.header at lines 224–314, and inspect how the window toolbar is defined. The issue also notes open PRs #375 and #260 change this file, so review their overlap before starting. Done when the session actions appear as labeled toolbar items, the header follows the specified two-line layout, and the PR, issue, and branch links share one truncated line.

Written by the indexing model from the issue text.

Description

The session header takes about a quarter of the window's height and mixes text buttons with icon-only buttons.

What happens

SessionView.header stacks the name with its badge, "claude running/stopped", and the permission mode on one line. Below come the reason (two lines), the PR link, the issue, a cleanup note, and the branch and folder. A long name wraps too: a 1024 pt capture of main shows "Typo-tolerant search / with rate-limit- / headers" on three lines, and the header runs to about 150 of 700 pt. On the right, Resume, Pause, and Done are text buttons, and they sit next to icon-only Notes, side panel, and trash buttons.

Why it matters

Mac apps put actions on the selected item in the window toolbar, with labels, and keep the content header short. Here the terminal, which is the reason to open a session, gets less room, and the two button styles make it unclear which controls go together. #390 plans to add the session's account to this header, which would make it taller still.

Suggested fix

  • While a session shows, move Stop/Resume, Pause, Done, the side panel toggle, and Delete into the window toolbar as ToolbarItems with labels.
  • Keep the header to two lines: the name (one line, tail truncation) with its badge, then the reason.
  • Show the PR, issue, and branch as one line of links with tail truncation.

This is finding 4 of the #295 UI once-over. Open PRs #375 and #260 change SessionView.swift.

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.