File tree Expand file tree Collapse file tree
packages/react-ui/src/app/routes/settings/ai Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ const AiSettingsPage = () => {
8484 } ,
8585 } ) ;
8686
87+ const isAiConfigered = ! ! aiSettings ?. [ 0 ] ?. connection ;
88+
8789 return (
8890 < div className = "flex w-full flex-col items-center justify-center gap-4" >
8991 < div className = "mx-auto w-full flex flex-col gap-4" >
@@ -95,7 +97,7 @@ const AiSettingsPage = () => {
9597 'Enable OpenOps Assistant and other AI-powered features such as the CLI command generation.' ,
9698 ) }
9799 </ p >
98- < AiConfigIndicator enabled = { ! ! aiSettings ?. [ 0 ] ?. connection } />
100+ < AiConfigIndicator enabled = { isAiConfigered } />
99101 < div className = "p-6 border rounded-[11px]" >
100102 < div className = "max-w-[648px] flex flex-col gap-4" >
101103 < h3 className = "text-base font-bold" > { t ( 'AI connection' ) } </ h3 >
@@ -118,7 +120,7 @@ const AiSettingsPage = () => {
118120 < Skeleton className = "h-[78px]" />
119121 ) }
120122
121- < h3 className = "text-sm font-normal " > { t ( 'MCP' ) } </ h3 >
123+ < h3 className = "text-sm font-medium " > { t ( 'MCP' ) } </ h3 >
122124 { awsBlockModel ? (
123125 < AiSettingsForm
124126 block = { awsBlockModel }
@@ -144,6 +146,11 @@ const AiSettingsPage = () => {
144146 ) : (
145147 < Skeleton className = "h-[78px]" />
146148 ) }
149+ { ! isAiConfigered && (
150+ < p className = "text-sm font-medium text-muted-foreground" >
151+ { t ( '* Select AI connection in order to use the MCP tools' ) }
152+ </ p >
153+ ) }
147154 </ div >
148155 </ div >
149156 </ div >
You can’t perform that action at this time.
0 commit comments