phlask / phlask-map

Code behind the Phlask Web Map
https://beta.phlask.me
34 stars 35 forks source link

Update V2 ChooseResource #345

Closed tomporvaz closed 2 months ago

tomporvaz commented 1 year ago

Is your feature request related to a problem? Please describe. As a part of the effort to deploy PHLASK 2.0, we would like the ChooseResource component in the AddResourceModal folder to match the design in the Crowdsourcing menu design shared here: https://www.figma.com/file/VGGqwl3Eq3GQIAO9I6LoNW/PHLASK?type=design&node-id=8036-116730&mode=design&t=vWtWR7usVSHOxYYR-0

Describe the solution you'd like When a user clicks on the resource button they will get a menu with choices for selecting which resource to display The menu should include Water, Food, Foraging, and Bathroom. When the user selects a resource, the near me icon should update to whichever resource was selected, and the map should display only those resources.

Additional context This issue was recently solved with issue #290 and even longer ago by #217. The components exist, but need to connected to function. Some styling may need to be updated to match the latest designs. To enable the button you will need to render <ChooseResource /> when props.toolbarModal == TOOLBAR_MODAL_RESOURCE.

tomporvaz commented 11 months ago

@astoppop Working on. Will be done soon with Add Site features too.

tomporvaz commented 11 months ago

@astoppop The larger Button is correct. Like here: https://www.figma.com/file/VGGqwl3Eq3GQIAO9I6LoNW/PHLASK?type=design&node-id=8303-158048&mode=design&t=KFcf7qTJHs4b1cky-0