Avdhesh-Varshney / WebMasterLog

A record of Unique Web Development Projects made with Angular, Next, Node, React, ExpressJS, Redux, Vanilla, Vue, etc. Technologies...
https://web-master-log.vercel.app
MIT License
55 stars 95 forks source link

Made changes to the SideBar.jsx and App.jsx component to fix the issue #403

Open PranavKeshav24 opened 3 days ago

PranavKeshav24 commented 3 days ago

Closes: #376

Describe the add-ons or changes you've made πŸ“ƒ

To enhance the user experience, a useRef hook was introduced to create a reference for the search input field, enabling programmatic access. A new function, handleSearchIconClick, was implemented to open the sidebar and focus on the search input field after a short delay to accommodate the sidebar animation. The BiSearch icon's click handler was updated to call this new function, ensuring that when the search icon is clicked, the sidebar expands and the search input field is automatically focused, allowing users to immediately start typing their search queries.

How Has This Been Tested? βš™οΈ

I've thoroughly tested the updated sidebar component with the new search functionality in my local development environment. I verified that clicking the search icon smoothly expands the sidebar, revealing the search input field, which is automatically focused as expected.

Screenshots πŸ“·

image image

Type of change β˜‘οΈ

What sort of change have you made:

Checklist: β˜‘οΈ

Note to reviewers πŸ“„

Please review my PR and provide feedback. I will be happy to work on any further changes if required.

vercel[bot] commented 3 days ago

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
web-master-log βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback Jun 25, 2024 6:33pm
github-actions[bot] commented 3 days ago

Thank you for submitting your pull request! We'll review it as soon as possible. For further communication, join our discord server https://discord.gg/tSqtvHUJzE.