feat(admin): category editor auto-slug, SEO fill, breadcrumb and icon explainers

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

P0 user feedback: category icon input and breadcrumbs ('Хлебные крошки') were unexplained, slug and SEO were manual.

- Title edits derive the slug and SEO title with the same never-overwrite-manual-input rule as products (verified in browser)
- SEO group gains the same 'Fill from product details' one-click action
- Icon field now explains itself (emoji/symbol shown in menus) and shows a live preview of the entered symbol
- Breadcrumb block explains in merchant language what customers see (Home › Electronics › Phones) and where it comes from; separator changed to › to match the storefront
- New adminCategories keys (navBreadcrumbHint, iconHint) in en/ru/hy
This commit is contained in:
sdarbinyan
2026-07-19 08:35:18 +04:00
parent b16e3002e4
commit ba999b7dbb
7 changed files with 60 additions and 5 deletions

View File

@@ -1417,6 +1417,8 @@ export const en: Translations = {
groupAdvanced: 'Advanced',
visibilityExplain: 'A hidden category and its products stay out of the storefront navigation and search until you make it visible again.',
navBreadcrumb: 'Breadcrumb',
navBreadcrumbHint: 'This is the path customers see above this category, e.g. Home Electronics Phones. It comes from the parent category you choose.',
iconHint: 'A small emoji or symbol shown next to the category name in menus, e.g. 📱. Leave empty for none.',
navRoot: 'This is a top-level category.',
navChildren: 'Subcategories',
navNoChildren: 'No subcategories yet.',

View File

@@ -1412,6 +1412,8 @@ export const hy: Translations = {
groupAdvanced: 'Լրացուցիչ',
visibilityExplain: 'Թաքցված կատեգորիան և դրա ապրանքները չեն երևում խանութի նավիգացիայում և որոնման մեջ, մինչև այն նորից տեսանելի դարձնեք։',
navBreadcrumb: 'Ուղենիշ',
navBreadcrumbHint: 'Սա այն ուղին է, որը գնորդները տեսնում են կատեգորիայի վերևում, օր.՝ Գլխավոր Էլեկտրոնիկա Հեռախոսներ։ Այն կառուցվում է ընտրված ծնող կատեգորիայից։',
iconHint: 'Փոքր էմոջի կամ նշան կատեգորիայի անվան կողքին մենյուում, օր.՝ 📱։ Թողեք դատարկ, եթե պետք չէ։',
navRoot: 'Սա վերին մակարդակի կատեգորիա է։',
navChildren: 'Ենթակատեգորիաներ',
navNoChildren: 'Ենթակատեգորիաներ դեռ չկան։',

View File

@@ -1412,6 +1412,8 @@ export const ru: Translations = {
groupAdvanced: 'Дополнительно',
visibilityExplain: 'Скрытая категория и её товары не отображаются в навигации и поиске магазина, пока вы снова не сделаете её видимой.',
navBreadcrumb: 'Хлебные крошки',
navBreadcrumbHint: 'Это путь, который покупатели видят над категорией, напр. Главная Электроника Телефоны. Он строится из выбранной родительской категории.',
iconHint: 'Небольшой эмодзи или символ рядом с названием категории в меню, напр. 📱. Оставьте пустым, если не нужен.',
navRoot: 'Это категория верхнего уровня.',
navChildren: 'Подкатегории',
navNoChildren: 'Подкатегорий пока нет.',

View File

@@ -1424,6 +1424,8 @@ export interface Translations {
groupAdvanced: string;
visibilityExplain: string;
navBreadcrumb: string;
navBreadcrumbHint: string;
iconHint: string;
navRoot: string;
navChildren: string;
navNoChildren: string;