feat(builder): implement visual homepage builder

New HomepageOverviewComponent (Tasks 1+8), mounted at the top of the
existing Homepage section page: completion ring, active/hidden section
counts, recommended next step, last-modified timestamp, and a 6-item
Homepage Health checklist (hero/categories/products/promotion/
newsletter/any-sections) - all derived from the real page.sections/
widgets data already in the facade, nothing fabricated.

Existing page-level drag-and-drop reordering (homepage-section's
CdkDragDrop over page.sections) was already implemented pre-Sprint 5 -
left as-is per "build on top of, do not replace."

Widgets section (Task 2) rewritten from a bare list into visual cards:
per-widget icon + humanized type label (hero/categories/product-
collection), a visible/hidden toggle and badge, up/down move buttons
(keyboard-accessible reorder within a section - see Known limitations
for why this replaces pointer drag for widgets specifically), duplicate,
and remove (with confirm). The existing per-type field editors (hero/
categories/product-collection) are unchanged; the raw-JSON fallback for
unknown widget types now sits behind a collapsed "Advanced settings"
disclosure instead of being the default view.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
sdarbinyan
2026-07-18 10:24:13 +04:00
parent a83cfdfe4d
commit 04b36bab9b
12 changed files with 551 additions and 19 deletions

View File

@@ -780,6 +780,28 @@ export const ru: Translations = {
brandSocialEmpty: 'Изображение для соцсетей ещё не загружено — при публикации ссылки покупатели увидят пустую карточку.',
brandAccentColor: 'Акцентный',
brandBorderColor: 'Границы',
homepageOverviewTitle: 'Главная страница',
homepageOverviewSubtitle: 'Из чего состоит главная страница вашего маркетплейса.',
homepageOverviewComplete: 'Главная страница полностью настроена.',
homepageActiveSections: 'Активные блоки',
homepageDisabledSections: 'Скрытые блоки',
homepageHealthHero: 'Приветственный баннер добавлен',
homepageHealthCategories: 'Витрина категорий добавлена',
homepageHealthProducts: 'Витрина товаров добавлена',
homepageHealthPromotion: 'Блок акции добавлен',
homepageHealthNewsletter: 'Форма подписки добавлена',
homepageHealthAnySections: 'На странице есть хотя бы один блок',
widgetTypeHero: 'Приветственный баннер',
widgetTypeCategories: 'Витрина категорий',
widgetTypeProducts: 'Витрина товаров',
widgetHidden: 'Скрыт',
widgetVisible: 'Показывать',
widgetMoveUp: 'Переместить выше',
widgetMoveDown: 'Переместить ниже',
widgetDuplicate: 'Дублировать',
widgetRemove: 'Удалить',
widgetRemoveConfirm: 'Удалить этот блок с главной страницы?',
widgetAdvancedSettings: 'Дополнительные настройки',
},
dashboard: {
title: 'Панель управления',