Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make discount rules flag visible #4624

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/pretty-hairs-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Make discount rules flag visible
7 changes: 5 additions & 2 deletions .featureFlags/discounts-rules.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading