Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Feature/COR-1170-rioolwaterpagina-verbetering-choropletenkaart-nl #4493

Conversation

APW26
Copy link
Contributor

@APW26 APW26 commented Nov 11, 2022

Summary

This PR addresses the changes described in COR-1170.
TLDR: This PR implements a solution that highlights areas within a choropleth with outdated data scoped to waste water.

Changes:

  • Added a notification to the tooltip of a given area when its data is outdated
  • Added a new item to the legend for the choropleth for waste water
  • Added a new color which is used for an area with outdated data
  • Added new data_is_outdated property to the schemas for GM and VR collections
  • Added some new sanity keys for text

NOTE: I am unsure weather this PR should receive the label Hold. Maybe it should as the data is not added in the backend yet (AFAIK).

BEFORE (Production)

GM
BEFORE

VR
BEFORE-VR

AFTER (Local)

GM
AFTER

VR
AFTER-VR

@APW26 APW26 added the Hold This should not be merged (yet) label Nov 14, 2022
Copy link
Contributor

@VWSCoronaDashboard26 VWSCoronaDashboard26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decided to leave this as a generic comment as I do not want to clutter this pull request with repetitive comments, but have a look at files with abbreviated props such as pr, m, etc.

Copy link
Contributor

@VWSCoronaDashboard26 VWSCoronaDashboard26 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved, but let's not merge this until all schemas can be validated.

@APW26 APW26 requested a review from hasan-ozaynaci November 21, 2022 13:47
…s_outdated property to sewer.json each GM and VR area
@APW26
Copy link
Contributor Author

APW26 commented Nov 21, 2022

@VWSCoronaDashboard26 and @VWSCoronaDashboard19 I've pushed some new changes in the latest commit. Apparently backend needs the datapoint to be present for sewers on all VR and GM areas, so I've added it there as well.

@hasan-ozaynaci
Copy link
Contributor

hasan-ozaynaci commented Nov 21, 2022

@VWSCoronaDashboard26 and @VWSCoronaDashboard19 I've pushed some new changes in the latest commit. Apparently backend needs the datapoint to be present for sewers on all VR and GM areas, so I've added it there as well.

Can you also generate the data types for your schema changes?

@APW26
Copy link
Contributor Author

APW26 commented Nov 21, 2022

@VWSCoronaDashboard26 and @VWSCoronaDashboard19 I've pushed some new changes in the latest commit. Apparently backend needs the datapoint to be present for sewers on all VR and GM areas, so I've added it there as well.

Can you also generate the data types for your schema changes?

@VWSCoronaDashboard19 Done! However, I do believe that this command runs when deploying to any environment, so technically it's not needed right? But i do understand that it helps other devs when pulling in the code.

@hasan-ozaynaci
Copy link
Contributor

hasan-ozaynaci commented Nov 21, 2022

@VWSCoronaDashboard19 Done! However, I do believe that this command runs when deploying to any environment, so technically it's not needed right? But i do understand that it helps other devs when pulling in the code.

Not sure, but I believe it is a manual task to generate types. If types were incorrect, this branch was not mergable due to failing checks on this PR (or a failing pipeline).

@APW26
Copy link
Contributor Author

APW26 commented Nov 21, 2022

Not sure, but I believe it is a manual task to generate types. If types were incorrect, this branch was not mergable due to failing checks on this PR (or a failing pipeline).

Aha, thats good to know. Thanks!

@APW26 APW26 changed the base branch from develop to feature/cor-1228-json-changes November 22, 2022 15:33
…oolwaterpagina-verbetering-choropletenkaart-NL
@APW26 APW26 merged commit f19a5b2 into feature/cor-1228-json-changes Nov 22, 2022
@APW26 APW26 deleted the feature/COR-1147-Rioolwaterpagina-verbetering-choropletenkaart-NL branch November 22, 2022 15:56
@APW26 APW26 removed the Hold This should not be merged (yet) label Nov 23, 2022
Jorrik-Klijnsma-Work pushed a commit that referenced this pull request Nov 23, 2022
)

* feat(sewer-choropleth): Implement tooltip notification for outdated data

* feat(sewer-choropleth): Implement yellow color on map when data for that area is outdated

* feat(sewer-choropleth): Implements new legend item for outdated data, exports font-sizes.

* feat(sewer-choropleth): Cleanup and finalize outdated data tooltip addition.

* feat(sewer-choropleth): Adjust tooltip to account for different data in VR and GM datapoints.

* feat(sewer-choropleth): Adds new outdated data property to schema for GM and VR collections.

* feat(sewer-choropleth): New sanity keys and data types.

* feat(sewer-choropleth): PR feedback round 1, and a few other fixes/refactoring.

* feat(sewer-choropleth): PR feedback round 2 - Add content for assistive technologies (screenreaders).

* feat(sewer-choropleth): PR feedback - Change condition for assigning outdated data variables.

* feat(sewer-choropleth): Based on new info from backend, adding data_is_outdated property to sewer.json each GM and VR area

* feat(sewer-choropleth): generate data types for new properties
hasan-ozaynaci added a commit that referenced this pull request Nov 24, 2022
* feat(booster): remove and remame booster data from existing schemas (#4499)

* Feature/COR-1170-rioolwaterpagina-verbetering-choropletenkaart-nl (#4493)

* feat(sewer-choropleth): Implement tooltip notification for outdated data

* feat(sewer-choropleth): Implement yellow color on map when data for that area is outdated

* feat(sewer-choropleth): Implements new legend item for outdated data, exports font-sizes.

* feat(sewer-choropleth): Cleanup and finalize outdated data tooltip addition.

* feat(sewer-choropleth): Adjust tooltip to account for different data in VR and GM datapoints.

* feat(sewer-choropleth): Adds new outdated data property to schema for GM and VR collections.

* feat(sewer-choropleth): New sanity keys and data types.

* feat(sewer-choropleth): PR feedback round 1, and a few other fixes/refactoring.

* feat(sewer-choropleth): PR feedback round 2 - Add content for assistive technologies (screenreaders).

* feat(sewer-choropleth): PR feedback - Change condition for assigning outdated data variables.

* feat(sewer-choropleth): Based on new info from backend, adding data_is_outdated property to sewer.json each GM and VR area

* feat(sewer-choropleth): generate data types for new properties

* feat(booster): remove and remame booster data from existing schemas (#4499)

* Feature/COR-1170-rioolwaterpagina-verbetering-choropletenkaart-nl (#4493)

* feat(sewer-choropleth): Implement tooltip notification for outdated data

* feat(sewer-choropleth): Implement yellow color on map when data for that area is outdated

* feat(sewer-choropleth): Implements new legend item for outdated data, exports font-sizes.

* feat(sewer-choropleth): Cleanup and finalize outdated data tooltip addition.

* feat(sewer-choropleth): Adjust tooltip to account for different data in VR and GM datapoints.

* feat(sewer-choropleth): Adds new outdated data property to schema for GM and VR collections.

* feat(sewer-choropleth): New sanity keys and data types.

* feat(sewer-choropleth): PR feedback round 1, and a few other fixes/refactoring.

* feat(sewer-choropleth): PR feedback round 2 - Add content for assistive technologies (screenreaders).

* feat(sewer-choropleth): PR feedback - Change condition for assigning outdated data variables.

* feat(sewer-choropleth): Based on new info from backend, adding data_is_outdated property to sewer.json each GM and VR area

* feat(sewer-choropleth): generate data types for new properties

* COR-1128 Restructure collection schemas (#4506)


Co-authored-by: AP <[email protected]>
Co-authored-by: VWSCoronaDashboard21 <[email protected]>
Co-authored-by: VWSCoronaDashboard18 <[email protected]>

Co-authored-by: AP <[email protected]>
Co-authored-by: VWSCoronaDashboard21 <[email protected]>
Co-authored-by: VWSCoronaDashboard18 <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants