Skip to content

Browse rail: click an org to expand it, and an "only my repos" scope - #310

Merged
Mpdreamz merged 5 commits into
mainfrom
feature/browse-rail-tree
Nov 19, 2026
Merged

Mpdreamz merged 5 commits into
mainfrom
feature/browse-rail-tree

Conversation

@Mpdreamz

Copy link
Copy Markdown
Contributor

What

  • Click an org in the rail to scope Browse to it and expand it: its checked-out repos show as the small indented squares. Clicking the already-selected org collapses it (no refetch); the chevron alone toggles without changing scope. An org opens once when you first pick it, and a collapse you make sticks. The open set is remembered (UserDefaults). za toggles the current org (browse.scope.toggle). The third-width sheet shows the same tree; the half-width icon rail is unchanged.
  • "Only my N repos" is the first row under an open org, and a row per checked-out org in the quick jump: it searches just the repos you have checked out in that org (repo: qualifiers, chunked to the 240-character limit like the default scope, each chunk through the same retry ladder), so a few checkouts in a huge org do not flood the list. It stores only the org name and follows your checkouts live; it is never a saved repo list. The chip reads "acme · only my 3 repos". The guard accepts it as an org-level place and still refuses an org with no checkout. Old scope and query data still decodes.
  • Docs and shots: docs/github/browse.md, the keyboard reference, regenerated github/browse* shots and a new github/browse-rail-expanded.

Verified

mise run lint, swift build, the full suite (3057 tests), mise run text-check, mise run bundle, scripts/tutor-check.sh, the docs build (0 warnings); the rail, rail-expanded, scope and third-width shots read against the design; eight mutations of the new logic each failed the suite (the expand rule, click vs toggle, auto-open-once, the chunk source, contains, the palette row, the guard, the chip count).

Not tested

No real window was driven: the chevron's tap winning over the row's tap and persistence across launches are unexercised. The per-chunk retry reuses the existing pages(), which is tested for the default scope, not separately for this one. za was not checked for clashes when Browse is layered over another keymap.

🤖 Generated with Claude Code

Mpdreamz and others added 5 commits November 19, 2026 19:12
…y what is open

BrowseScope gains ownRepos(org): searched as the repo: qualifiers of the checkouts, split into groups by the default
scope's limits, allowed by the guard, shown in the chip and the palette. BrowseRailScopes shows what is under an org
only when it is expanded; BrowseRailExpansion decides click, chevron and the one automatic opening.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ail, the sheet and the jump

The expanded set is kept per Mac in UserDefaults (never in the fake world). browse.scope.toggle (za) opens or closes
the current org.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@github-actions github-actions Bot added the enhancement New feature or request label Nov 19, 2026
@Mpdreamz
Mpdreamz merged commit 09a14f7 into main Nov 19, 2026
6 checks passed
@Mpdreamz
Mpdreamz deleted the feature/browse-rail-tree branch November 19, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant