The first evaluation period is over now, and first of all, I would like to thank my mentors, @Cynthia Sanchez, @Sorin Curescu, @Kartikay Bhutani, @Aditya Sharma, @Devesh Vijaywargiya, @Shashank, for guiding me through this journey.
What did I do this week?
This week I worked on updating the Stories section in the homepage, user profile page and my stories page by combining the corresponding parts of code into a single React component, thus leading to almost 40% reduction of code in these pages and giving a unified look to the stories section. You can checkout the PR here. Apart from that I worked on optimising the stories search in the New Story page by dynamically fetching the stories from backend as the user types in the story title (Link to PR).
What is coming up next?
I will work on fixing the Cypress tests that I wrote last week. Even though the tests pass most of the times, on certain instances they fail. I am guessing that its failing due to some sort of race condition, which I will be digging up further, this week. Apart from that I will also work on adding more tests and fix some more issues.
Did I get stuck anywhere?
Yeah, while optimising the stories search, I faced difficulty while implementing debounce along with
react-hook-form libraries. However, I found some online resources that helped me in accomplishing the goal: