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

Feature/park and ride areas #256

Merged
merged 8 commits into from
Aug 1, 2024
Merged

Conversation

juhomakkonen
Copy link
Collaborator

Show park-and-ride areas

Show park-and-ride areas on the map.

Trello card 622


Breakdown:

Render park-and-ride areas on the map

  1. src/components/MobilityPlatform/Parking/ParkAndRideAreas/ParkAndRideAreas.js

    • Fetch data & render park-and-ride areas on the map using both Leaflet polygons and markers.
  2. src/components/MobilityPlatform/Parking/ParkAndRideAreas/components/ParkAndRideAreasContent/ParkAndRideAreasContent.js

    • Render relevant info about selected area, like number of parking spaces, number of vacant spaces and nearby bus lines.
  3. src/components/MobilityPlatform/Parking/ParkAndRideAreas/components/ParkAndRideAreasContent/tests/ParkAndRideAreasContent.test.js

    • Add tests.
  4. src/context/MobilityPlatformContext.js

    • Add new context values.
  5. src/views/MobilitySettingsView/MobilitySettingsView.js

    • Add toggle function & render info text.
  6. src/views/MobilityPlatformMapView/MobilityPlatformMapView.js

    • Import into the map view.

Add new hook

  1. src/components/MobilityPlatform/utils/useParkingDataFetch.js

    • Add new hook that includes logic that will be used when fetching data from Parkkiopas.
  2. src/components/MobilityPlatform/ParkingSpaces/ParkingSpaces.js

    • Use new hook and remove code & logic that is now part of the new hook.

Update env values

  1. .env.example & config/default.js & server/server.js
    • Update one env value and remove unneeded env value.

Update translations

  1. src/i18n/en.js & src/i18n/fi.js & src/i18n/sv.js
    • Add new translations.

@juhomakkonen juhomakkonen added the enhancement New feature or request label Aug 1, 2024
@juhomakkonen juhomakkonen requested a review from SanttuA August 1, 2024 07:50
@juhomakkonen juhomakkonen merged commit ee20586 into develop Aug 1, 2024
3 checks passed
@juhomakkonen juhomakkonen deleted the feature/park-and-ride-areas branch August 27, 2024 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants