@@ -14,6 +14,7 @@ import { useSidebarManagerSnapshot } from 'state/sidebar-manager-state'
1414import { AiIconAnimation , Button , Card , CardContent , CardHeader , CardTitle } from 'ui'
1515import { Row } from 'ui-patterns'
1616import ShimmeringLoader from 'ui-patterns/ShimmeringLoader'
17+ import { Markdown } from '../Markdown'
1718
1819export const AdvisorSection = ( { showEmptyState = false } : { showEmptyState ?: boolean } ) => {
1920 const { ref : projectRef } = useParams ( )
@@ -37,12 +38,12 @@ export const AdvisorSection = ({ showEmptyState = false }: { showEmptyState?: bo
3738 const totalErrors = errorLints . length
3839
3940 const titleContent = useMemo ( ( ) => {
40- if ( totalErrors === 0 ) return < h2 > Assistant found no issues</ h2 >
41+ if ( totalErrors === 0 ) return < h2 > Advisor found no issues</ h2 >
4142 const issuesText = totalErrors === 1 ? 'issue' : 'issues'
4243 const numberDisplay = totalErrors . toString ( )
4344 return (
4445 < h2 >
45- Assistant found { numberDisplay } { issuesText }
46+ Advisor found { numberDisplay } { issuesText }
4647 </ h2 >
4748 )
4849 } , [ totalErrors ] )
@@ -138,8 +139,10 @@ export const AdvisorSection = ({ showEmptyState = false }: { showEmptyState?: bo
138139 />
139140 </ CardHeader >
140141 < CardContent className = "p-6 pt-16 flex flex-col justify-end flex-1 overflow-auto" >
141- { lint . detail ? lint . detail . substring ( 0 , 100 ) : lint . title }
142- { lint . detail && lint . detail . length > 100 && '...' }
142+ < h3 className = "mb-1" > { lint . title } </ h3 >
143+ < Markdown className = "leading-6 text-sm text-foreground-light" >
144+ { lint . detail && lint . detail . replace ( / \\ ` / g, '`' ) }
145+ </ Markdown >
143146 </ CardContent >
144147 </ Card >
145148 )
@@ -155,8 +158,8 @@ export const AdvisorSection = ({ showEmptyState = false }: { showEmptyState?: bo
155158
156159function EmptyState ( ) {
157160 return (
158- < Card className = "bg-transparent" >
159- < CardContent className = "flex flex-col items-center justify-center gap-2 p-16" >
161+ < Card className = "bg-transparent h-64 " >
162+ < CardContent className = "flex flex-col items-center justify-center gap-2 p-16 h-full " >
160163 < Shield size = { 20 } strokeWidth = { 1.5 } className = "text-foreground-muted" />
161164 < p className = "text-sm text-foreground-light text-center" >
162165 No security or performance errors found
0 commit comments