refactor(app): simplify sidebar active state and tighten density#237
Conversation
Drop the 2px orange left-bar marker on the active session row and unify active/hover backgrounds to surface-raised-base-hover. The previous surface-base-active token (alpha 0.059) was lighter than the hover background (alpha 0.078), so active would have looked weaker than hover once the brand bar was removed. Polish surrounding density to align with Codex / ChatGPT: - Leading indicator gutter 24px -> 20px - Row corner radius rounded-md -> rounded-xl - Row gap 4px -> 2px in pinned, time, and project sections - Skeleton radius matches new row radius to avoid load-state jump
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (12)
🧰 Additional context used📓 Path-based instructions (1)packages/app/**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (packages/app/AGENTS.md)
Files:
🧠 Learnings (7)📓 Common learnings📚 Learning: 2026-04-23T15:26:07.250ZApplied to files:
📚 Learning: 2026-04-22T09:32:58.310ZApplied to files:
📚 Learning: 2026-04-24T05:39:56.086ZApplied to files:
📚 Learning: 2026-04-23T07:23:23.849ZApplied to files:
📚 Learning: 2026-04-23T15:10:21.635ZApplied to files:
📚 Learning: 2026-04-23T17:02:39.474ZApplied to files:
🔇 Additional comments (5)
📝 WalkthroughWalkthroughAdjusted CSS utility classes in sidebar components to tighten vertical spacing, reduce icon/pin control sizes, change item corner radius to Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Code Review
This pull request updates the sidebar UI by tightening the layout spacing from gap-1 to gap-0.5, reducing icon container sizes to size-5, and increasing the border radius of session items to rounded-xl. Feedback suggests ensuring the pin button size is also updated to size-5 to prevent misalignment and adjusting the skeleton container's gap to gap-0.5 to maintain visual consistency with the actual session lists.
…sity Address review on #237: - Pin button (pawwork-sidebar.tsx leadingSlot) was still inline-flex size-6, overflowing the new 20px session gutter; shrink to size-5 so spinner, status dots, and pin share one slot width - SessionSkeleton container still used gap-1; tighten to gap-0.5 to match the sidebar list spacing
Summary
Simplify the session sidebar visuals: drop the orange left-bar marker on the active row, align active and hover backgrounds, and tighten gutter, radius, and row gap toward Codex / ChatGPT polish.
Why
The active row used a 2px brand-coloured
insetshadow as its primary marker. With the marker removed, the underlyingbg-surface-base-active(alpha 0.059) is actually weaker than the hover backgroundbg-surface-raised-base-hover(alpha 0.078), so an active row would have looked less prominent than a hovered row. Unifying the two backgrounds keeps a single visual signal — once the cursor leaves, only the active row stays highlighted, which is enough.The gutter, radius, and gap changes are a small density pass aligned with the same goal — "less is more" — without touching design tokens or main conversation typography.
Related Issue
No tracking issue; standalone polish.
How To Verify
Local manual check in
bun run dev:desktop(macOS, dark mode):Screenshots or Recordings
Verified visually with the maintainer during dev:desktop iteration. Before/after screenshots can be attached if needed.
Checklist
bun run dev:desktopon macOSpackages/appdev, Conventional Commits in EnglishSummary by CodeRabbit