From ffa377d9310c714eefa1603724a4e7912047ee45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D1=83=D1=80=D0=BD=D0=B0=D1=82=20=D0=90=D0=BD=D0=B4?= =?UTF-8?q?=D1=80=D0=B5=D0=B9?= Date: Tue, 2 Jun 2026 07:00:42 +0300 Subject: [PATCH] Align QWord shell with Office ribbon --- src/components/AppShell.test.tsx | 16 ++++++ src/components/AppShell.tsx | 10 ---- src/features/qword/QWord.tsx | 8 +++ src/styles.css | 85 +++++++++++++++++++++++++++----- 4 files changed, 96 insertions(+), 23 deletions(-) create mode 100644 src/components/AppShell.test.tsx diff --git a/src/components/AppShell.test.tsx b/src/components/AppShell.test.tsx new file mode 100644 index 0000000..6d75c3d --- /dev/null +++ b/src/components/AppShell.test.tsx @@ -0,0 +1,16 @@ +import { render, screen } from "@testing-library/react"; +import { describe, expect, it } from "vitest"; +import { AppShell } from "./AppShell"; + +describe("AppShell", () => { + it("не показывает общую ленту навигации между приложениями", () => { + const view = render( + +
Рабочая область QWord
+
+ ); + + expect(screen.getByText("Рабочая область QWord")).toBeInTheDocument(); + expect(view.container.querySelector(".ribbon")).not.toBeInTheDocument(); + }); +}); diff --git a/src/components/AppShell.tsx b/src/components/AppShell.tsx index 5871b28..f1286e5 100644 --- a/src/components/AppShell.tsx +++ b/src/components/AppShell.tsx @@ -57,16 +57,6 @@ export function AppShell({ activeApp, status, children }: AppShellProps) { -
-
- {["Файл", "Главная", "Вставка", "Рецензирование", "Вид", "Экспорт"].map((tab, index) => ( - - ))} -
-
-
{children}