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

Inform user about overlapping rides #10

Open
MistyRavager opened this issue Oct 24, 2023 · 0 comments
Open

Inform user about overlapping rides #10

MistyRavager opened this issue Oct 24, 2023 · 0 comments

Comments

@MistyRavager
Copy link
Contributor

Currently its possible to end up with multiple overlapping rides, because people might create rides without checking the existing ones first.

To solve this, when someone is adding a ride, check if there are rides with overlapping times and place. Some ways to inform the user:

  • as soon as the three fields get filled, add text to the bottom of form or send notification to user with a message on the lines of "There are x rides with similar stuff, you might wanna check them out in All rides" if overlapping rides are there
  • when the user clicks on book open a "confirm modal" and ask if they still want to create the ride or redirect them to the filtered bookings with the filters filled in.

Endpoint to hit: "/bookings" with query parameters from_loc, to_loc, start_time, end_time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant