Subscribing to trip alert
### Design Figma → [link_preview](https://www.figma.com/file/8AZXpbA9RXefOIxFHDz5TX/od.caroster?type=design&node-id=1619-8208&mode=design&t=DeqvpSkGdSlc2epS-11) ### **Userflow Whimsical →** [link_preview](https://whimsical.com/caroster-userflow-Mz1dFm3xAeDLaSVcfrusUY@2bsEvpTYSt1HiokZ1xgGhqZ7dUbaaXM5SuA) ### **Wireframe Whimsical →** [link_preview](https://whimsical.com/caroster-futur-wireframes-Mo4CaBCgUcDnhSLiZVwhxC@2bsEvpTYSt1Hj6mrRPow27YpBpKwDQ5jmed) As a logged user on the waiting list for an event with the "Caroster plus" module activated, I can indicate my starting address, in order to be informed when a departure near my home is available. ## Validation - I register - I fill in all the fields (address and radius not mandatory) - If I do not fill in the address, I will be notified of all additions of trip to the event - Otherwise, I receive a notification based on the proximity of the journey > General rule: The waiting list is used to receive notifications in case of new journeys ## Tasks - [x] Only for Caroster+ event, hide “Waiting list” - [x] Only for Caroster+ event, add a new tab for alerting - [x] Backend: Store alerting info for a user in an event (new model to create ?) - [x] Backend: When a trip is added to an event, get all users with alerting enabled, calculate distance between user and trip departure, check and send notification - [x] Backend: If a user has enabled alerting without address, send notification for every new trip Technical note: Use simple calculation for distance between two coordinates --- **Notion**: https://www.notion.so/Subscribing-to-trip-alert-4876752c424d4e0cbc310bb05a144316 **Points**: 5
issue