What did I do this week?
This week I updated the Cypress tests in this PR to use data-cy to select the DOM elements in a way that is resilient to changes in the markup. You can read more about the Cypress best practices here. Next I started working on shareable search results link feature and here is the PR for that. However, I was stuck in figuring out a better way to manage the search filters state. Also, we decided to work on improving the code quality first, by refactoring the GraphQL queries, resulting in this PR.
What is coming up next?
I will work on improving code quality further by adding a proper state management mechanism, and finish the implementation of shareable search results link feature. Apart from that I will also work on refactoring some of more files as has been suggested by my mentor.
Did I get stuck anywhere?
Yes, I need to figure out, how to replace multiple useState() hooks with a useReducer() hook in our codebase, to improve the state management. Then only I can implement the shareable search results link feature.
So that's all in this blog post, see you next week!!