-
-
Notifications
You must be signed in to change notification settings - Fork 846
Fix: make entire sidebar button clickable (#445) #449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@msinha569 is attempting to deploy a commit to the Rohan Verma's projects Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughAppSidebar was modified to wrap the header/home block in a Next.js Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Sidebar as AppSidebar
participant Router as NextRouter
rect rgb(235,247,255)
Note over Sidebar: Header wrapped in Next `Link` (new)
end
User->>Sidebar: Click header area (icon/text)
Sidebar->>Router: Client-side navigation to "/"
Router-->>User: Route update (home)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Suggested labels
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (1)**/*.{jsx,tsx}📄 CodeRabbit inference engine (.rules/require_unique_id_props.mdc)
Files:
🧬 Code graph analysis (1)surfsense_web/components/sidebar/app-sidebar.tsx (1)
🪛 GitHub Actions: Code Quality Checkssurfsense_web/components/sidebar/app-sidebar.tsx[error] 3-3: Biome: The imports and exports are not sorted. Safe fix: Organize Imports (Biome). 🔇 Additional comments (2)
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review by RecurseML
🔍 Review performed on b79befd..04514d2
✨ No bugs found, your code is sparkling clean
✅ Files analyzed, no issues (1)
• surfsense_web/components/sidebar/app-sidebar.tsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
surfsense_web/components/sidebar/app-sidebar.tsx(2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{jsx,tsx}
📄 CodeRabbit inference engine (.rules/require_unique_id_props.mdc)
**/*.{jsx,tsx}: When mapping arrays to React elements in JSX/TSX, each rendered element must include a unique key prop
Keys used for React list items should be stable, predictable, and unique among siblings
Files:
surfsense_web/components/sidebar/app-sidebar.tsx
🧬 Code graph analysis (1)
surfsense_web/components/sidebar/app-sidebar.tsx (1)
surfsense_web/components/Logo.tsx (1)
Logo(7-13)
🪛 GitHub Actions: Code Quality Checks
surfsense_web/components/sidebar/app-sidebar.tsx
[error] 3-3: The imports and exports are not sorted. biome-check-web reported FIXABLE issue: Safe fix: Organize Imports (Biome).
…o avoid invalid HTML
|
@msinha569 Thanks 👍 |
Title: Fix: make entire sidebar button clickable (#445)
This PR resolves Issue #445, where sidebar menu items were only partially clickable.
Previously, clicking the text or empty space of a menu item had no effect — only the icon responded.
Now, the entire button area (icon + text + background) correctly triggers the navigation action.
Description
The fix modifies the sidebar component (
app-sidebar.tsx) to wrap both the icon and the label within the same clickable element.This ensures the entire width of the sidebar button is responsive to user interaction.
Tooltip, hover, and active states are retained exactly as before.
Motivation and Context
The sidebar’s limited clickable area caused poor UX and inconsistency with common UI patterns.
This change improves accessibility and user experience, ensuring intuitive full-button interaction.
Fixes: #445
Screenshots
Before:
Only the icon was clickable. Clicking the text area did nothing.
After:
The full sidebar button (icon + text) is clickable and performs the expected action.
API Changes
Change Type
Testing Performed
Checklist
✅ Summary:
The sidebar’s entire button area is now clickable — fixing the partial click issue described in #445 and enhancing overall navigation experience.
High-level PR Summary
Summary by CodeRabbit
New Features
Bug Fixes
Style