Simplify git branch handling and tighten sidebar/header UI alignment#130

closed1
main
t3code/shrink-title-align-traffic-lights
openedMar 1, 2026byJJulius Marminge
View on GitHubTwo-way sync enabledPR last imported Oct 21, 2026

Summary

  • Simplified server-side git branch logic to operate on local branches only, removing remote-branch parsing, remote metadata handling, and remote checkout special cases.
  • Updated shared git contract/docs and web branch toolbar behavior to match local-only branch handling.
  • Removed remote-branch dedupe/derivation logic and related unit/integration tests that are no longer applicable.
  • Streamlined branch picker badges and checkout state updates in BranchToolbar.
  • Refined UI polish: reduced T3 wordmark size, adjusted diff panel spacing, and removed click-to-open-editor behavior from diff file headers.
  • Simplified sidebar PR status indicator rendering to state-based labels/colors without tooltip/link metadata.

Testing

  • Not run (not provided in the change context).
  • Existing branch-toolbar logic tests were updated by removing remote-branch-specific coverage.
  • Existing git integration tests were updated by removing remote-branch and remote-checkout-specific coverage.

Note

Low Risk Purely visual tweaks to the sidebar/header wordmark and stage badge styling; no behavior or data-flow changes.

Overview Tightens sidebar/header wordmark presentation by reducing the T3 SVG height, adjusting Electron-only vertical translation, and adding leading-none to better align text.

Shrinks the adjacent "Code" label and stage badge typography (font size and tracking) to improve overall header spacing.

Written by Cursor Bugbot for commit f79734786ed7e512dac3bf681c05fce15bf55ba1. This will update automatically on new commits. Configure here.

Note

Tighten sidebar header UI by shrinking T3Wordmark SVG height to 2.5 and reducing label and badge text sizes in Sidebar.tsx

Reduce the T3Wordmark SVG height, decrease sidebar header label and badge font sizes, widen badge tracking, add leading-none, and increase Electron upward offset in Sidebar.tsx.

📍Where to Start

Start with the Sidebar header render and T3Wordmark styling in Sidebar.tsx.

Macroscope summarized f797347.

Added 1 commit

  • Refine sidebar wordmark size and title alignmentf797347
Synced from GitHub

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch t3code/shrink-title-align-traffic-lights

Comment @coderabbitai help to get the list of available commands and usage tips.

Ccursor[bot]reviewed · 1 inline threadMar 1, 2026
Synced from GitHub

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is ON, but it could not run because the spend limit has been reached. To enable Bugbot Autofix, raise your spend limit in the Cursor dashboard.

……@@ -615,14 +615,14 @@ export default function Sidebar() {
616616
617617 const wordmark = (
618- <div className={`flex items-center gap-2 ${isElectron ? "-translate-y-px" : ""}`}>
618+ <div className={`flex items-center gap-2 ${isElectron ? "-translate-y-2" : ""}`}>

Electron wordmark offset jumps from 1px to 8px

Medium Severity

The Electron-only vertical offset changed from -translate-y-px (1px) to -translate-y-2 (0.5rem = 8px) — an 8× increase. All other changes in this PR are small refinements (e.g., h-3 → h-2.5, text-base → text-sm), making this jump disproportionate. Inside a h-[52px] header with items-center, an 8px upward shift would noticeably push the wordmark off-center. This looks like it may have been intended as -translate-y-0.5 (2px) instead.

Fix in Cursor Fix in Web