diff --git a/services/frontend/src/components/HighlightedDocument.tsx b/services/frontend/src/components/HighlightedDocument.tsx index f47e5b8..39873d1 100644 --- a/services/frontend/src/components/HighlightedDocument.tsx +++ b/services/frontend/src/components/HighlightedDocument.tsx @@ -65,7 +65,7 @@ function buildSegments(text: string, ranges: HighlightRange[]): Segment[] { } export function HighlightedDocument({ taskId, matches, recommendations }: HighlightedDocumentProps) { - const [open, setOpen] = useState(false); + const [open, setOpen] = useState(true); const { data: text, isLoading, isError } = useQuery({ queryKey: ['task-text', taskId], @@ -128,6 +128,11 @@ export function HighlightedDocument({ taskId, matches, recommendations }: Highli похоже по теме + {ranges.length === 0 && ( +
+ В этой проверке подсвечивать нечего — совпадений и похожих по теме источников не найдено. +
+ )}