As a user, I would like to be able to select an interest and have the recommended spaces on the My Spaces page update based on the chosen interest. This will allow users to find spaces that are more relevant to their interests.
Acceptance Criteria
Add a dropdown menu to the My Spaces page that lists all available interests.
Update the recommended spaces section to only display spaces related to the chosen interest.
The recommended spaces section should update after the user selects an interest and submits the form.
Implementation Details
Update the my_spaces_list view in views.py to include a queryset of all available interests in the context, e.g., all_interests = Interest.objects.all(). Add this to the context dictionary.
Update the my_spaces_list.html template by adding an interest selection form before the {% if recommended_spaces %} line. The form should include a dropdown menu populated with the available interests and a submit button.
Modify the view to filter the recommended spaces based on the selected interest from the form submission. This can be achieved by adding an additional filter to the recommended spaces queryset based on the selected interest.
Description
As a user, I would like to be able to select an interest and have the recommended spaces on the My Spaces page update based on the chosen interest. This will allow users to find spaces that are more relevant to their interests.
Acceptance Criteria
Implementation Details