Skip to content

fix(web): pull requests listed by two environments show as one row - #218

Merged
badcuban merged 1 commit into
mainfrom
threadlines/deduplicate-remote-pull-requests
Sep 5, 2026
Merged

fix(web): pull requests listed by two environments show as one row#218
badcuban merged 1 commit into
mainfrom
threadlines/deduplicate-remote-pull-requests

Conversation

@badcuban

@badcuban badcuban commented Sep 5, 2026

Copy link
Copy Markdown
Collaborator

When this device is connected to another environment that points at the same remote, both list the same pull requests and the Pull Requests page showed each one twice. The sidebar's needs-you count doubled with it.

Rows are now identified by host, repository and number, and the merge keeps one row per pull request. The first environment to list it keeps the seat, and this device comes first, so a pull request is read and acted on from here whenever here can. The one exception is a row this device only found by searching the viewer's own work: a listing whose project actually holds the repository takes it over, since that row can check the branch out and knows its threads.

Thread linking, the thread badge lookup and selection matching no longer require the row's own environment, so a thread on the other computer still claims the row and a clicked row stays highlighted if the owning environment changes. The loaded-entries hook behind the Filters menu merges across environments the same way, so the Project filter offers each project once.

Two connected environments pointed at the same remote each list the same
pull request, and the page concatenated the listings, so every row and the
sidebar's needs-you count doubled.

Rows are now identified by host, repository and number. The merge keeps one
row per pull request, seated with the first environment to list it (this
device first), except that a listing whose project holds the repository
takes over a row this device only found by searching the viewer's own work.
Thread linking, the thread badge lookup and selection matching no longer
require the same environment, so a thread on the other computer still
claims the row, and the loaded-entries hook merges across environments too
so the Project filter offers each project once.
@vercel

vercel Bot commented Sep 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
threadlines Skipped Skipped Sep 5, 2026 2:36am UTC

Request Review

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L labels Sep 5, 2026
@badcuban
badcuban merged commit 1817881 into main Sep 5, 2026
16 checks passed
@badcuban
badcuban deleted the threadlines/deduplicate-remote-pull-requests branch September 5, 2026 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant