Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map type plugin feature #399

Merged
merged 20 commits into from
Oct 25, 2023
Merged

Map type plugin feature #399

merged 20 commits into from
Oct 25, 2023

Conversation

dmfalke
Copy link
Member

@dmfalke dmfalke commented Aug 2, 2023

Overview

related to #241
fixes #403

This branch is the target of some PRs related to #241. The changes to merge are primarily concerned with restructuring the left hand menu.

Here is an image of what it looks like now:
image

Note that merged child PRs (listed below) have been approved. Please look at those individual PRs for details. This PR should be approved when we are ready to merge (due to data availability, etc).


Child PRs

dmfalke added 3 commits August 2, 2023 12:10
Changes include:

- Variable renaming
- Modifications to finding active menu item and active map type
- Extracting some components
* Move active viz to realm of map type config, and clean up some labels and ids.
@dmfalke dmfalke marked this pull request as ready for review August 9, 2023 14:23
@dmfalke dmfalke requested a review from bobular August 9, 2023 14:23
@dmfalke
Copy link
Member Author

dmfalke commented Aug 9, 2023

@bobular you won the dice roll for this review!

@dmfalke dmfalke marked this pull request as draft August 24, 2023 15:29
@dmfalke
Copy link
Member Author

dmfalke commented Aug 24, 2023

I've converted this back to a draft, because I don't think it should be merged this close to a release. Also, the UI changes are likely not desired until we have a collections map type implemented.

chowington and others added 9 commits August 30, 2023 12:59
* Remove marker-related props from MapVEuMap

* Move onBoundsChange logic to MapVEuMap; clean up SemanticMarkers hooks

* Extract getDefaultAxisRange function

* Move DraggableLegendPanel to its own module

* Move defaultAnimation to its own module

* Extract bubble overlay config into its own function

* Add MapType plugins

* Wire up MapType plugins

* Use plugin displayName in menu

* Reduce props passed to getData

* Checkpoint commit using @tanstack/query

* Incorporate additional changes from merge

* Checkpoint

- Remove `getData` from `MapTypePlugin` interface
- Utilize react-query to cache network requests
- Move constants from index module, to prevent circular imports

* Add TODO

* Propagate selected values for marker configuration to overlay config

* Remove TODO

* Keep previous query data; use isFetching status to show spinners for maker data

* Introduce `MapTypeHeaderDetails` to `MapTypePlugin`

* Remove unused type

* Crudely reimplment "flyToData"

* Pass valueSpec to standalone map markers

* Remove out of date comments and code

* Remove old comments

* Move shared interface to shared file

* Use destructured variables

* bring back old behaviour for now

---------

Co-authored-by: Bob <uncoolbob@gmail.com>
@dmfalke dmfalke marked this pull request as ready for review October 25, 2023 16:38
Copy link
Member

@bobular bobular left a comment

Choose a reason for hiding this comment

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

Looks good! Don't forget the REMOVE_ME file.

@@ -0,0 +1 @@
This branch is the target for work done to address #241
Copy link
Member

Choose a reason for hiding this comment

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

Did you see this ☝️ ?

Copy link
Member

@bobular bobular left a comment

Choose a reason for hiding this comment

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

Haven't tested but l trust you that this works!

@dmfalke dmfalke merged commit 38c98c7 into main Oct 25, 2023
1 check passed
@dmfalke dmfalke deleted the map-collection-variable-map-type branch October 25, 2023 18:37
@dmfalke dmfalke changed the title Collection map type Map type plugin feature Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants