Skip to content

fix(web): sidebar issue and pull request badges share one component - #42275

Merged
juliusmarminge merged 2 commits into
pingdotgg:mainfrom
Bil0000:t3/sidebar-issue-badge-style
Nov 24, 2026
Merged

juliusmarminge merged 2 commits into
pingdotgg:mainfrom
Bil0000:t3/sidebar-issue-badge-style

Conversation

@Bil0000

@Bil0000 Bil0000 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

The sidebar issue badge (#4102, grey) did not match the PR badge beside it (4103, state color). Both now render through one shared ThreadLinkBadge, so only the icon, color, number and hover list differ.

Before After
before after

Proof: the "linked Linear issue" browser test renders both badges and checks that they share one style. It fails on main.

Reviewed with sol-loop: 2 rounds with gpt-6.2-sol. Sol verdict: approved

Created with Claude Opus 5.5 in Claude Code (T3 Code). Reviewed by GPT 6.2 Sol in Codex.

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 24, 2026
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The pull request adds a reusable badge component for linked items. Pull request and sidebar issue badges use the component. Test fixtures and browser assertions cover the updated badge data and display.

Changes: Linked-item badges

Layer / File(s) Summary
Shared badge and pull request integration
apps/web/src/components/ThreadStatusIndicators.tsx
PullRequestBadge now uses the exported ThreadLinkBadge, which renders its icon and text in a fixed-width, truncating label. The tooltip stops context-menu events from propagating.
Sidebar issue badge and test coverage
apps/web/src/components/sidebar/SidebarThreadRow.tsx, apps/web/test/fakeEnvironment.ts, apps/web/src/components/ChatView.browser.test.tsx
The sidebar issue badge uses ThreadLinkBadge with issue status styling or fallback styling. It displays a single issue key without a leading #, or the issue count for multiple issues. Fake thread shells now include defined pull requests. Browser assertions check issue and pull request labels and badge styling.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: juliusmarminge, pixpmusic, maria-rcks

Merge Risk: Minimal · up to a2b37

This change makes sidebar issue badges look like pull request badges. It affects only the display of badges and has no apparent risk to data or core workflows, so it looks safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Title check Passed The title names the main change: the sidebar issue and pull request badges now share one component. It follows the conventional commit form and stays specific. It is 67 characters, so it is slightly l…
Description check Passed The description states the problem (sidebar issue badge #4102 grey did not match the adjacent PR badge 4103 state color) and the change (both badges now render through a shared ThreadLinkBadge).…
Full details: Title check

Explanation

The title names the main change: the sidebar issue and pull request badges now share one component. It follows the conventional commit form and stays specific. It is 67 characters, so it is slightly long but still readable.

Full details: Description check

Explanation

The description states the problem (sidebar issue badge #4102 grey did not match the adjacent PR badge 4103 state color) and the change (both badges now render through a shared ThreadLinkBadge). It gives before/after screenshots and names a browser test that fails on main and passes with the fix. The Problem, Change, and Verification sections are covered. Scope is only partly addressed: it does not link an issue, though the PR objectives describe a bug-fix framing. The model/harness attribution line is present. Overall the description is mostly complete.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 103ddca and a2b3756.

Files selected for processing: 4

  • apps/web/src/components/ChatView.browser.test.tsx
  • apps/web/src/components/ThreadStatusIndicators.tsx
  • apps/web/src/components/sidebar/SidebarThreadRow.tsx
  • apps/web/test/fakeEnvironment.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

The linked-issue badge next to a sidebar thread showed a grey 'pingdotgg#4102' while the PR badge beside it showed a state-colored '4103'. The issue badge now uses the PR badge's markup: one state color for icon and number, and no leading '#'.
ThreadLinkBadge owns the badge look: one tone for icon and number, and the glass hover card. The sidebar issue badge and the pull request badge both render through it, so only the icon, tone, text and hover list differ.
@Bil0000
Bil0000 force-pushed the t3/sidebar-issue-badge-style branch from 103ddca to a2b3756 Compare November 24, 2026 19:02
@Bil0000 Bil0000 changed the title fix(web): sidebar issue badges match the pull request badge fix(web): sidebar issue and pull request badges share one component Nov 24, 2026
@github-actions github-actions Bot added size:M 30-99 changed lines (additions + deletions). and removed size:S 10-29 changed lines (additions + deletions). labels Nov 24, 2026
@juliusmarminge
juliusmarminge merged commit 571ed76 into pingdotgg:main Nov 24, 2026
41 checks passed
github-actions Bot added a commit to omarcresp/t3code-flake that referenced this pull request Nov 25, 2026
**v0.1.12-nightly.20261124.5209** · 23 changes from 11 contributors

- **T3 Connect sign-in alerts.** Get notified when a new T3 Connect device signs in.
- **Antigravity quota recovery.** Threads can resume or snooze automatically when Antigravity reports a quota reset time in its error message.
- **Theme editor changes.** Canceling an input method candidate with Escape no longer closes the editor and discards unsaved changes.

### Plus 19 more bug fixes.

<details>
<summary>Full changelog</summary>

## What's Changed
* fix(web): Voice Models language menu resets its search filter on close by @only21mil in pingdotgg/t3code#42321
* feat(connect): tell people when a new T3 Connect device signs in by @juliusmarminge in pingdotgg/t3code#42311
* fix(web): new-commits banner on a PR spans the full header width by @juliusmarminge in pingdotgg/t3code#42342
* fix(web): opening a resolved PR comment keeps its toggle under the cursor by @ipanasenko in pingdotgg/t3code#42312
* fix(web): large SVG project icons come back after their link expires by @smirea in pingdotgg/t3code#42329
* fix(server): Antigravity quota failures keep the 'Resets in' reset time by @juliusmarminge in pingdotgg/t3code#42339
* fix(server): file listing keeps gitignore status when a filename looks like a git pathspec by @only21mil in pingdotgg/t3code#42333
* fix(bitbucket): checkouts cloned from ssh.bitbucket.org match their pull requests by @adrhumphreys-atlas in pingdotgg/t3code#42330
* fix(client): a tab-indented fence line in a PR description code block no longer swaps which video plays by @Marve10s in pingdotgg/t3code#42331
* fix(web): script command field shows both hyphens with ligature fonts by @Mnigos in pingdotgg/t3code#42352
* fix(server): honor sort: "created" when merging IssueService.list entries by @AymanKhan9 in pingdotgg/t3code#42350
* fix(server): a terminal commit refreshes cached Changes totals by @juliusmarminge in pingdotgg/t3code#42365
* fix(web): an IME Escape no longer closes the theme editor or ends inspection by @omaribrahim6 in pingdotgg/t3code#42332
* fix(web): Esc in a font family field closes Settings when no edit is pending by @only21mil in pingdotgg/t3code#42361
* fix(relay): traces no longer record callers' IP addresses or user agents by @juliusmarminge in pingdotgg/t3code#42380
* fix(server): source control discovery no longer runs the auth command of a CLI that is not installed by @juliusmarminge in pingdotgg/t3code#42379
* fix(web): sidebar issue and pull request badges share one component by @Bil0000 in pingdotgg/t3code#42275
* feat(relay): delete a user's relay data when Clerk deletes the user by @juliusmarminge in pingdotgg/t3code#42285
* fix(web): Esc in Theme Editor color filter clears the filter without closing the editor by @juliusmarminge in pingdotgg/t3code#42395
* fix(mobile): analytics uses its own random device id by @juliusmarminge in pingdotgg/t3code#42394
* fix(desktop): Windows desktop applies the saved user telemetry opt-out by @juliusmarminge in pingdotgg/t3code#42376
* fix(web): Enter commits Background Activity interval values by @only21mil in pingdotgg/t3code#42392
* fix(server): analytics no longer reads or sends Codex and Claude account IDs by @gabrielelpidio in pingdotgg/t3code#42299

## New Contributors
* @adrhumphreys-atlas made their first contribution in pingdotgg/t3code#42330

**Full Changelog**: pingdotgg/t3code@v0.1.12-nightly.20261124.5204...v0.1.12-nightly.20261124.5209

</details>


Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.12-nightly.20261124.5209
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants