feat(web): view zone without template, snapshot button, no-template status, drop delete

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BwxdSt4reTm7Dj1oxRvpP3
This commit is contained in:
2026-07-05 12:19:50 +07:00
parent 5662334799
commit c2832348f8
8 changed files with 217 additions and 45 deletions
+6
View File
@@ -28,6 +28,12 @@ test("unknown — muted, текст «unknown»", () => {
expect(screen.getByTestId("status-dot")).toHaveStyle({ background: "var(--diff-readonly)" })
})
test("no_template — muted, текст «без шаблона»", () => {
render(<StatusBadge status="no_template" />)
expect(screen.getByText("без шаблона")).toBeInTheDocument()
expect(screen.getByTestId("status-dot")).toHaveStyle({ background: "var(--diff-readonly)" })
})
test("отсутствие статуса трактуется как unknown", () => {
render(<StatusBadge />)
expect(screen.getByText("unknown")).toBeInTheDocument()