feat: split test detail into employee view and author view

- /tests/:id — employee view, answers shown without correct/incorrect markers
- /tests/:id/edit — author view, correct answers highlighted + edit button (disabled until Sprint 4)
- TestList: add 'Изменить' button linking to author view

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Aleksey Razorvin
2026-03-21 13:13:00 +05:00
parent 4762f86187
commit 4f788a9cf6
4 changed files with 130 additions and 10 deletions
+8 -1
View File
@@ -1,4 +1,4 @@
import { PlayCircleOutlined, PlusOutlined } from '@ant-design/icons'
import { EditOutlined, PlayCircleOutlined, PlusOutlined } from '@ant-design/icons'
import { useQuery } from '@tanstack/react-query'
import { Button, Space, Spin, Table, Tag, Typography } from 'antd'
import type { ColumnsType } from 'antd/es/table'
@@ -64,6 +64,13 @@ export default function TestList() {
<Button size="small" onClick={() => navigate(`/tests/${record.id}`)}>
Открыть
</Button>
<Button
size="small"
icon={<EditOutlined />}
onClick={() => navigate(`/tests/${record.id}/edit`)}
>
Изменить
</Button>
<Button
size="small"
type="primary"