Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add search feature in layouts screen #28

Open
4 tasks
jatinkatyal13 opened this issue Jul 24, 2020 · 1 comment
Open
4 tasks

Add search feature in layouts screen #28

jatinkatyal13 opened this issue Jul 24, 2020 · 1 comment

Comments

@jatinkatyal13
Copy link
Contributor

Currently, the layouts page displays the api data directly but there is no option to search the layouts

ToDos

Frontend

  • Add Text Input on top of layout list in frontend/pages/layouts/index.js with onChange method that fires a search action
  • Update loadLayouts action to take another query parameter q with default value being an empty string.
  • After receiving search data unload all store data, so that only filtered data is displayed. Add a unloadAll flag in the action and replace the state rather than adding in the reducers based on this flag to avoid jank.

Backend

  • In src/services/layouts/handlers.js accept q in query params that searches the given query in layout titles. Also, add the q in schema
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
@jatinkatyal13 and others