Skip to content

fix(web): family tabs keep the lead whole and drop a shared topic - #1013

Merged
badcuban merged 1 commit into
mainfrom
fix/lead-chat-tab-truncation
Nov 20, 2026
Merged

badcuban merged 1 commit into
mainfrom
fix/lead-chat-tab-truncation

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

On a crowded family tab row, the "Lead" tab was cut to "L..." before any longer tab. And when a lead starts many threads for one job, every tab and sidebar row began with the same topic ("Pull Station: ..."), so the part that tells them apart was cut off.

Lead tab. Every tab could shrink, and the browser shrank each one by its full title length, which hit the short lead tab hardest. The lead tab now never shrinks. The other tabs start from one 200px basis, so the longest titles give way first and cut tabs end up the same width, down to the existing 96px floor before "+N".

Shared topic. When two or more of a family's threads start with the same topic, their tabs and their rows under the parent in the sidebar show only the rest: "Pull Station: Android toolchain setup" becomes "Android toolchain setup". One rule (familyTitles.logic.ts) runs over the same members for both, so a tab and its row read the same. Safeguards:

  • A one-word topic ("Fix:") counts only where a separator follows it, so "Fix the build" stays whole.
  • A topic of two or more words also comes off titles that run straight on from it ("Pull Station restructure: ..." becomes "Restructure: ...").
  • A title keeps its full text when the rest would read the same as another label, or would be under two characters.
  • Hover (tooltip or hover card), screen readers, the "+N" menu and rename keep the full title.

The design doc (docs/design/lead-chat.md) and the app guide's threads topic describe the rule.

Tests: unit tests for the title rule and for sidebar labels staying put when a family is folded. A browser test with a lead and six long titles checks that "Lead" isn't cut, cut tabs share one width, tabs and tooltips show the right text, and the sidebar row matches its tab. It failed on the old code ("Lead" needed 27px and got 10).

On a crowded family row the "Lead" tab was cut to "L..." first. Every tab
could shrink, and the browser shrank each one by its full title length, so
the short lead tab lost its width fastest. The lead tab no longer shrinks,
and the other tabs start from one 200px basis, so the longest titles give
way first and cut tabs end up one width.

Threads from one job usually share a topic ("Pull Station: ..."), which
filled every tab before the cut. When two or more of a family's threads
start with the same topic, their tabs and their rows under the parent in
the sidebar now show only the rest. Both use one rule (familyTitles.logic)
over the same members, so a tab and its row read the same. A one-word topic
needs a separator after it, and a title keeps its full text when the rest
would clash with another label or say almost nothing. Hover, screen readers
and rename keep the full title.
@vercel

vercel Bot commented Nov 20, 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 Nov 20, 2026 5:12pm UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Nov 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 20, 2026
@badcuban
badcuban added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 076b397 Nov 20, 2026
32 of 34 checks passed
@badcuban
badcuban deleted the fix/lead-chat-tab-truncation branch November 20, 2026 17:37

This branch was previously deployed

1 inactive deployment
Preview — 9252bb56 Deployed Nov 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant