From 3094e9a2b71e3704ba80bd742a214bee633c1ce2 Mon Sep 17 00:00:00 2001
From: AR 15 M4
Date: Tue, 24 Mar 2026 19:31:47 +0500
Subject: [PATCH] refactor: move navigation page from /components to /blocks
section
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- Moved /components/navigation → /blocks/navigation
- Updated Sidebar: navigation is now first item in "Блоки"
- Updated PreviewClient block path
- Updated seed block path
- Updated SPRINTS.md
Co-Authored-By: Claude Opus 4.6 (1M context)
---
apps/api/prisma/seed.ts | 2 +-
apps/web/app/{components => blocks}/navigation/page.tsx | 6 +++---
apps/web/app/pages/preview/PreviewClient.tsx | 4 ++--
apps/web/components/layout/Sidebar.tsx | 2 +-
docs/SPRINTS.md | 2 +-
5 files changed, 8 insertions(+), 8 deletions(-)
rename apps/web/app/{components => blocks}/navigation/page.tsx (97%)
diff --git a/apps/api/prisma/seed.ts b/apps/api/prisma/seed.ts
index 7da2d1c..fd874e0 100644
--- a/apps/api/prisma/seed.ts
+++ b/apps/api/prisma/seed.ts
@@ -7,7 +7,7 @@ const prisma = new PrismaClient({ adapter });
const BLOCKS = [
{
- path: '/components/navigation',
+ path: '/blocks/navigation',
name: 'Шапка / Навигация',
version: 'v1.0',
isInPreview: true,
diff --git a/apps/web/app/components/navigation/page.tsx b/apps/web/app/blocks/navigation/page.tsx
similarity index 97%
rename from apps/web/app/components/navigation/page.tsx
rename to apps/web/app/blocks/navigation/page.tsx
index ab37eec..c4d1bc8 100644
--- a/apps/web/app/components/navigation/page.tsx
+++ b/apps/web/app/blocks/navigation/page.tsx
@@ -53,12 +53,12 @@ export default function NavigationPage() {
className="text-xs font-semibold uppercase tracking-widest mb-1"
style={{ color: "var(--brand-053m)" }}
>
- Компоненты
+ Блоки
Шапка и навигация
-
+
Точное воспроизведение шапки с perm.oclinica.ru/lor. Три зоны: топ-бар, логотип, главное меню.
@@ -189,7 +189,7 @@ export default function NavigationPage() {
{/* LLM блок */}
-
+
,
},
diff --git a/apps/web/components/layout/Sidebar.tsx b/apps/web/components/layout/Sidebar.tsx
index 5f99fb3..8ac54ef 100644
--- a/apps/web/components/layout/Sidebar.tsx
+++ b/apps/web/components/layout/Sidebar.tsx
@@ -30,12 +30,12 @@ const NAV: NavSection[] = [
{ label: "Кнопки", href: "/components/buttons" },
{ label: "Форм-контролы", href: "/components/forms" },
{ label: "Карточки", href: "/components/cards" },
- { label: "Шапка / Навигация", href: "/components/navigation" },
],
},
{
title: "Блоки",
items: [
+ { label: "Шапка / Навигация", href: "/blocks/navigation" },
{ label: "Hero-баннер", href: "/blocks/hero" },
{ label: "Вводный текст", href: "/blocks/ceo" },
{ label: "Наши врачи", href: "/blocks/doctors" },
diff --git a/docs/SPRINTS.md b/docs/SPRINTS.md
index 786558f..64122d8 100644
--- a/docs/SPRINTS.md
+++ b/docs/SPRINTS.md
@@ -185,7 +185,7 @@
### Блоки с реального сайта (сверху вниз, по скриншоту /lor)
-**Шапка и навигация** → `/components/navigation`
+**Шапка и навигация** → `/blocks/navigation`
- [ ] FE: Топ-бар: адрес «Б. Цитная, 3», телефон /342/ 255-53-84, кнопка «Заказать звонок» (pill)
- [ ] FE: Логотип «КЛИНИКА УХО ГОРЛО НОС ИМ. ПРОФ. Е.Н. ОЛЕНЕВОЙ»
- [ ] FE: Главное меню: Клиника / ЛОР врачи / Заболевания / Вопрос-ответ / ЛОР-операции / Сурдология / Цены / Контакты