Repository navigation
feat(threads): track and switch branches from thread details - #422
Merged
Merged
Conversation
nixuuu
added a commit
that referenced
this pull request
Nov 9, 2026
Picker options at the start and end of a list could put their hover background directly against the search/footer dividers. Lists now keep a 4 px vertical inset inside the scrolling content, with matching scroll padding for keyboard navigation. The inline combobox scrolls a wrapper around its padded list. This lets sticky group headings remain flush with the search divider after the inset scrolls away. Menu padding also lives inside its content, so a phone sheet's safe-area padding cannot remove the last row's inset. Mobile `PickerSheet` gets the same top inset through a TS-only style change. **Scope and audit** - Project, worker, workspace and branch pickers (including the existing-thread branch picker from #422) inherit the shared `Combobox` fix. The model list uses it too; its provider rail keeps its existing inset and adds scroll padding. - Settings selects and slash/mention lists reuse the list inset. Both desktop autocomplete popovers and phone inline suggestions have scroll padding on their actual scroll container. - Permission/thread action menus and submenus retain their inset during keyboard navigation. Effort uses an already padded slider panel and needs no list change. - The updates center already has vertical content padding; it now has matching scroll padding. Directory browsing already has an inset. Other settings/credential/proxy choices inherit `Select`. - `docs/ui-scale.md` records the scrolling-content rule. No UI copy changed; copy audit is not applicable. **Verification** - Passed: frozen Bun install, monorepo typecheck, root lint, format check, web build, and focused ESLint for `apps/mobile/src/ui/Picker.tsx`. - Real Chromium checks used the actual shared components in a temporary isolated fixture on an unused port: light/dark, 1440 px desktop and 390 px phone widths, 2/40 options, short and long labels, scrolling/non-scrolling lists, with/without a search header and footer. Checked first/last hover and keyboard-active rows, top/bottom scrolling, grouped sticky headings, model rail Home/End, and submenu ArrowRight/ArrowLeft focus return. Edge insets stay about 4 px; scrolled sticky headings meet the viewport with an opaque background and no seam. No UI test suite or screenshots were added. - Generated production-profile fingerprints with `bunx [email protected] fingerprint:generate --platform <ios|android> --build-profile production --json --non-interactive` on current `dev` and this branch; both platforms are unchanged. - The extra Expo ESLint command has 36 existing errors and 3 warnings on `dev`, outside the changed picker. The changed mobile file passes focused ESLint. Native visual checks were not run. - Full local `check:tmp` was intentionally not run on the shared machine; CI remains the gate. Fixes: #115 Related: #422
nixuuu
added a commit
that referenced
this pull request
Nov 10, 2026
## Change The thread-details branch picker had a 128 px minimum height, a chevron aligned with the label, and an upstream name that wrapped into awkward fragments. Render Branch and Worktree with shared compact field layouts on web/desktop and mobile: no resting fill, content-driven height, reserved value-line chevron, and middle-truncated upstream names with the full value in a web tooltip or selectable native text. Running/offline/unsupported states keep the same muted row and an explanation. A dirty result from the existing branch-list request disables branch selection and shows “Commit or stash changes before switching branches.” Reopening refreshes the status after cleanup; the worker still enforces a fresh status before switching. Native picker options use compact single-line labels. Fixes: #422 ## Verification - `bun install --frozen-lockfile`, `bun run gen:check`, `bun run typecheck`, `bun run lint`, `bun run format:check`, and `bun run --filter @canopy/web build` passed. No UI tests added; full `check:tmp` left to CI as requested. - Inspected the production placement components in Chromium using an isolated temporary fixture with mocked branch responses: light/dark at 1280, 768, and 390 px, plus 320 px light; short, typical, and very long branch/base names; detached HEAD; running, unsupported, offline, and dirty states; hover, keyboard focus, Enter, Escape, and focus return. The typical branch row is 84 px including its three text lines, with no spare bottom area; a checkout without a base line is 60 px. No horizontal overflow at phone widths. Fixtures and images are excluded from the commit. - Checked picker search, selected current-branch check, local/remote groups, long option tooltips, phone sheet, and a 32-option scrolling list. List padding and scroll padding are 4 px; sticky headings meet the search divider, and the final option retains a 4 px bottom inset. - `bunx [email protected] fingerprint:generate --platform ios --build-profile production --json --non-interactive` and the equivalent Android command passed before and after the changes. iOS remains `6ddec9ef559ee0095ac33e94ff9418a942053b17`; Android remains `5f6eae3ab278f1cd543e9ed763f923a319b65ec9`. Mobile changes are TS/TSX only. Native device rendering and live gateway/worker flows were not exercised. ## Copy audit (`docs/copy.md` §8) - Existing Branch, Worktree, from, picker/search labels, errors, and detached-HEAD text are unchanged. Existing availability reasons move from inline text to a hover/focus/long-press tooltip on web, keeping the row compact and keyboard reachable; native reasons remain inline. - No dirty-status explanation → “Commit or stash changes before switching branches.” One short action sentence identifies how to restore availability; the same wording is used on both clients. No new glossary terms or decorative copy. Checked short, typical, and long names at desktop and phone widths; text and accessibility state convey availability alongside color.
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Thread details cut off both the working directory and current branch, and repeated model, permission, status and usage information already available elsewhere. The first commit removes that redundant block from web/desktop and mobile; the feature commit gives placement its own readable rows and a safe branch picker.
~, emphasize the folder name and reserve space for copying. Show the full current branch, its base on a separate line, and detached HEAD explicitly.Ahead/behind remains available in Manage worktree; the placement section does not add periodic git scans. Contracts are additive,
WORKER_LINK_PROTOCOLremains 1 and there is no database migration.Verification
feature/agent-email-channel-implementujesz-docelowa-architekture-agenta-ai, detached HEAD, searchable branch selection and successful switching from desktop and phone overlays. No horizontal overflow or leftover section seams. The reserved branch area measured 128 px before and after the tested short/long switch.2a0ef03a2a0fda8e7fad2e3df8609803d2edbda3, Androidc5c880ae8d0f5d7bc867fcbaf8f756b2ca56a07d; both unchanged. Native device visuals were not checked.bun install,bun run gen:check,bun run typecheck,bun run lint,bun run format:check, the web build andbun run check:tmp --timeout 30000(1924 pass, 161 skip, 0 fail across 343 files; nothing left in the test temp directory). The initial 5-second-default run timed out in two existing plugin/skill tests; both passed in the complete run with a 30-second default.ThreadScreen). CNG prebuild fails in@expo/image-utils/jimp-compactwithCould not find MIME for Buffer <null>; native config and source assets are unchanged. Generated native folders were removed. This PR does not change native dependencies/configuration to address that separate issue.Copy audit (§8)
Related: #392, #395