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

DT-6182 rental scooters #5016

Merged
merged 97 commits into from
Jun 28, 2024
Merged

DT-6182 rental scooters #5016

merged 97 commits into from
Jun 28, 2024

Conversation

sharhio
Copy link
Contributor

@sharhio sharhio commented Jun 14, 2024

Proposed Changes

  • Scooters added to routes and map.
  • Scooters configured for HSL and Matka (Helsinki only)

When testing

  1. Ensure that otp is configured properly (see data-container pr)
  2. UI map layer configuration uses the local otp instead of dev.

Relies on:
HSLdevcom/OpenTripPlanner-data-container#403
opentripplanner/OpenTripPlanner#5909

Pull Request Check List

  • A reasonable set of unit tests is included
  • Console does not show new warnings/errors
  • Changes are documented or they are self explanatory
  • This pull request does not have any merge conflicts
  • All existing tests pass in CI build

Review

  • Read and verify the code changes
  • Test the functionality by running the UI locally with all popular browsers available in your platform
  • Check that the implementation matches the design, when such one is defined in a Jira issue
  • Merge the pull request

- rename for consistency
- scooters can use exactly similar state as other itinerary queries
…ately

This prevents intermediate rendering before plan merging
UI contained lots of complex code for adding citybike and scooter to transport modes array.
In the end, those were just filtered away before making a request. Most of the old mess
is now cleaned away. There is still some strange code related to availableForSelection config switch;
it should probably be erased as well.
We could add ? to every object reference but would it make the code better?
Wheelchair option disables biking and scooters. Do the same with citybikes.
The button in scooter leg says 'Open settings'. Toggle will actually
close the panel if it is already open.
@vesameskanen
Copy link
Member

I added some minor fixes and refactored the code. There might be still a need for renaming more citybike things to a generic form.

@vesameskanen vesameskanen merged commit 6cd9c09 into v3 Jun 28, 2024
6 checks passed
@vesameskanen vesameskanen deleted the DT-6182 branch June 28, 2024 10:05
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

Successfully merging this pull request may close these issues.

2 participants