Skip to content

fix(web): keep the composer context row tidy with long names - #115

Merged
nixuuu merged 1 commit into
devfrom
fix/composer-context-row
Nov 4, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/composer-context-row

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 4, 2026

Copy link
Copy Markdown
Member

The row under the composer (project · computer · workspace · branch · permission) broke into messy two-line layouts with longer names, and the base-ref picker had seams and repeated groups.

  • Layout: the "where" pickers pack left at natural widths with a small gap (truncating sensibly: branch names keep both ends, e.g. feat/est…-typesafe; machine names shortened with the full name in tooltip/menu); the permission picker stays anchored right; pairs only fall into a grid where they wrap. Switching Current checkout ↔ New worktree animates the branch picker in/out (reduced-motion aware). Same layout for new and existing threads and the new side-thread view (feat(web): start side threads from the composer #112).
  • Notes → icons: sentences under the composer (computer offline, scratch directory, delivery info, side-thread blockers) became contextual icons with full tooltips (tap on touch, announced to screen readers); blocking reasons are on the disabled send button's tooltip.
  • Base-ref picker: local and remote branches each grouped once; sticky section headers sit flush under the search field with no see-through gap; the "default" badge isn't clipped. Same sticky-header fix across shared grouped lists.
  • AGENTS.md: UI rule to check short, typical and long texts at desktop, narrow and phone widths, and to check overlays/sticky headers/scroll areas for gaps.

Checks: install, typecheck, lint, format:check, check:tmp (1,069 pass, 154 skip, 0 fail before rebase), web build. Browser checked short, typical and long cases at 1440/900/390/320 px, light/dark (112 screenshots), scrolled pickers.

Use stable location slots with permission anchored at the right, preserve useful text when truncating, and move composer notes into accessible contextual help. Group base refs once and remove sticky-header seams across shared list controls.

Fixes: #82
Fixes: #74
@nixuuu
nixuuu merged commit d7a3349 into dev Nov 4, 2026
15 of 17 checks passed
@nixuuu
nixuuu deleted the fix/composer-context-row branch November 4, 2026 22:44
nixuuu added a commit that referenced this pull request Nov 7, 2026
No beta or stable has ever been cut: `next` and `main` are still at
57b87e5 while `dev` is ~290 commits ahead.

The dev → next plan shows why. Besides a temporary explicit hold (#262
`Fixes: #26`, released once #262 soaks), the fallback blame of web fix
#115 attributes its two adjacent lines in `AGENTS.md` to b7845036 `docs:
add AGENTS.md…`, the second commit after `next`. A hold on that commit
holds the entire suffix, permanently, because #115 is re-checked every
run.

A docs/test/ci/chore/style commit changes no shipped behaviour, so it
can't be the change a fix corrects. Blame now never attributes to those
commit types, and root `AGENTS.md`, `CLAUDE.md`, `README.md` and
`CONTRIBUTING.md` join the shared files blame ignores. Explicit
`Fixes:`/`Refs:` links and reverts still hold as before.
`docs/release.md` describes the rule.

Verified: new policy test (types, root files, refactor still holdable,
explicit link to a docs commit still holds); `promotion-policy`,
`promotion-attribution` and `promote` tests pass (38); typecheck, lint,
format clean.

Copy audit: no UI text changed.
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
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.

1 participant