Add special orders admin UI and product specials tools.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
b103e330ef
commit
d63e3a83d5
+23
-1
@@ -1,11 +1,13 @@
|
||||
import {
|
||||
CakeSlice,
|
||||
ClipboardPen,
|
||||
FolderTree,
|
||||
MapPin,
|
||||
Package,
|
||||
Percent,
|
||||
PlusCircle,
|
||||
Settings,
|
||||
Sparkles,
|
||||
UserRound,
|
||||
Users,
|
||||
type LucideIcon,
|
||||
@@ -60,6 +62,14 @@ export const productTiles: ProductTile[] = [
|
||||
href: '/products/categories',
|
||||
icon: FolderTree,
|
||||
},
|
||||
{
|
||||
id: 'products-specials',
|
||||
title: 'محصولات ویژه',
|
||||
titleEn: 'Special Products',
|
||||
description: 'مشاهده و مدیریت محصولات ویژه فروشگاه',
|
||||
href: '/products/specials',
|
||||
icon: Sparkles,
|
||||
},
|
||||
]
|
||||
|
||||
export const navSections: NavSection[] = [
|
||||
@@ -96,6 +106,15 @@ export const navSections: NavSection[] = [
|
||||
icon: Package,
|
||||
items: [],
|
||||
},
|
||||
{
|
||||
id: 'special-orders',
|
||||
title: 'سفارشات ویژه',
|
||||
titleEn: 'Special Orders',
|
||||
description: 'درخواستهای سفارشی کیک و شیرینی بدون پرداخت',
|
||||
href: '/special-orders',
|
||||
icon: ClipboardPen,
|
||||
items: [],
|
||||
},
|
||||
{
|
||||
id: 'discounts',
|
||||
title: 'کدهای تخفیف',
|
||||
@@ -118,7 +137,10 @@ export const navSections: NavSection[] = [
|
||||
|
||||
/** Header links — settings & discounts stay on home tiles only. */
|
||||
export const adminHeaderSections: NavSection[] = navSections.filter(
|
||||
(section) => section.id !== 'settings' && section.id !== 'discounts',
|
||||
(section) =>
|
||||
section.id !== 'settings' &&
|
||||
section.id !== 'discounts' &&
|
||||
section.id !== 'special-orders',
|
||||
)
|
||||
|
||||
export const customerNavSections: NavSection[] = [
|
||||
|
||||
Reference in New Issue
Block a user