-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(search): Implement product search
- A buyer needs to have a way to search for a product t. by name, by price range, by category, etc it can also be a combination of two or more with AND operation - [Delivers #187419017]
- Loading branch information
1 parent
3368164
commit 0dfdd2b
Showing
10 changed files
with
404 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { DynamicData } from './DynamicData'; | ||
|
||
export type searchState = { | ||
isLoading: boolean; | ||
error: string | null; | ||
searchInputs: searchInputs; | ||
data: DynamicData[]; | ||
}; | ||
|
||
export type searchInputs = { | ||
name?: string | null; | ||
minPrice?: string | null; | ||
maxPrice?: string | null; | ||
categoryName?: string | null; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.