Skip to content

Refactor: make NavSearch globally accessible via Navbar - #101

Open
SRUTHIAGARWAL wants to merge 1 commit into
hitesh-kumar123:mainfrom
SRUTHIAGARWAL:feature/global-navsearch-bar
Open

Refactor: make NavSearch globally accessible via Navbar#101
SRUTHIAGARWAL wants to merge 1 commit into
hitesh-kumar123:mainfrom
SRUTHIAGARWAL:feature/global-navsearch-bar

Conversation

@SRUTHIAGARWAL

@SRUTHIAGARWAL SRUTHIAGARWAL commented Jan 11, 2026

Copy link
Copy Markdown

name: "📦 Pull Request"
about: Submit changes for review
title: "PR: Make NavSearch globally accessible via Navbar"

📌 Linked Issue

Closes #94


🛠 Changes Made

  • Added global NavSearch component inside Navbar
  • Removed duplicate search UI and logic from Home
  • Removed search-related state, effects, and handlers from Navbar
  • Ensured consistent navigation to /listings from all pages

🧪 Testing

Ran unit tests (npm test): No

Tested manually:

  • Yes — verified search works from Navbar on all pages
  • Yes — search redirects correctly with query parameters
  • Yes — recent searches persist and are selectable
  • Yes — mobile and desktop layouts behave correctly

📸 UI Changes (if applicable)

| Before |
image
| Search limited to Home page |
After
image
|Search available globally via Navbar |


📝 Documentation Updates

Updated README/docs: No
Added code comments: Yes


✅ Checklist

Created a new branch for PR: Yes
Have starred the repository: Yes
Follows JavaScript Styleguide: Yes
No console warnings/errors: Yes
Commit messages follow Git Guidelines: Yes


💡 Additional Notes (If any)

This PR is frontend-only and does not impact backend or authentication logic.
It improves UX consistency and reduces duplicated state management.

@netlify

netlify Bot commented Jan 11, 2026

Copy link
Copy Markdown

Deploy Preview for smartrentsystem ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 62664cd
🔍 Latest deploy log https://app.netlify.com/projects/smartrentsystem/deploys/696333fda7fb2e0008146e1f
😎 Deploy Preview https://deploy-preview-101--smartrentsystem.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@hitesh-kumar123

Copy link
Copy Markdown
Owner

@SRUTHIAGARWAL follow pr templates after merge pr

@SRUTHIAGARWAL

Copy link
Copy Markdown
Author

@hitesh-kumar123 I have now updated my PR according to the template. Please review it once again. Thank you.

@SRUTHIAGARWAL

Copy link
Copy Markdown
Author

@hitesh-kumar123 if there are any other things to be added yet please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Style: Make the search bar globally accessible across key pages

2 participants