feat(admin): Seller Management Phase 1 UI - Partners section, empty state, request/learn-more dialogs
No backend, no CRUD, no API, no business logic - production-quality
UI only, built entirely from existing shared components (app-dialog,
app-empty-state, app-button, app-form-field, app-input, app-icon,
app-badge). Gated per ADR-011: reads
modules.sellerManagement.enabled from bootstrap (always false today,
no backend sets it) rather than hardcoding disabled state.
New:
- AdminSellerManagementPageComponent (features/admin/seller-management/
pages/) - renders the specified empty state (title/description/
Request Access + Learn More buttons) using existing shared/ui
primitives only, no new UI infrastructure.
- Request Access dialog: Company/Email/Message form via
app-form-field + app-input + a plain textarea (no dedicated
textarea component exists yet, styled to match app-input's own
tokens exactly). Submission is mocked (setTimeout), no API call.
On submit: closes and opens a success dialog ("Thank you...").
- Learn More dialog: 6 capability bullets (seller dashboards,
storefronts, permissions, analytics, product ownership, marketplace
administration) under a "Coming Soon" badge.
- New admin nav group "Partners" > "Seller Management" link
(admin-nav.model.ts), new route /backoffice/partners/seller-management
(app.routes.ts), using the same loadComponent/breadcrumb pattern as
every other admin route.
Translations: full en/ru/hy coverage, zero hardcoded strings - new
adminShell.nav.{partnersGroup,sellerManagement},
adminShell.pages.sellerManagement, and a new adminSellerManagement.*
namespace (emptyState/requestDialog/requestSuccessDialog/
learnMoreDialog) added to translations.ts (types) and all three
locale files.
Accessibility: inherited from app-dialog (role="dialog",
aria-modal, focus trap on Tab/Shift+Tab, Escape to close, focus
restored to trigger on close) - no new a11y code needed, reused as-is.
Responsive: existing --space-*/--font-size-* tokens throughout,
flex-wrap on button row, mobile breakpoint stacks actions full-width.
Verified live (ru locale, devBypassAdmin): nav group/link render
correctly, breadcrumb shows "Управление продавцами", empty state
copy matches spec exactly, Request Access dialog opens with all 3
fields + Cancel/Send Request, filled + submitted -> success dialog
with exact spec copy, Learn More dialog shows all 6 bullets + Coming
Soon badge, no console errors, verified again at 375px mobile
viewport. tsc --noEmit clean, ng build clean (pre-existing bundle-
budget warning only), arch:check (boundaries + cycles) clean.
This commit is contained in:
@@ -1990,6 +1990,8 @@ export const en: Translations = {
|
||||
moderation: 'Reviews & Moderation',
|
||||
reviews: 'Reviews',
|
||||
reports: 'Reports',
|
||||
partnersGroup: 'Partners',
|
||||
sellerManagement: 'Seller Management',
|
||||
content: 'Content',
|
||||
mediaLibrary: 'Media Library',
|
||||
marketplaceBuilder: 'Marketplace Builder',
|
||||
@@ -2035,6 +2037,44 @@ export const en: Translations = {
|
||||
users: { title: 'Users', description: 'Admin team members and permissions' },
|
||||
monitoring: { title: 'Monitoring', description: 'Queue, webhook, and system event status' },
|
||||
analytics: { title: 'Analytics', description: 'Sales, products, and shopper behavior' },
|
||||
sellerManagement: { title: 'Seller Management', description: 'Onboard and manage independent sellers on your marketplace' },
|
||||
},
|
||||
},
|
||||
adminSellerManagement: {
|
||||
emptyState: {
|
||||
title: 'Seller Management',
|
||||
description: 'Allow shopping malls, marketplaces and enterprise customers to onboard independent sellers while keeping centralized administration. This module is currently under development.',
|
||||
requestAccess: 'Request Access',
|
||||
learnMore: 'Learn More',
|
||||
},
|
||||
requestDialog: {
|
||||
title: 'Request Access',
|
||||
companyLabel: 'Company',
|
||||
companyPlaceholder: 'Your company name',
|
||||
emailLabel: 'Email',
|
||||
emailPlaceholder: 'you@company.com',
|
||||
messageLabel: 'Message',
|
||||
messagePlaceholder: 'Tell us about your marketplace and seller needs',
|
||||
cancel: 'Cancel',
|
||||
send: 'Send Request',
|
||||
},
|
||||
requestSuccessDialog: {
|
||||
title: 'Thank you',
|
||||
message: 'Our team received your request. We will contact you once Seller Management becomes available.',
|
||||
close: 'Close',
|
||||
},
|
||||
learnMoreDialog: {
|
||||
title: 'Seller Management',
|
||||
comingSoonBadge: 'Coming Soon',
|
||||
features: {
|
||||
sellerDashboards: 'Independent seller dashboards',
|
||||
sellerStorefronts: 'Seller storefronts',
|
||||
sellerPermissions: 'Seller permissions',
|
||||
sellerAnalytics: 'Seller analytics',
|
||||
productOwnership: 'Product ownership',
|
||||
marketplaceAdministration: 'Marketplace administration',
|
||||
},
|
||||
close: 'Close',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1985,6 +1985,8 @@ export const hy: Translations = {
|
||||
transactions: 'Գործարքներ',
|
||||
reviews: 'Կարծիքներ',
|
||||
reports: 'Հաշվետվություններ',
|
||||
partnersGroup: 'Գործընկերներ',
|
||||
sellerManagement: 'Վաճառողների կառավարում',
|
||||
content: 'Բովանդակություն',
|
||||
mediaLibrary: 'Մեդիադարան',
|
||||
marketplaceBuilder: 'Մարկետփլեյսի կոնստրուկտոր',
|
||||
@@ -2030,6 +2032,44 @@ export const hy: Translations = {
|
||||
users: { title: 'Օգտատերեր', description: 'Ադմինիստրատորների թիմը և իրավունքները' },
|
||||
monitoring: { title: 'Մոնիտորինգ', description: 'Հերթերի, webhook-ների և համակարգային իրադարձությունների վիճակը' },
|
||||
analytics: { title: 'Վերլուծություն', description: 'Վաճառքներ, ապրանքներ և գնորդների վարքագիծ' },
|
||||
sellerManagement: { title: 'Վաճառողների կառավարում', description: 'Թույլ տվեք անկախ վաճառողներին միանալ ձեր մարքեթփլեյսին՝ պահպանելով կենտրոնացված կառավարումը' },
|
||||
},
|
||||
},
|
||||
adminSellerManagement: {
|
||||
emptyState: {
|
||||
title: 'Վաճառողների կառավարում',
|
||||
description: 'Թույլ տվեք առևտրի կենտրոններին, մարքեթփլեյսներին և կորպորատիվ հաճախորդներին միացնել անկախ վաճառողների՝ պահպանելով կենտրոնացված կառավարումը: Այս մոդուլը ներկայումս մշակման փուլում է:',
|
||||
requestAccess: 'Հայցել մուտք',
|
||||
learnMore: 'Իմանալ ավելին',
|
||||
},
|
||||
requestDialog: {
|
||||
title: 'Հայցել մուտք',
|
||||
companyLabel: 'Ընկերություն',
|
||||
companyPlaceholder: 'Ձեր ընկերության անվանումը',
|
||||
emailLabel: 'Էլ. փոստ',
|
||||
emailPlaceholder: 'you@company.com',
|
||||
messageLabel: 'Հաղորդագրություն',
|
||||
messagePlaceholder: 'Պատմեք ձեր մարքեթփլեյսի և վաճառողների կարիքների մասին',
|
||||
cancel: 'Չեղարկել',
|
||||
send: 'Ուղարկել հայցը',
|
||||
},
|
||||
requestSuccessDialog: {
|
||||
title: 'Շնորհակալություն',
|
||||
message: 'Մեր թիմը ստացել է ձեր հայցը: Մենք կապ կհաստատենք ձեզ հետ, երբ Վաճառողների կառավարումը հասանելի դառնա:',
|
||||
close: 'Փակել',
|
||||
},
|
||||
learnMoreDialog: {
|
||||
title: 'Վաճառողների կառավարում',
|
||||
comingSoonBadge: 'Շուտով',
|
||||
features: {
|
||||
sellerDashboards: 'Անկախ վաճառողների վահանակներ',
|
||||
sellerStorefronts: 'Վաճառողների խանութներ',
|
||||
sellerPermissions: 'Վաճառողների իրավունքներ',
|
||||
sellerAnalytics: 'Վաճառողների վերլուծություն',
|
||||
productOwnership: 'Ապրանքի սեփականություն',
|
||||
marketplaceAdministration: 'Մարքեթփլեյսի կառավարում',
|
||||
},
|
||||
close: 'Փակել',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1985,6 +1985,8 @@ export const ru: Translations = {
|
||||
transactions: 'Транзакции',
|
||||
reviews: 'Отзывы',
|
||||
reports: 'Отчёты',
|
||||
partnersGroup: 'Партнёры',
|
||||
sellerManagement: 'Управление продавцами',
|
||||
content: 'Контент',
|
||||
mediaLibrary: 'Медиатека',
|
||||
marketplaceBuilder: 'Конструктор маркетплейса',
|
||||
@@ -2030,6 +2032,44 @@ export const ru: Translations = {
|
||||
users: { title: 'Пользователи', description: 'Команда администраторов и права доступа' },
|
||||
monitoring: { title: 'Мониторинг', description: 'Состояние очередей, вебхуков и системных событий' },
|
||||
analytics: { title: 'Аналитика', description: 'Продажи, товары и поведение покупателей' },
|
||||
sellerManagement: { title: 'Управление продавцами', description: 'Подключайте независимых продавцов к вашему маркетплейсу с централизованным администрированием' },
|
||||
},
|
||||
},
|
||||
adminSellerManagement: {
|
||||
emptyState: {
|
||||
title: 'Управление продавцами',
|
||||
description: 'Позвольте торговым центрам, маркетплейсам и корпоративным клиентам подключать независимых продавцов, сохраняя централизованное администрирование. Этот модуль сейчас в разработке.',
|
||||
requestAccess: 'Запросить доступ',
|
||||
learnMore: 'Узнать больше',
|
||||
},
|
||||
requestDialog: {
|
||||
title: 'Запросить доступ',
|
||||
companyLabel: 'Компания',
|
||||
companyPlaceholder: 'Название вашей компании',
|
||||
emailLabel: 'Email',
|
||||
emailPlaceholder: 'you@company.com',
|
||||
messageLabel: 'Сообщение',
|
||||
messagePlaceholder: 'Расскажите о вашем маркетплейсе и потребностях в продавцах',
|
||||
cancel: 'Отмена',
|
||||
send: 'Отправить запрос',
|
||||
},
|
||||
requestSuccessDialog: {
|
||||
title: 'Спасибо',
|
||||
message: 'Наша команда получила ваш запрос. Мы свяжемся с вами, как только Управление продавцами станет доступно.',
|
||||
close: 'Закрыть',
|
||||
},
|
||||
learnMoreDialog: {
|
||||
title: 'Управление продавцами',
|
||||
comingSoonBadge: 'Скоро',
|
||||
features: {
|
||||
sellerDashboards: 'Личные кабинеты продавцов',
|
||||
sellerStorefronts: 'Витрины продавцов',
|
||||
sellerPermissions: 'Права доступа продавцов',
|
||||
sellerAnalytics: 'Аналитика продавцов',
|
||||
productOwnership: 'Владение товарами',
|
||||
marketplaceAdministration: 'Администрирование маркетплейса',
|
||||
},
|
||||
close: 'Закрыть',
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1998,6 +1998,8 @@ export interface Translations {
|
||||
reviews: string;
|
||||
moderation: string;
|
||||
reports: string;
|
||||
partnersGroup: string;
|
||||
sellerManagement: string;
|
||||
content: string;
|
||||
mediaLibrary: string;
|
||||
marketplaceBuilder: string;
|
||||
@@ -2043,6 +2045,44 @@ export interface Translations {
|
||||
users: { title: string; description: string };
|
||||
monitoring: { title: string; description: string };
|
||||
analytics: { title: string; description: string };
|
||||
sellerManagement: { title: string; description: string };
|
||||
};
|
||||
};
|
||||
adminSellerManagement: {
|
||||
emptyState: {
|
||||
title: string;
|
||||
description: string;
|
||||
requestAccess: string;
|
||||
learnMore: string;
|
||||
};
|
||||
requestDialog: {
|
||||
title: string;
|
||||
companyLabel: string;
|
||||
companyPlaceholder: string;
|
||||
emailLabel: string;
|
||||
emailPlaceholder: string;
|
||||
messageLabel: string;
|
||||
messagePlaceholder: string;
|
||||
cancel: string;
|
||||
send: string;
|
||||
};
|
||||
requestSuccessDialog: {
|
||||
title: string;
|
||||
message: string;
|
||||
close: string;
|
||||
};
|
||||
learnMoreDialog: {
|
||||
title: string;
|
||||
comingSoonBadge: string;
|
||||
features: {
|
||||
sellerDashboards: string;
|
||||
sellerStorefronts: string;
|
||||
sellerPermissions: string;
|
||||
sellerAnalytics: string;
|
||||
productOwnership: string;
|
||||
marketplaceAdministration: string;
|
||||
};
|
||||
close: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user