-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce new filters to draft orders (#5380)
* Introduce filers to draft orders * Add method to old filters query params * Remove not used handlers * Fix lint * Fix for data range * Add changeset * Remove snapshot * Add mapper * Improve filters * Fix query variables * Update .changeset/silver-items-unite.md Co-authored-by: Wojciech Mista <[email protected]> * Fix get date value * Generate feature flag * Display new filters base on a feature flag * Extract messages * Add tests --------- Co-authored-by: Wojciech Mista <[email protected]>
- Loading branch information
1 parent
053be92
commit 24c613d
Showing
15 changed files
with
259 additions
and
37 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,5 @@ | ||
--- | ||
"saleor-dashboard": patch | ||
--- | ||
|
||
List of draft orders now use new filters |
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,11 @@ | ||
--- | ||
name: draft_orders_filters | ||
displayName: Draft orders filtering | ||
enabled: true | ||
payload: "default" | ||
visible: true | ||
--- | ||
|
||
 | ||
Experience the new look and enhanced abilities of new fitering mechanism. | ||
Easily combine any criteria you want, and quickly browse their values. |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions
15
src/components/ConditionalFilter/API/DraftOrderFilterAPIProvider.tsx
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 { FilterAPIProvider } from "@dashboard/components/ConditionalFilter/API/FilterAPIProvider"; | ||
|
||
export const useDraftOrderFilterAPIProvider = (): FilterAPIProvider => { | ||
const fetchRightOptions = async () => { | ||
return []; | ||
}; | ||
const fetchLeftOptions = async () => { | ||
return []; | ||
}; | ||
|
||
return { | ||
fetchRightOptions, | ||
fetchLeftOptions, | ||
}; | ||
}; |
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
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.