Refactored services and events search to have a see all option. The current search is tough on users. Since it returns all the search results for the events and services section on one page. Thus, if one section has too many results. It is hard to reach the other search result section. (Commits 1-2)
Added job search (Commits 3-4)
Added saved events. (Commits 5-9)
Bug Fix: Search Services/Event/Job should allow save/favorite + Cleanup of files. (Commit 10)
Demo Steps: Save Events
Pre-requisite: Events exists
Visit events as migrant
Favorite/Unfavorite events directly from the cards
Favorite/UnFavorite events directly from the event details
Visit main page and view the saved events
If more than 0 saved events click view all.
Also verify that business users cant favorite events.( aka. its hidden and path restricted to migrants)
Demo Steps: Search Jobs + Refactor old search UI
run in mongodb:
db.jobs.createIndex( {title: "text", description: "text"}, {weights: { title: 2, description: 1 }})
Login
Use the searchbar at the top right to search for a job
Click the search button
View all the search results.
View each of the search sections shows a maximum of 4 results with a see all option that displays all the search results with infinite scroller.
Was lazy to split this into 3 PR's
User stories: #251 #261 + Some other free fixes
Changes Summary:
Demo Steps: Save Events
Pre-requisite: Events exists
Demo Steps: Search Jobs + Refactor old search UI
run in mongodb:
db.jobs.createIndex( {title: "text", description: "text"}, {weights: { title: 2, description: 1 }})