diff --git a/components/dashboard/promotions/EditPromotionForm.tsx b/components/dashboard/promotions/EditPromotionForm.tsx
index df01694..473b117 100644
--- a/components/dashboard/promotions/EditPromotionForm.tsx
+++ b/components/dashboard/promotions/EditPromotionForm.tsx
@@ -22,7 +22,8 @@ import { Textarea } from '@/components/ui/textarea';
import { toast } from '@/components/ui/use-toast';
import { Promotion, PromotionFormData } from '@/lib/types/promotion';
import { fetchClient } from '@/lib/api';
-import ProductSelector from './ProductSelector';
+import dynamic from 'next/dynamic';
+const ProductSelector = dynamic(() => import('./ProductSelector'));
// Form schema validation with Zod (same as NewPromotionForm)
const formSchema = z.object({
@@ -350,33 +351,27 @@ export default function EditPromotionForm({ promotion, onSuccess, onCancel }: Ed
)}
/>
- {/* Show blacklist selector for "all" and "exclude_specific" modes */}
- {(form.watch('applicableProducts') === 'all' || form.watch('applicableProducts') === 'exclude_specific') && (
+ {/* Show blacklist selector only for "all" mode */}
+ {form.watch('applicableProducts') === 'all' && (
(
- {form.watch('applicableProducts') === 'all'
- ? 'Exclude Products (Blacklist)'
- : 'Products to Exclude'}
+ Exclude Products (Blacklist)
- {form.watch('applicableProducts') === 'all'
- ? 'Select products that should not be eligible for this promotion'
- : 'Select products to exclude in addition to those selected above'}
+ Select products that should not be eligible for this promotion
@@ -393,7 +388,7 @@ export default function EditPromotionForm({ promotion, onSuccess, onCancel }: Ed
{form.watch('applicableProducts') === 'specific'
- ? 'Select Specific Products'
+ ? 'Eligible Products'
: 'Products to Exclude'}
diff --git a/components/dashboard/promotions/NewPromotionForm.tsx b/components/dashboard/promotions/NewPromotionForm.tsx
index 4c3f151..715799c 100644
--- a/components/dashboard/promotions/NewPromotionForm.tsx
+++ b/components/dashboard/promotions/NewPromotionForm.tsx
@@ -23,7 +23,8 @@ import { toast } from '@/components/ui/use-toast';
import { PromotionFormData } from '@/lib/types/promotion';
import { fetchClient } from '@/lib/api';
import { DatePicker } from '@/components/ui/date-picker';
-import ProductSelector from './ProductSelector';
+import dynamic from 'next/dynamic';
+const ProductSelector = dynamic(() => import('./ProductSelector'));
// Form schema validation with Zod
const formSchema = z.object({
@@ -345,33 +346,27 @@ export default function NewPromotionForm({ onSuccess, onCancel }: NewPromotionFo
)}
/>
- {/* Show blacklist selector for "all" and "exclude_specific" modes */}
- {(form.watch('applicableProducts') === 'all' || form.watch('applicableProducts') === 'exclude_specific') && (
+ {/* Show blacklist selector only for "all" mode */}
+ {form.watch('applicableProducts') === 'all' && (
(
- {form.watch('applicableProducts') === 'all'
- ? 'Exclude Products (Blacklist)'
- : 'Products to Exclude'}
+ Exclude Products (Blacklist)
- {form.watch('applicableProducts') === 'all'
- ? 'Select products that should not be eligible for this promotion'
- : 'Select products to exclude in addition to those selected above'}
+ Select products that should not be eligible for this promotion
@@ -388,7 +383,7 @@ export default function NewPromotionForm({ onSuccess, onCancel }: NewPromotionFo
{form.watch('applicableProducts') === 'specific'
- ? 'Select Specific Products'
+ ? 'Eligible Products'
: 'Products to Exclude'}
diff --git a/public/git-info.json b/public/git-info.json
index 8da98fe..b406936 100644
--- a/public/git-info.json
+++ b/public/git-info.json
@@ -1,4 +1,4 @@
{
- "commitHash": "4d1c37d",
- "buildTime": "2025-07-30T14:02:04.518Z"
+ "commitHash": "f19ddc4",
+ "buildTime": "2025-08-07T22:45:52.166Z"
}
\ No newline at end of file