Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

Console: show the password-change banner in a success style (CHOO-4224)

Simon Flackd5f8763f3d78
diff --git a/console/apps/switch-console-desktop/src/renderer/features/settings/pages/account-page.tsx b/console/apps/switch-console-desktop/src/renderer/features/settings/pages/account-page.tsx
index 822942fa3..d8bbe6288 100644
--- a/console/apps/switch-console-desktop/src/renderer/features/settings/pages/account-page.tsx
+++ b/console/apps/switch-console-desktop/src/renderer/features/settings/pages/account-page.tsx
@@ -207,8 +207,8 @@ export function ChangePassword({ serverId }: { serverId: string }) {
<div className="space-y-1.5">
<Label>Password</Label>
{changed && (
- <Alert className="max-w-md">
- <CircleCheck className="text-foreground-success" />
+ <Alert variant="success" className="max-w-md">
+ <CircleCheck />
<AlertTitle>Password changed successfully</AlertTitle>
</Alert>
)}
diff --git a/console/apps/switch-console-desktop/src/renderer/lib/ui/alert.tsx b/console/apps/switch-console-desktop/src/renderer/lib/ui/alert.tsx
index 64fc41ec2..81b415625 100644
--- a/console/apps/switch-console-desktop/src/renderer/lib/ui/alert.tsx
+++ b/console/apps/switch-console-desktop/src/renderer/lib/ui/alert.tsx
@@ -10,6 +10,8 @@ const alertVariants = cva(
default: 'bg-card text-foreground',
warning:
'bg-background-warning border-border-warning text-foreground-warning *:data-[slot=alert-description]:text-warning/90 *:[svg]:text-current',
+ success:
+ 'bg-background-success border-border-success text-foreground-success *:data-[slot=alert-description]:text-foreground-success/90 *:[svg]:text-current',
destructive:
'bg-card text-foreground-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current',
},