Replace home shortcuts with illustrated icons and drop the new-products tile.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-26 11:14:41 +03:30
co-authored by Cursor
parent 892a1fbcf3
commit d4a03cea0a
59 changed files with 56 additions and 59 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 95 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 120 KiB

+10 -13
View File
@@ -13,7 +13,6 @@ import levelMedalIcon from '@/assets/images/level-medal.webp'
import quickCategoriesGridIcon from '@/assets/images/quick-categories-grid.webp'
import quickCatalogRequestIcon from '@/assets/images/quick-catalog-request.webp'
import latestOrderStatus from '@/assets/images/latest-order-status.webp'
import quickNewProductsIcon from '@/assets/images/quick-new-products.webp'
import IconHeart from '@/components/icons/IconHeart.vue'
import IconChevronBack from '@/components/icons/IconChevronBack.vue'
import { formatNumber } from '@/utils/format'
@@ -50,17 +49,15 @@ type QuickAction = {
}
const customerActions: QuickAction[] = [
{ id: 'qa-new', label: 'محصولات جدید', to: '/products', image: quickNewProductsIcon },
{ id: 'qa-cat', label: 'دسته بندی', to: '/categories', image: quickCategoriesGridIcon },
{ id: 'qa-club', label: 'آخرین وضعیت سفارش', to: '/orders/latest-status', image:latestOrderStatus },
{ id: 'qa-swatch', label: 'آخرین درخواست کالیته', to: '/catalog-requests/latest-status', image: quickCatalogRequestIcon },
{ id: 'qa-club', label: 'وضعیت سفارش', to: '/orders/latest-status', image: latestOrderStatus },
{ id: 'qa-swatch', label: 'درخواست کالیته', to: '/catalog-requests/latest-status', image: quickCatalogRequestIcon },
]
const agentActions: QuickAction[] = [
{ id: 'qa-new', label: 'محصولات جدید', to: '/products', image: quickNewProductsIcon },
{ id: 'qa-cat', label: 'دسته بندی', to: '/categories', image: quickCategoriesGridIcon },
{ id: 'qa-customers', label: 'آخرین وضعیت سفارش', to: '/orders/latest-status', image: latestOrderStatus },
{ id: 'qa-swatch', label: 'آخرین درخواست کالیته', to: '/catalog-requests/latest-status', image: quickCatalogRequestIcon },
{ id: 'qa-customers', label: 'وضعیت سفارش', to: '/orders/latest-status', image: latestOrderStatus },
{ id: 'qa-swatch', label: 'درخواست کالیته', to: '/catalog-requests/latest-status', image: quickCatalogRequestIcon },
]
const actions = computed(() => (auth.isAgent ? agentActions : customerActions))
@@ -681,7 +678,7 @@ async function toggleFavorite(productId: string) {
.quick-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-columns: repeat(3, 1fr);
gap: 8px;
}
@@ -699,8 +696,8 @@ async function toggleFavorite(productId: string) {
}
.quick-card__icon {
width: 60px;
height: 60px;
width: 72px;
height: 72px;
border-radius: 12px;
display: grid;
place-items: center;
@@ -710,8 +707,8 @@ async function toggleFavorite(productId: string) {
}
.quick-card__image {
width: 32px;
height: 32px;
width: 64px;
height: 64px;
display: block;
object-fit: contain;
}
@@ -1151,7 +1148,7 @@ html.dark .product-card__sub {
.quick-grid {
grid-area: quick;
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 14px;
}