Skip to content

Commit

Permalink
Use client vouche codes under feature flag
Browse files Browse the repository at this point in the history
  • Loading branch information
poulch committed Oct 10, 2023
1 parent e4709bc commit e062b07
Show file tree
Hide file tree
Showing 24 changed files with 159 additions and 1,524 deletions.
15 changes: 13 additions & 2 deletions .featureFlags/generated.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
// @ts-nocheck

import J41627 from "./images/filters.png"
import O81816 from "./images/filters.png"

const product_filters = () => (<><p><img src={J41627} alt="new filters"/></p>
const product_filters = () => (<><p><img src={O81816} 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>
</>)
const voucher_codes = () => (<><p>Allow to generat multple codes per single voucher</p>
</>)

export const AVAILABLE_FLAGS = [{
name: "product_filters",
Expand All @@ -16,4 +18,13 @@ export const AVAILABLE_FLAGS = [{
enabled: true,
payload: "default",
}
},{
name: "voucher_codes",
displayName: "Voucher codes",
component: voucher_codes,
visible: false,
content: {
enabled: false,
payload: "default",
}
}] as const;
9 changes: 9 additions & 0 deletions .featureFlags/voucher-codes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: voucher_codes
displayName: Voucher codes
enabled: false
payload: "default"
visible: false
---

Allow to generat multple codes per single voucher
2 changes: 1 addition & 1 deletion fetch-schema.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema: https://multiple-codes-for-voucher-feature.api.saleor.rocks/graphql/
schema: ${API_URI}
generates:
./introspection.json:
plugins:
Expand Down
Loading

0 comments on commit e062b07

Please sign in to comment.