diff --git a/app/commit.json b/app/commit.json index e8c49864..0df77f0c 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "fd193ee7d75080ac62d51cd6b1ebbf30942eac89" } +{ "commit": "3d8abee511aca2db3d3040a88f3ed46069d9b037" } diff --git a/app/components/chat/BaseChat.tsx b/app/components/chat/BaseChat.tsx index 7879d788..b11234e3 100644 --- a/app/components/chat/BaseChat.tsx +++ b/app/components/chat/BaseChat.tsx @@ -319,7 +319,7 @@ export const BaseChat = React.forwardRef( }}
diff --git a/app/components/chat/ChatAlert.tsx b/app/components/chat/ChatAlert.tsx index c123f69c..51b1d860 100644 --- a/app/components/chat/ChatAlert.tsx +++ b/app/components/chat/ChatAlert.tsx @@ -1,3 +1,4 @@ +import { AnimatePresence, motion } from 'framer-motion'; import type { ActionAlert } from '~/types/actions'; import { classNames } from '~/utils/classNames'; @@ -8,74 +9,93 @@ interface Props { } export default function ChatAlert({ alert, clearAlert, postMessage }: Props) { - const { type, title, description, content } = alert; - - const iconColor = - type === 'error' ? 'text-bolt-elements-button-danger-text' : 'text-bolt-elements-button-primary-text'; + const { title, description, content } = alert; return ( -
-
- {/* Icon */} -
- {type === 'error' ? ( -
- ) : ( - - - - )} -
+ + +
+ {/* Icon */} + +
+
+ {/* Content */} +
+ + {title} + + +

+ We encountered an error while running terminal commands. Would you like Bolt to analyze and help resolve + this issue? +

+ {description && ( +
+ Error: {description} +
+ )} +
- {/* Content */} -
-

{title}

-
-

{description}

- {/* {content && ( -
-                {content}
-              
- )} */} -
- - {/* Actions */} -
-
- {type === 'error' && ( + {/* Actions */} + +
- )} - -
+ +
+
-
-
+
+
); } diff --git a/app/types/actions.ts b/app/types/actions.ts index 86b68f4d..6818da82 100644 --- a/app/types/actions.ts +++ b/app/types/actions.ts @@ -22,7 +22,7 @@ export type BoltAction = FileAction | ShellAction | StartAction; export type BoltActionData = BoltAction | BaseAction; export interface ActionAlert { - type: 'error' | 'info'; + type: string; title: string; description: string; content: string;