ECMWFCode4Earth / vAirify

code repository for 2024 Code for Earth project #16
0 stars 0 forks source link

Add charts to display site measurements for each pollutant #121

Closed amehta-scottlogic closed 1 week ago

amehta-scottlogic commented 1 week ago

Description

This PR adds in site measurement charts showing individual site readings for each pollutant for a city

There is probably still quite a lot to be done here - but it might just have to be the first pass until we get some feedback

All charts

https://github.com/ECMWFCode4Earth/vAirify/assets/110030119/65763dec-beef-44cd-8754-f44c7a47d88b

Site selection

https://github.com/ECMWFCode4Earth/vAirify/assets/110030119/1434d87d-1e07-4b19-b23d-45dcd8301ab1

github-actions[bot] commented 1 week ago

Coverage report for air-quality-ui

St.:grey_question:
Category Percentage Covered / Total
🟒 Statements 98.26% 282/287
🟒 Branches
97.5% (+1.01% πŸ”Ό)
78/80
🟒 Functions
93.51% (+3.92% πŸ”Ό)
72/77
🟒 Lines 98.08% 255/260
Show new covered files 🐣 |
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :---------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------------------------ | :--------- | :------- | :-------- | :---- | | 🟒 |
`...` / fetch-common.ts
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / echarts-service.ts
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / AverageComparisonChart.tsx
| 100% | 100% | 100% | 100% | | 🟒 |
`...` / SiteMeasurementsChart.tsx
| 100% | 100% | 100% | 100% | | 🟒 | context.ts | 100% | 100% | 100% | 100% | | 🟒 |
`...` / LoadingSpinner.tsx
| 100% | 100% | 100% | 100% |
Show files with reduced coverage πŸ”» |
St.:grey_question:
| File | Statements | Branches | Functions | Lines | | :---------------------------------------------------------------------------------------------------------------------------------------: | :------------------------------------------------------------------------------------- | :------------------------------------------------------------ | :----------------------------------------------------------- | :----------------------------------------------------------- | :------------------------------------------------------------ | | 🟒 |
`...` / SingleCity.tsx
|
96.88% (+5.57% πŸ”Ό)
|
90.91% (-9.09% πŸ”»)
|
89.47% (+39.47% πŸ”Ό)
|
96.77% (+5.47% πŸ”Ό)
| | 🟒 |
`...` / GlobalSummary.tsx
| 85% | 100% | 25% | 85% |

Test suite run success

63 tests passing in 15 suites.

Report generated by πŸ§ͺjest coverage report action from 343a6721493f91dcda530d2387f09c6a908201c2