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

Update roadworks view #241

Merged
merged 8 commits into from
May 16, 2024
Merged

Update roadworks view #241

merged 8 commits into from
May 16, 2024

Conversation

juhomakkonen
Copy link
Collaborator

Update components that render roadworks data.

Update components that render roadworks data by fetching data from local API endpoints, update data property references and functions.

Trello card 589


Breakdown:

Use local API

  1. src/components/MobilityPlatform/Roadworks/Roadworks.js

    • Fetch data from local API endpoint using hook, update data property references, and add functions to parse coordinates from string. Use reusable styled components.
  2. src/components/MobilityPlatform/Roadworks/components/RoadworksContent/RoadworksContent.js

    • Update data property references, and use reusable styled components. Update prop types.
  3. src/components/MobilityPlatform/Roadworks/components/RoadworksContent/tests/RoadworksContent.test.js

    • Update tests.
  4. src/components/MobilityPlatform/utils/useRoadworksDataFetch.js

    • Add hook that fetches data.
  5. src/components/MobilityPlatform/mobilityPlatformRequests/mobilityPlatformRequests.js

    • Add fetch request.
  6. .env.example

    • Update ROADWORKS_API value.

@juhomakkonen juhomakkonen added the enhancement New feature or request label May 16, 2024
@juhomakkonen juhomakkonen requested a review from SanttuA May 16, 2024 09:19
@juhomakkonen juhomakkonen merged commit 56b5ab9 into develop May 16, 2024
3 checks passed
@juhomakkonen juhomakkonen deleted the feature/update-roadworks-view branch May 23, 2024 10:03
@juhomakkonen juhomakkonen mentioned this pull request Jun 4, 2024
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