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

1486 fix address search in desktop menu #1497

Merged
merged 33 commits into from
Apr 10, 2023

Conversation

edwinjue
Copy link
Member

@edwinjue edwinjue commented Apr 6, 2023

Fixes #1485 #1486

Wow, what a ride.

There is quite a bit here but in a nutshell, I think I got the Address Search, Boundaires and Clicking on Map to sync and play well together as per discussed in our team meeting.

If you are checking out the branch, you may need to run npm i to get it to work since I added lodash.debounce to package.json

Please take a look and let me know if there is anything I may have overlooked or isn't working as expected. I think with this and Bryan's bookmarking we should be pretty good with rolling out v2. Thanks in advance!

  • Up to date with dev branch
  • Branch name follows guidelines
  • All PR Status checks are successful
  • Peer reviewed and approved

Any questions? See the getting started guide

…and should remain reusable. Created a copy of SelectorBox called BoundariesSection that utilizes ui.boundaries.isOpen redux state instead of a local expanded state which is what SelectorBox uses. Using a redux state variable exposes the state of our BoundariesSection component to all other components, which is needed to perform event dispatches to toggle it open and closed from other components accordingly
…ries section from CouncilSelector when selecting a neighborhood council no longer utilizes a click event dispatch but instead makes use of redux closeBoundaries dispatch to set ui.boundaries.isOpen to false
…uncil gets unselected from the council selector of the boundaries section
…ion when zooming out of map. Also collapse boundaries section when clicking into a neightborhood district on the map
…Selector to be consistent with other parts of codebase
…e address search input from any component. this fixed a bug. searching A, selecting boundary B and searching A again now works.
…s search input during zoom out when clicking outside of a zoomed in nc
@edwinjue edwinjue linked an issue Apr 6, 2023 that may be closed by this pull request
4 tasks
…e others think it is ok to do this in react class components. removed TODO comment and added optional chaining to addressSearchIsEmpty
…ariesSection in CouncilSelector/index.js instead of relative path
@edwinjue edwinjue merged commit a129468 into dev Apr 10, 2023
@edwinjue edwinjue deleted the 1486-fix-address-search-in-desktop-menu branch April 10, 2023 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants