fix: #3244 sidebar tooltip shows null for servers beyond 9th position#3326
fix: #3244 sidebar tooltip shows null for servers beyond 9th position#3326jeanfbrito wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro 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). (3)
🧰 Additional context used📓 Path-based instructions (1)**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🔇 Additional comments (2)
WalkthroughTwo coordinated fixes address sidebar tooltip rendering for servers beyond the 9th position: the shortcut assignment logic is corrected from ChangesSidebar Tooltip Fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
8ef84d6 to
a5ec12a
Compare
Description
Fixes #3244 — two bugs in sidebar tooltip shortcut formatting.
Bug 1: Off-by-one (
index.tsx)Server #10 was getting shortcutNumber "10" even though Ctrl+10 doesn't exist. Now only servers 1-9 get shortcuts.
Bug 2: Null tooltip (
ServerButton.tsx)When
shortcutNumberis null (servers 10+), the template rendered "(^+null)" in the tooltip. Now the shortcut portion is conditional.Changes
src/ui/components/SideBar/index.tsx: 1 line changedsrc/ui/components/SideBar/ServerButton.tsx: 1 line changedRisk
LOW — pure presentation change, no state or logic modifications.
Summary by CodeRabbit