Skip to content

Commit f4f34a5

Browse files
authored
Update AI settings page to align with updated terminology (#1634)
Part of OPS-3104 ## Additional Notes <img width="1480" height="629" alt="Screenshot 2025-11-24 at 2 55 46 PM" src="https://github.com/user-attachments/assets/84fc5679-d79b-4bf2-93f3-193acd7167a3" />
1 parent db034a5 commit f4f34a5

File tree

4 files changed

+43
-25
lines changed

4 files changed

+43
-25
lines changed

packages/react-ui/public/locales/en/translation.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,13 @@
99
"+{remainingBlocksCount} more": "+{remainingBlocksCount} more",
1010
"General": "General",
1111
"Appearance": "Appearance",
12-
"AI": "AI",
12+
"OpenOps AI": "OpenOps AI",
1313
"No results found.": "No results found.",
1414
"Something went wrong": "Something went wrong",
1515
"If it's a persistant issue, please contact support with steps to reproduce and include any relevant error messages.": "If it's a persistant issue, please contact support with steps to reproduce and include any relevant error messages.",
1616
"Refresh Page": "Refresh Page",
1717
"Contact Support": "Contact Support",
18-
"AI Assistant": "AI Assistant",
19-
"OpenOps Assistant": "OpenOps Assistant",
20-
"OpenOps Agent": "OpenOps Agent",
21-
"Enable AI": "Enable AI",
18+
"Enable OpenOps AI": "Enable OpenOps AI",
2219
"Save": "Save",
2320
"Valid Connection": "Valid Connection",
2421
"Loading chat...": "Loading chat...",
@@ -31,6 +28,11 @@
3128
"AI Chat Error": "AI Chat Error",
3229
"There was an error while processing your request, please try again or open a new chat": "There was an error while processing your request, please try again or open a new chat",
3330
"There was an error creating the new chat, please try again": "There was an error creating the new chat, please try again",
31+
"Your network connection was lost. Please check your internet connection and try again.": "Your network connection was lost. Please check your internet connection and try again.",
32+
"Failed to delete chat. Please try again.": "Failed to delete chat. Please try again.",
33+
"Failed to rename chat. Please try again.": "Failed to rename chat. Please try again.",
34+
"OpenOps Assistant": "OpenOps Assistant",
35+
"OpenOps Agent": "OpenOps Agent",
3436
"MCP": "MCP",
3537
"AWS Cost": "AWS Cost",
3638
"Connection": "Connection",
@@ -434,7 +436,6 @@
434436
"The redirection works!": "The redirection works!",
435437
"You will be redirected in a few seconds.": "You will be redirected in a few seconds.",
436438
"Base URL is required for OpenAI-compatible providers": "Base URL is required for OpenAI-compatible providers",
437-
"AI providers": "AI providers",
438439
"Customize the appearance of the app. Automatically switch between day and night themes.": "Customize the appearance of the app. Automatically switch between day and night themes.",
439440
"Select the theme for the dashboard.": "Select the theme for the dashboard.",
440441
"Light": "Light",
@@ -460,6 +461,8 @@
460461
"It looks like AI hasn’t been configured in OpenOps yet.": "It looks like AI hasn’t been configured in OpenOps yet.",
461462
"Please go to ": "Please go to ",
462463
" to complete the setup.": " to complete the setup.",
464+
"Close history": "Close history",
465+
"Open history": "Open history",
463466
"New chat": "New chat",
464467
"Generating ...": "Generating ...",
465468
"Use code": "Use code",
@@ -469,7 +472,7 @@
469472
"AI Chat": "AI Chat",
470473
"Toggle AI Chat": "Toggle AI Chat",
471474
"How can I help you today?": "How can I help you today?",
472-
"The AI is taking a bit longer than expected. Please wait...": "The AI is taking a bit longer than expected. Please wait...",
475+
"Looks like your connection is a bit slow, this may cause delays in the AI responses.": "Looks like your connection is a bit slow, this may cause delays in the AI responses.",
473476
"Scroll to bottom": "Scroll to bottom",
474477
"Write a message...": "Write a message...",
475478
"Send": "Send",

packages/react-ui/src/app/common/components/project-settings-layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const appearanceNavItem = {
2222
};
2323

2424
const aiNavItem = {
25-
title: t('AI'),
25+
title: t('OpenOps AI'),
2626
href: '/settings/ai',
2727
icon: <Sparkles size={iconSize} />,
2828
};

packages/react-ui/src/app/features/ai/ai-settings-form.tsx

Lines changed: 31 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,32 +84,47 @@ const AiSettingsForm = ({
8484
});
8585
};
8686

87+
const descriptionText =
88+
'Enables OpenOps Assistant and other AI-powered features such as the CLI command generation.';
89+
8790
return (
8891
<Form {...form}>
89-
<form className="flex-1 flex flex-col gap-4 max-w-[516px]">
92+
<form className="flex-1 flex flex-col gap-4">
9093
<FormField
9194
control={form.control}
9295
name="enabled"
9396
render={({ field }) => (
94-
<FormItem className="flex gap-[6px]">
95-
<Switch
96-
id="enabled"
97-
checked={field.value}
98-
onCheckedChange={field.onChange}
99-
/>
100-
<Label htmlFor="enabled">{t('Enable AI')}</Label>
97+
<FormItem className="flex flex-col">
98+
<div className="flex items-center gap-[6px]">
99+
<Switch
100+
id="enabled"
101+
checked={field.value}
102+
onCheckedChange={field.onChange}
103+
/>
104+
<Label
105+
className="text-lg font-bold leading-6"
106+
htmlFor="enabled"
107+
>
108+
{t('Enable OpenOps AI')}
109+
</Label>
110+
</div>
111+
<p className="mt-8 text-base font-normal leading-6 text-primary-900">
112+
{descriptionText}
113+
</p>
101114
</FormItem>
102115
)}
103116
/>
104-
<ConnectionSelect
105-
disabled={!currentFormValue.enabled}
106-
allowDynamicValues={false}
107-
block={block}
108-
providerKey={'AI'}
109-
name={'connection'}
110-
/>
117+
<div className="max-w-[516px]">
118+
<ConnectionSelect
119+
disabled={!currentFormValue.enabled}
120+
allowDynamicValues={false}
121+
block={block}
122+
providerKey={'AI'}
123+
name={'connection'}
124+
/>
125+
</div>
111126

112-
<div className="flex items-center justify-between ">
127+
<div className="flex items-center justify-between max-w-[516px]">
113128
<div className="flex gap-2">
114129
<Button
115130
variant="outline"

packages/react-ui/src/app/routes/settings/ai/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const AiSettingsPage = () => {
108108
return (
109109
<div className="flex w-full flex-col items-center justify-center gap-4">
110110
<div className="mx-auto w-full flex-col">
111-
<h1 className="text-2xl font-bold">{t('AI providers')}</h1>
111+
<h1 className="text-2xl font-bold">{t('OpenOps AI')}</h1>
112112
{blockModel && (
113113
<div className="flex justify-between mt-[35px] p-6 border rounded-[11px]">
114114
<AiSettingsForm

0 commit comments

Comments
 (0)