Skip to content

Commit

Permalink
Make discount rules flag visible (#4624)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrzejewsky committed Jan 12, 2024
1 parent 621c368 commit 1a32555
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/pretty-hairs-happen.md
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Make discount rules flag visible
7 changes: 5 additions & 2 deletions .featureFlags/discounts-rules.md
Expand Up @@ -3,7 +3,10 @@ name: discounts_rules
displayName: Discounts rules
enabled: false
payload: "default"
visible: false
visible: true
---

New discount rules base on new promotion API
![Discount rules](./images/discounts-list.png)

Apply the new discounts rules to narrow your promotions audience.
Set up conditions and channels that must be fulfilled to apply defined reward.
11 changes: 7 additions & 4 deletions .featureFlags/generated.tsx
@@ -1,10 +1,13 @@
// @ts-nocheck

import R48846 from "./images/filters.png"
import L10838 from "./images/discounts-list.png"
import W33914 from "./images/filters.png"

const discounts_rules = () => (<><p>New discount rules base on new promotion API</p>
const discounts_rules = () => (<><p><img src={L10838} alt="Discount rules"/></p>
<p>Apply the new discounts rules to narrow your promotions audience.
Set up conditions and channels that must be fulfilled to apply defined reward.</p>
</>)
const product_filters = () => (<><p><img src={R48846} alt="new filters"/></p>
const product_filters = () => (<><p><img src={W33914} alt="new filters"/></p>
<p>Experience the new look and enhanced abilities of new fitering mechanism.
Easily combine any criteria you want, and quickly browse their values.</p>
</>)
Expand All @@ -13,7 +16,7 @@ export const AVAILABLE_FLAGS = [{
name: "discounts_rules",
displayName: "Discounts rules",
component: discounts_rules,
visible: false,
visible: true,
content: {
enabled: false,
payload: "default",
Expand Down
Binary file added .featureFlags/images/discounts-list.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1a32555

Please sign in to comment.