This PR solves #69 and sets up allowing users to favourite positions and save them in a separate page. Currently the favourites are maintained in the database by creating a new collection to store them. By clicking on the star icon on a position card, positions will be added or removed from that collection.
TODOs
Will refactor for when individual users are implemented. Users should have a list of favourites containing the position ids which would then be used to search in the position collection
At the moment, favourites are immediately removed when "unfavouriting" when on the favourites page. Maybe look into allowing the unfavourited position to stay until the page is refreshed/switched out
Overview
This PR solves #69 and sets up allowing users to favourite positions and save them in a separate page. Currently the favourites are maintained in the database by creating a new collection to store them. By clicking on the star icon on a position card, positions will be added or removed from that collection.
TODOs