Rebuild-Black-Business / RBB-Website

Website to help connect black-owned businesses with consumers and resources
https://www.rebuildblackbusiness.com/
MIT License
118 stars 73 forks source link

Create BusinessFilter Component #52

Closed magnificode closed 4 years ago

magnificode commented 4 years ago

BusinessFilter

Since data structure has been finalized we can now work on getting the BusinessFilter functionality wired up. Here's the logic:

As a user, I should be able to optionally filter businesses by category. This field should incorporate the following:

Field type: dropdown select Field label: Business Field placeholder option: Select type Dropdown options:

As a user, I should be able to optionally filter businesses by City / State OR Zipcode. By leveraging this NPM package we should be able to take in "Atlanta, GA" for example, return an array of zip codes that are associated with that city state string, and return results that match any zip in that array

Field type: Text search (likely will need strict validation to ensure the "Atlanta, GA" format. Searching "Atlanta" or "ATL" will not yield any results in v0). This will accept both city state, or a zip code.

Field label: Location Field placeholder text : Eg. "Atlanta, GA" or "30301"

As a user, I should be able to filter businesses by their level of need. This is a boolean value in the database. Businesses impacted by current events will be labelled as "In Need" in the database.

Field type: Checkbox (Should be pre-checked for v0) Field Label: "In Immediate Need" (this is subject to change as designs are fully approved)

magnificode commented 4 years ago

@ryancharris will be tackling this

mbifulco commented 4 years ago

This was closed by #55