Skip to content

fix(github): make the pull request picker compact - #593

Merged
nixuuu merged 1 commit into
devfrom
fix/compact-pr-picker
Nov 12, 2026
Merged

nixuuu merged 1 commit into
devfrom
fix/compact-pr-picker

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

The Link pull request picker used three-line rows, a wrapping status column and a separate URL form button. Web/desktop and mobile now use two-line rows with compact branch/linked icons, short ages, reserved status space and a single header containing the repository, optional account switcher and Open/All control.

Search uses “Search or paste a link”. A number or GitHub PR URL adds “Link #123” or “Link ” as the first selectable result. The existing Combobox handles keyboard navigation. Direct links use the existing owner-scoped gateway action; failed direct links retain the repository-access form. The separate “Link by URL” button is removed. Mobile changes are JavaScript only.

Fixes: #553

Verification

  • Rebased on current dev, including fix(threads): keep final message actions above the composer #589 and feat(github): add a compact sticky pull request header #592. bun install --frozen-lockfile, gen:check, typecheck, lint, format:check and the web build passed on the dedicated review computer with nice -n 10. git diff --check passed. GitHub CI runs the full test shards with their temp-directory checks. No web UI tests were added or run.
  • Reviewed actual picker components in one Chromium session using temporary in-memory API fixtures: 0, 1 and 50 PRs; short and long titles, branches and account names; current branch + linked icons; Open/All; account selection; internal scrolling; numeric and URL linking with the keyboard; failed-link recovery; URL linking without a GitHub remote. Covered light/dark, desktop 1280×800 and phone 390×844, plus a 320px width check. No real GitHub API calls. Browser review caught and fixed long account-name overflow; the 390px page has no horizontal overflow. Temporary fixture files and processes were removed.
  • EAS CLI 27.4.1 production fingerprints generated locally with nice -n 19 match dev: iOS 6ddec9ef559ee0095ac33e94ff9418a942053b17, Android 5f6eae3ab278f1cd543e9ed763f923a319b65ec9. Mobile changes are JavaScript only. The native mobile sheet was typechecked but not reviewed in a simulator.

Copy audit — docs/copy.md §8

  • “fix(web): make connector setup instructions actionable #123, title, branch, author or URL” → “Search or paste a link”: the maintainer-requested short search hint retains the accessible “Find a pull request” label.
  • “Link by URL” → first result “Link fix(web): make connector setup instructions actionable #123” / “Link ”: verb-led actions in sentence case; no duplicate input or permanent footer action.
  • Visible “Current branch”, “Yours” and “Linked” text → labelled icons (tooltips on web, accessible labels on mobile). Reserved space prevents status changes from shifting the title. Long metadata uses truncation and the shared compact age formatter.
  • Existing connection/access/rate-limit messages and recovery actions remain. No new glossary terms, jargon, humor, or color-only status cues. Short/typical/long text was reviewed across desktop/phone and light/dark. Audit checklist §8: sentence case and concise actions, glossary unchanged, verb-led linking actions, actionable errors, concise empty states, no duplicate status text, dependency recovery preserved, no “soul” copy, long names checked, icon states have accessible labels.

@nixuuu
nixuuu force-pushed the fix/compact-pr-picker branch 3 times, most recently from 6923593 to ac1b15e Compare November 12, 2026 22:38
@nixuuu
nixuuu force-pushed the fix/compact-pr-picker branch from ac1b15e to ff81b70 Compare November 12, 2026 22:40
@nixuuu
nixuuu marked this pull request as ready for review November 12, 2026 22:41
@nixuuu
nixuuu merged commit cafed16 into dev Nov 12, 2026
11 checks passed
@nixuuu
nixuuu deleted the fix/compact-pr-picker branch November 12, 2026 22:52
nixuuu added a commit that referenced this pull request Nov 12, 2026
## Change

Cite now inserts an atomic citation token at the composer's saved caret,
so quoted passages can sit between sentences. The floating action,
desktop selection context menu and shortcut use the same insertion path.
Tokens show a compact excerpt, reveal the full passage and source on
hover/focus, and open an editor with a source action. They survive
composer copy/paste and undo, render inline in sent user bubbles, and
replace the old tray on web and mobile. Mobile uses the existing JS text
badge editor without native changes and keeps the system selection menu.

The gateway stores UTF-16 ranges and expands each quote into a clearly
delimited block at that position for Claude, Codex and Grok. Proto
fields are additive; older clients retain their existing quote-note
format. Source references are owner-scoped, and queue editing preserves
or replaces citation ranges. Old saved drafts normalize to inline tokens
when opened.

The collapsed composer omits the separate citation count: excerpts
already appear in the first draft line. Attachment and mention counts
remain. Rebased on `dev` at `cafed16af`, retaining #589's measured
composer coverage and expand/collapse animations and #592/#593's PR
panel changes.

Related: #587

## Verification

- Passed: `bun install`, `bun run gen:check`, `bun run typecheck`, `bun
run lint`, `bun run format:check`, and the web build on the isolated
review host.
- Final focused gateway integration across the stack: 12 tests pass, 122
assertions, no temp leftovers. Covers all three fake CLIs, quote
order/placement and persistence, mention shifts, legacy clients, queued
edits/removal, invalid ranges, cross-owner rejection and cached PR
citations. Full GitHub CI is green: static checks, all four test shards
and web/Linux builds.
- Remote monolithic `check:tmp`: 2,540 pass, 166 opt-in skips, one
existing import memory-budget failure late in the long-lived process.
The unchanged 160 MB import test passed in isolation at +127 MB against
its 400 MB budget (11 ms scan). The full CI shards pass it too. Both
remote runs left no test temp directories.
- Manual Chromium review: 1, 3 and 10 citations at different positions;
edit, atomic deletion, undo/redo, composer copy/paste, long multiline
quotes, thread and bot source navigation, sent bubbles and reload.
Checked light/dark at desktop, narrow and phone widths. The desktop
context menu shows Cite/Copy text, inserts the citation, and restores
composer focus; Copy text was verified by pasting into the composer.
Final rebased build reviewed. No web UI test suite added.
- Final development-profile EAS fingerprints, generated with `nice -n
19`, match the bottom-layer baseline: iOS
`86872d18eade9d3c6e0c54b0c328bccd5e5d226c`, Android
`d67c35d4de5511168d4b7c568c1f42c5df4f293d`. The iOS fingerprint JSON
comparison is empty. Native project generation and both Android/iOS JS
exports pass. Expo Doctor passes 19/20 checks; its only finding is newer
patch versions for 13 unchanged dependencies. Native device interactions
have not been reviewed.

## Copy audit

- Tray controls → `Edit citation`, `Quoted passage`, `Comment
(optional)`, `Jump to source`, `Cancel`, `Save`: compact sentence case,
verb-led actions, and the existing citation/quote glossary distinction.
Updated the glossary definition for inline tokens.
- Icon-only excerpt → `Citation: <excerpt>` accessibility labels; full
passage, author, source kind and time remain available without relying
on color or icon shape.
- Missing-source message → `Could not find the source. Try loading
earlier messages.` (web) / `Could not find the source. Retry to load it
again.` (mobile): states the failure and a recovery action.
- Desktop native selection menu → `Cite` / `Copy text`, with the
existing shortcut hint. `Could not copy the text. Select it and try
again.` gives a recovery action; `Copied` confirms success.
- Removed redundant citation counters and the separate tray. No new
empty states, marketing copy, jargon, or decorative sentences. Short
excerpts, typical content and long multiline text reviewed in both
themes at the requested widths.
nixuuu added a commit that referenced this pull request Nov 12, 2026
)

## Change

Pull request comments, published and pending inline review comments,
review summaries, failed checks/jobs and displayed log excerpts now
offer **Send to agent**. The action adds a PR citation at the thread
composer's saved caret and focuses the composer, so the user can write
around it before sending. Web also offers Cite for a selected passage.
Mobile uses the existing JS text badge and editable-excerpt sheet, with
Cite in the item menu.

Tokens show a PR mark, author and excerpt. Their preview includes the
full quoted passage, repository/PR number, source URL, time and review
file/line. Sent bubbles retain the inline source. The gateway resolves
source metadata from the owner's selected account cache and current
access revision, requires the PR to remain linked to the destination
thread, and includes up to 8,000 characters of cached diff hunk context.
Sending or editing a queued message never fetches from GitHub. Proto
changes are additive.

Stacked on #591 using `gh stack`; the bottom PR targets `dev`. Both
branches were rebased onto `dev` at `cafed16af`, retaining #589's
composer coverage and motion changes plus #592/#593's PR header and
compact picker.

## Verification

- Generated contracts with `bun run gen`; changed files formatted and
linted individually on the local host.
- Added gateway → real worker → fake Claude/Codex/Grok CLI integration
coverage for text position, source metadata, bounded cached diff
context, persistence and no GitHub requests on send. Additional cases
cover failed checks/jobs/log excerpts, foreign-owner sources, missing
resources, unlinked PRs and revoked access revisions.
- Passed remotely: `bun install`, `bun run gen:check`, `bun run
typecheck`, `bun run lint`, `bun run format:check` and the web build.
Final focused gateway integration across both PRs: 12 tests pass, 122
assertions, no temp leftovers. Full GitHub CI is green: static checks,
all four test shards and web/Linux builds. One shard needed a retry
after a computer-move fixture connectivity failure; those cases also
passed in the full remote run.
- Remote monolithic `check:tmp`: 2,540 pass, 166 opt-in skips, one
existing import memory-budget failure late in the long-lived process.
The unchanged 160 MB import test passed in isolation at +127 MB against
its 400 MB budget (11 ms scan). The full CI shards pass it too. Both
remote runs left no test temp directories.
- Manual Chromium review with fixtures: failed check, failed job, log
excerpt, review summary, selected comment and inline code comment; icon
and item-menu actions; insertion between surrounding text; source
metadata; edit, atomic delete/undo; sending multiple source types in
order and inline sent bubbles. Reviewed light/dark, desktop/narrow/phone
widths with long titles and multiline quotes. The phone action closes
the PR sheet and keeps composer focus after navigation. Native device
interactions are unverified.
- Mobile changes are JS-only. Final development-profile EAS
fingerprints, generated with `nice -n 19`, match the bottom PR exactly
on both platforms: iOS `86872d18eade9d3c6e0c54b0c328bccd5e5d226c`,
Android `d67c35d4de5511168d4b7c568c1f42c5df4f293d`. The iOS fingerprint
JSON comparison is empty. Native project generation and both Android/iOS
JS exports pass. Expo Doctor passes 19/20 checks; its only finding is
newer patch versions for 13 unchanged dependencies. No native
configuration or dependency changes.

## Copy audit

- Actions: `Send to agent`, `Cite`, `Item actions`, `Open on GitHub`.
Sentence case, verb-led, shared across surfaces. Send to agent adds a
draft citation and does not submit a message.
- Citation tokens keep `Citation: <excerpt>` accessibility labels. The
preview names the repository, author, time and file/line without relying
on the icon or color.
- Recovery: `Citation source unavailable. Refresh the pull request and
add it again.` and `Quote limit reached. Remove a quote, then retry.`
Each explains the state and gives the next action.
- Reused existing edit/cancel/save copy and compact kit components. No
new empty states or marketing copy. Short, typical and worst-case
excerpts, long PR titles and multiline quotes reviewed at
desktop/narrow/phone widths in light/dark themes.
nixuuu added a commit that referenced this pull request Nov 12, 2026
Publish structured release notes alongside the existing static release
index so apps can explain an update without making GitHub API calls.
GitHub Releases remain the source of full release notes; no CHANGELOG or
update protocol changes.

This is the first layer of a two-PR stack. Merge both layers together
into dev.

## Changes

- The authenticated Pages generation step also writes
`releases/notes-v1.json`. Parse Angular Features, Bug Fixes and
Performance Improvements into type, scope, capitalized plain summary, PR
number and repository PR URL. Strip commit hashes and type prefixes;
retain at most 200 versions per channel and mark truncated history.
Merge the previously published Pages notes so GitHub's 10-nightly
retention does not erase the archive. Live bodies replace edited
versions. Only an initial HTTP 404 permits bootstrap; other archive-read
failures stop publication.
- Add a strict shared decoder and a Pages-only notes reader using the
existing 15-minute/ETag cache. Unavailable or invalid notes never fall
back to the GitHub API. The complete download index and installer
verification remain intact.
- Aggregate `(previous, current]` on the running build's channel, group
New / Improved / Fixed and deduplicate repeated PRs. Subtract entries
already delivered on the previous channel when promotions repeat
cumulative release bodies. Expose incomplete history and publication
lag.
- Reuse the typed client-local preference helper from #583 to persist
the last seen version and the actual previous/current pair. First
install, unknown history and downgrades establish a baseline without a
launch notice.

## Validation

- `bun install --frozen-lockfile` passed.
- 13 focused data tests passed, 71 assertions: fixture release bodies,
complete-release filtering, >200 nightlies, archived/pruned and edited
bodies, failed archive reads, range boundaries, deduplication,
promotion/channel changes, first install, restart/downgrade history,
malformed notes, unsafe URLs and failed CDN reads without API fallback.
Across both layers: 15 tests / 77 assertions.
- Repository `bun run lint` and `bun run format:check` passed on the
complete stack. Pages `actionlint` passed with pinned actionlint 1.7.12
and shellcheck 0.11.0. `git diff --check` passed.
- No tags, workflow dispatches or pushes to next/main. No anonymous
GitHub API calls or live release reads were used for verification.
- The complete stack passed `gen:check`, `typecheck`, `lint`,
`format:check` and the production web build in the assigned remote
review checkout with `nice -n 10`. The browser review uses fixture
notes, not live GitHub data. Full test shards run in CI; no web UI tests
were added.
- EAS CLI 27.4.1 fingerprints were generated for the actual dev base and
feature head, in the same local path with `nice -n 19`: iOS
`6ddec9ef559ee0095ac33e94ff9418a942053b17`, Android
`5f6eae3ab278f1cd543e9ed763f923a319b65ec9`, unchanged on both platforms.
No native build or OTA publication was performed.
- Bootstrap limitation: releases deleted before the first notes index
cannot be reconstructed from their GitHub bodies. The UI explicitly
indicates missing older history. Subsequent Pages deployments preserve
the bounded archive.
- The assigned remote review environment was cleaned up: browser closed,
own web/gateway processes stopped, PostgreSQL container removed,
checkout and fixture artifacts removed, all three assigned ports free.
Verification artifacts stay outside the repository.

## Copy audit (§8)

`feat(updates): show What's new (#593) (<commit hash>)` → `Show What's
new`, with `updates` as a small scope tag and the PR as its link. This
removes implementation metadata, capitalizes the summary and preserves
the change's meaning. Group labels are New, Improved and Fixed. No
additional visible controls are introduced in this layer. The UI layer
contains the full copy audit and completed light/dark,
desktop/phone-width browser review.

Related: #486, #583
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