From 330f24c8d7e024d3117b50a317a8bc489cfd5e6d Mon Sep 17 00:00:00 2001 From: sdarbinyan Date: Mon, 20 Jul 2026 02:18:19 +0400 Subject: [PATCH] fix(icons): migrate backoffice shell + product form to Lucide Admin sidebar nav, topbar icon buttons (menu, search, quick-publish, tenant selector, notifications), and the product-form translations disclosure icon now render via app-icon instead of PrimeIcons classes. AdminNavLink/AdminNavAction.icon retyped to AppIconName. Co-Authored-By: Claude Sonnet 5 --- .../admin-product-form.component.html | 4 +- .../admin-product-form.component.ts | 2 + .../admin/shell/admin-layout.component.html | 18 ++++---- .../admin/shell/admin-layout.component.ts | 3 +- .../features/admin/shell/admin-nav.model.ts | 42 ++++++++++--------- 5 files changed, 37 insertions(+), 32 deletions(-) diff --git a/src/app/features/admin/products/components/admin-product-form.component.html b/src/app/features/admin/products/components/admin-product-form.component.html index e447da3..912b3b9 100644 --- a/src/app/features/admin/products/components/admin-product-form.component.html +++ b/src/app/features/admin/products/components/admin-product-form.component.html @@ -51,7 +51,7 @@
- + {{ 'adminProducts.translations' | translate }} {{ translatedLocalesCount() }}/{{ locales.length }} @@ -257,7 +257,7 @@
- + {{ 'adminProducts.translations' | translate }}

{{ 'adminProducts.translationsHint' | translate }}

diff --git a/src/app/features/admin/products/components/admin-product-form.component.ts b/src/app/features/admin/products/components/admin-product-form.component.ts index 1f47f1e..5718f24 100644 --- a/src/app/features/admin/products/components/admin-product-form.component.ts +++ b/src/app/features/admin/products/components/admin-product-form.component.ts @@ -15,6 +15,7 @@ import { MarketplaceHtmlEditorComponent } from '../../../project-editor/componen import { AdminProductHealth } from '../facade/admin-products.facade'; import { ProductHealthWidgetComponent, ProductHealthItem } from './product-health-widget/product-health-widget.component'; import { ProductVariantsEditorComponent } from './product-variants-editor/product-variants-editor.component'; +import { IconComponent } from '../../../../shared/ui/icon/icon.component'; export type AdminProductEditorGroup = 'general' | 'media' | 'pricing' | 'inventory' | 'categories' | 'attributes' | 'seo' | 'visibility' | 'advanced'; @@ -35,6 +36,7 @@ export type AdminProductEditorGroup = 'general' | 'media' | 'pricing' | 'invento MarketplaceHtmlEditorComponent, ProductHealthWidgetComponent, ProductVariantsEditorComponent, + IconComponent, ], templateUrl: './admin-product-form.component.html', styleUrls: ['./admin-product-form.component.scss'], diff --git a/src/app/features/admin/shell/admin-layout.component.html b/src/app/features/admin/shell/admin-layout.component.html index 56a4323..8e0b704 100644 --- a/src/app/features/admin/shell/admin-layout.component.html +++ b/src/app/features/admin/shell/admin-layout.component.html @@ -27,14 +27,14 @@ routerLinkActive="admin-layout__nav-link--active" [routerLinkActiveOptions]="{ exact: false }" > - + {{ entry.labelKey | translate }} } @else if (entry.type === 'link' && entry.comingSoon) {
  • @@ -48,7 +48,7 @@ @if (entry.type === 'link' && entry.comingSoon) {
  • @@ -56,7 +56,7 @@ } @else if (entry.type === 'action') {
  • @@ -74,7 +74,7 @@ [attr.aria-label]="(mobileDrawerOpen() ? 'adminShell.closeSidebar' : 'adminShell.openSidebar') | translate" (click)="toggleMobileDrawer()" > - +
    @@ -102,7 +102,7 @@
    @@ -112,7 +112,7 @@ disabled [title]="'adminShell.topbar.quickPublishComingSoon' | translate" > - + {{ 'adminShell.topbar.quickPublish' | translate }} @@ -122,7 +122,7 @@ disabled [title]="'adminShell.topbar.tenantSelectorComingSoon' | translate" > - + {{ 'adminShell.topbar.tenantSelector' | translate }} @@ -135,7 +135,7 @@ [attr.aria-label]="'adminShell.topbar.notifications' | translate" (click)="toggleNotifications()" > - + @if (notificationsOpen()) {