feat: Hamburger icon content added#697
Conversation
✅ Deploy Preview for astounding-nougat-da0f6a ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
@Julliet-Mohanta is attempting to deploy a commit to the adityapaul2603-gmailcom's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe mobile drawer footer now includes a 2-column quick-link grid with navigation to Home, Practice, Challenge, and Favorites. Each link closes the drawer on click. Spacing is adjusted in the drawer body and footer, and the Sign In button also closes the drawer. ChangesMobile Drawer Footer Quick Links
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 6 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed: one or more packages not found in the registry. 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 |
bijanmurmu
left a comment
There was a problem hiding this comment.
Needs a quick fix for the broken sign-in button.
|
|
||
| {/* Drawer Footer */} | ||
| <div className="mt-6 pt-4 border-t border-slate-200 dark:border-slate-800/80 space-y-3"> | ||
| <div className="mt-6 pt-4 border-t border-slate-200 dark:border-slate-800/80 space-y-3 relative z-[60]"> |
There was a problem hiding this comment.
Is there any specific reason for adding relative z-[60] here? Because it is breaking the Clerk sign-in modal
There was a problem hiding this comment.
I wanted the Drwaer footer section to be above other elements of Drwaer layout..that's why I used the z-index thing. But, since you have correctly pointed that it is breaking the clerk sign-in modal, so I removed that part and traced back to original code.
I have incorporated all the suggestions asked by you.
@bijanmurmu, kindly check and review.
Thank you
| <span>Github</span> | ||
| </a> | ||
| </div> | ||
| <div className="grid grid-cols-2 gap-2 pt-2"> |
There was a problem hiding this comment.
Can we move these above the sign-in button? We'll use these links a lot more frequently than the login button.
There was a problem hiding this comment.
@bijanmurmu , I have updated the branch mobile-view and changes have been incorporated in the pull request. Now, The links are appearing above the sign in button. The screenshot is attached as proof.
Thank you

There was a problem hiding this comment.
add onClick={() => setOpen(false)} to the <button> inside <SignInButton> . Without this, clicking 'Sign In' opens the modal, but the mobile menu stays stuck open and covers the screen!
|
@Julliet-Mohanta Fix indentation and remove commented out code |
@bijanmurmu , done finally! |

Pull Request Summary
What changed?
Added navbar links of Challenges, Practice, Home and Favourites as contents of hamburger icon in addition to Sign in and Github links by modifying Navbar.jsx file.
Why is this needed?
Problem/Initial State: Currently, on clicking hamburger icon in mobile-view, only 2 links are appearing as tabs that is Github and Sign-in, which makes it difficult for user to navigate to other pages using hamburger icon on mobiles.
Therefore, the given PR solves this problem and enhance user's navigation experience.
Closes #696
Type of Change
feat- New user-facing feature or algorithm capabilityfix- Bug fix or regression fixdocs- Documentation-only changestyle- Formatting or styling change with no behavior changerefactor- Code restructuring with no feature or bug-fix behavior changeperf- Performance improvementtest- Test coverage or test infrastructure changebuild- Build system, dependency, or packaging changeci- GitHub Actions, Docker, Vercel, or release automation changechore- Maintenance change that does not affect usersrevert- Reverts a previous changeRelease Notes
Release note category:
Release note entry:
New navlinks added in hamburger icon.
Testing and Verification
npm ciornpm installnpm run format:checknpm run lintnpm run buildhttp://localhost:5173Skipped or additional testing notes:
UI Evidence
Before:

After:

CI/CD and Deployment Impact
Deployment notes:
all the navbar links added in hamburger content are fully functional and directing the users to respective pages.
Reviewer Checklist
Summary by CodeRabbit