ruthmoog / bee

🐝 A mobile application for surveying bumblebees.
https://purple-wood-8308.fly.dev/
MIT License
2 stars 0 forks source link

Wind Speed selection when editing #26

Closed ruthmoog closed 1 year ago

ruthmoog commented 1 year ago

At the moment the wind speed field is editable as free text. This is ok, but there should be a drop down available for the user to select one of the Beaufort scale items incase the data from the weather API is not accurate.

Snippet of windSpeed text from src/weather.js

export const unableToFetchWindSpeed = "Unable to fetch wind speed";
export const calm0 = "0 <dfn>Smoke rises vertically</dfn>";
export const lightAir1 = "1 <dfn>Slight smoke drift</dfn>";
export const lightBreeze2 = "2 <dfn>Wind felt on face, leaves rustle</dfn>";
export const gentleBreeze3 = "3 <dfn>Leaves and twigs in slight motion</dfn>";
export const moderateBreeze4 = "4 <dfn>Dust raised and small branches move</dfn>";
export const freshBreeze5 = "5 <dfn>Small trees in leaf begin to sway</dfn>";
export const strongBreeze6 = "6 <dfn>Large branches move and trees sway</dfn>";
export const highWind7toHurricaneForce12 = "⚠️ Avoid or abandon in bad weather";
ruthmoog commented 1 year ago

Fixed with commits https://github.com/ruthmoog/bee/commit/bc2b8b84990b6a3cc9fee603fc0582a0d7f2927f and https://github.com/ruthmoog/bee/commit/f8bd6d58c48864b2532adb40655456cba6a27bfa