Skip to content

Commit ca87ad5

Browse files
committed
add analysis summary tooltip
1 parent 09d06b7 commit ca87ad5

File tree

1 file changed

+22
-15
lines changed

1 file changed

+22
-15
lines changed

scatter/report/components/Analysis.tsx

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
DrawerTitle
2626
} from '@/components/ui/drawer'
2727
import {useState} from 'react'
28+
import {Tooltip} from '@/components/ui/tooltip'
2829

2930
type ReportProps = {
3031
result: Result
@@ -39,23 +40,29 @@ export function Analysis({result}: ReportProps) {
3940
<Separator mt={20} mb={12} />
4041
<Heading textAlign={'center'} fontSize={'xl'} mb={5}>Analysis</Heading>
4142
<HStack mb={5} justify={'center'}>
42-
<VStack gap={0} w={'200px'}>
43-
<Icon mb={2}><MessageCircleWarningIcon size={'30px'} /></Icon>
44-
<Text fontSize={'3xl'} fontWeight={'bold'} lineHeight={1} mb={1}>{Object.keys(result.comments).length.toLocaleString()}</Text>
45-
<Text fontSize={'xs'}>意見が含まれるコメント数</Text>
46-
</VStack>
43+
<Tooltip content={'全てのコメントをAIで分析し、意見が含まれるコメントを抽出します。意見が含まれないコメントや、議題と関係のないコメントは除外されます。'} openDelay={0} closeDelay={0}>
44+
<VStack gap={0} w={'200px'}>
45+
<Icon mb={2}><MessageCircleWarningIcon size={'30px'} /></Icon>
46+
<Text className={'headingColor'} fontSize={'3xl'} fontWeight={'bold'} lineHeight={1} mb={1}>{Object.keys(result.comments).length.toLocaleString()}</Text>
47+
<Text fontSize={'xs'}>意見が含まれるコメント数</Text>
48+
</VStack>
49+
</Tooltip>
4750
<ChevronRightIcon />
48-
<VStack gap={0} w={'200px'}>
49-
<Icon mb={2}><MessagesSquareIcon size={'30px'} /></Icon>
50-
<Text fontSize={'3xl'} fontWeight={'bold'} lineHeight={1} mb={1}>{result.arguments.length.toLocaleString()}</Text>
51-
<Text fontSize={'xs'}>AIが抽出した議論数</Text>
52-
</VStack>
51+
<Tooltip content={'抽出したコメントをAIで分析し、様々な議論を抽出します。複数の意見が混ざったコメントなども個別に処理しています。'} openDelay={0} closeDelay={0}>
52+
<VStack gap={0} w={'200px'}>
53+
<Icon mb={2}><MessagesSquareIcon size={'30px'} /></Icon>
54+
<Text className={'headingColor'} fontSize={'3xl'} fontWeight={'bold'} lineHeight={1} mb={1}>{result.arguments.length.toLocaleString()}</Text>
55+
<Text fontSize={'xs'}>AIが抽出した議論数</Text>
56+
</VStack>
57+
</Tooltip>
5358
<ChevronRightIcon />
54-
<VStack gap={0} w={'200px'}>
55-
<Icon mb={2}><ClipboardCheckIcon size={'30px'} /></Icon>
56-
<Text fontSize={'3xl'} fontWeight={'bold'} lineHeight={1} mb={1}>{result.clusters.length.toLocaleString()}</Text>
57-
<Text fontSize={'xs'}>AIが集約したクラスター数</Text>
58-
</VStack>
59+
<Tooltip content={'抽出した議論をAIで分析し、近しい議論を一つのクラスターに分類します。クラスターごとの議論を要約し、大量の意見を見える化します。'} openDelay={0} closeDelay={0}>
60+
<VStack gap={0} w={'200px'}>
61+
<Icon mb={2}><ClipboardCheckIcon size={'30px'} /></Icon>
62+
<Text className={'headingColor'} fontSize={'3xl'} fontWeight={'bold'} lineHeight={1} mb={1}>{result.clusters.length.toLocaleString()}</Text>
63+
<Text fontSize={'xs'}>AIが集約したクラスター数</Text>
64+
</VStack>
65+
</Tooltip>
5966
</HStack>
6067
<Text mb={5}>{result.config.intro}</Text>
6168
<Box>

0 commit comments

Comments
 (0)