EQWorks / widget-studio

Widget-creating tool for charts, maps, tables, stats
https://eqworks.github.io/widget-studio/
2 stars 3 forks source link

[G2M] Adjust enabling map icon; update mapGroupKey with valid geo groupKey and vice versa #63

Closed geoerika closed 2 years ago

geoerika commented 2 years ago

Changes:

  1. Rename & refactor mapGroupByKeys as validMapGroupKeys and add it to state to use in mapGroupKey controls and map icon availability
  2. Update mapGroupKey when we select a valid geo key for groupKey in chart widgets so we have it available if we switch to map widget type and vice versa, update groupKey with mapGroupKey

Before: map icon was disabled if mapGroupKey was reset and we switched to a chart widget https://user-images.githubusercontent.com/41120953/149574751-3e2f52df-7159-4c73-b3d5-5f1f6d252dbc.mov

After: https://user-images.githubusercontent.com/41120953/149574819-f70eba89-8099-4ba6-8a71-bb33faccbf2e.mov

github-actions[bot] commented 2 years ago

📚 Storybook preview (updated to b4a41c708d710f7b24978594a7b50da79fc2f643)