-
Notifications
You must be signed in to change notification settings - Fork 5
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
Scorecard updates to city in view or closest to center of map #143
Conversation
Right now, only the scorecard updates. Should the dropdown also change? |
I think probably? Otherwise you get into a weird UI state where the UI components aren't in sync. What do you think? |
I agree. My concern is how do we differentiate between changes in the dropdown by the user versus by a function. Because if we don't, then changing the dropdown will also 'snap' the map view to the other city. |
we want that, right? That's the current behavior. |
Yes, for switching cities via the dropdown. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yo this is so awesome! Great work! I love the UX of this when you scroll around the map. It's so intuitive and fluid.
tests/app/setUpSite.test.js
Outdated
await page.mouse.up(); | ||
// Click on Birmingham boundary. | ||
await dragMap(page, 200); | ||
// Click on Birmingham ;boundary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Click on Birmingham ;boundary. | |
// Click on Birmingham boundary. |
Right now, parking lots will only load if you use the dropdown. However, a better implementation is to "Load when dragged into view". Might wait for #143 to implement. To-do: - [x] Load when dragged into view - [x] Tests --------- Co-authored-by: tunglinn <tunglin@yahoo.com>
Resolves #112