Skip to content

Conversation

@NickMagidson
Copy link
Contributor

Adding Reset Filter Button

Checklist:

Before submitting your PR, please confirm that you have done the following:

  • I have opened my PR against the staging branch, NOT against main
  • I've run the relevant formatting and linting tools listed in the setup docs
  • I have commented hard-to-understand areas in my code
  • I've reviewed any merge conflicts to make sure they are resolved
  • My changes generate no new warnings

Description

This button will clear out all filter selections. On press, I pass 'CLEAR_DIMENSIONS' in the dispatch from useFilter. I used this method to stay consistent with how it's being used elsewhere in the code.

Related Issue(s)

This PR addresses issue #1196

Type of change

  • Bug fix
  • New feature
  • Breaking change

How Has This Been Tested?

I tested to see if the filter would clear using a variety of different filter combinations. With that, I made sure the filter would clear on different zoom levels while still maintaining the state of "total properties" in accordance to what is visually present on the map.

nlebovits and others added 3 commits April 24, 2025 07:48
* feat: Unvendor awkde

* chore: Remove unused dev dependencies and pin versions

* chore: Alphabatize backend dependencies

* chore: Pin backend dependencies to minor versions

* Basic technologies documentation (CodeForPhilly#1184)

Add in additional documentation about different technologies used in the project for reference for newcomers. Can continue to flush it out as our pipeline gets more settled.

---------

Co-authored-by: Graham Beckley <[email protected]>
Co-authored-by: Nissim Lebovits <[email protected]>
Co-authored-by: Collum Freedman <[email protected]>
Co-authored-by: Adam Levin <[email protected]>
@vercel
Copy link

vercel bot commented Jun 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vacant-lots-proj ❌ Failed (Inspect) Jun 10, 2025 11:17pm

@nlebovits
Copy link
Collaborator

@NickMagidson Like on the other PR, you'll want to remove all files that aren't in src/components, since none of those are associated with the functionality in question. That should clear up all merge conflicts and give us a sense of if the change deploys correctly. :)

@nlebovits
Copy link
Collaborator

Hi @NickMagidson , I'm realizing this ticket was addressed by #1206! It might not be live on the site yet because we haven't merged to deployment in a while. I'll get on that. I'm going to go ahead and close this--sorry for not having caught that earlier. But there are still plenty of open FE tickets! :)

@nlebovits nlebovits closed this Jun 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants