From 999c250216aafa2f4eadd6a5bbcce0fecd97a4c2 Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 22 Sep 2025 19:29:00 +0700 Subject: [PATCH] #keepnostrweird quilly to thee rescue --- src/assets/quilly.svg | 114 ++++++++++++++++++++++++ src/components/Shakespeare/ChatPane.tsx | 69 +++++++------- src/components/ui/QuillySVG.tsx | 63 +++++++++++++ 3 files changed, 215 insertions(+), 31 deletions(-) create mode 100644 src/assets/quilly.svg create mode 100644 src/components/ui/QuillySVG.tsx diff --git a/src/assets/quilly.svg b/src/assets/quilly.svg new file mode 100644 index 00000000..e26247fc --- /dev/null +++ b/src/assets/quilly.svg @@ -0,0 +1,114 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/Shakespeare/ChatPane.tsx b/src/components/Shakespeare/ChatPane.tsx index 51ce0225..e973642e 100644 --- a/src/components/Shakespeare/ChatPane.tsx +++ b/src/components/Shakespeare/ChatPane.tsx @@ -41,7 +41,7 @@ import { assistantContentEmpty } from '@/lib/ai-messages'; import { saveFileToTmp } from '@/lib/fileUtils'; import { useGit } from '@/hooks/useGit'; import { Alert, AlertDescription } from '@/components/ui/alert'; -import { AlertTriangle, AlertCircle } from 'lucide-react'; +import { QuillySVG } from '@/components/ui/QuillySVG'; const ALERT_TYPE = { WARN: 'warn', @@ -63,37 +63,44 @@ function ChatIntervention({ alert, onDismiss }: { alert: ChatAlert; onDismiss: ( const isError = alert.type === ALERT_TYPE.ERROR; return ( - - {isError ? : } - -
- {alert.message} - + +
+ +
+ +
+

+ Pardon the Interruption +

+

{alert.message}

+
+ {alert.action && ( +
+ +
+ )} +
- {alert.action && ( -
- -
- )} - + +
); } diff --git a/src/components/ui/QuillySVG.tsx b/src/components/ui/QuillySVG.tsx new file mode 100644 index 00000000..f7e7ceb3 --- /dev/null +++ b/src/components/ui/QuillySVG.tsx @@ -0,0 +1,63 @@ +import React from 'react'; + +interface QuillySVGProps extends React.SVGProps { + className?: string; + fillColor?: string; +} + +export function QuillySVG({ className = "w-4 h-4", fillColor = "currentColor", ...props }: QuillySVGProps) { + return ( + + {/* Main quill head/top part */} + + + {/* Main quill feather/plume part */} + + + {/* Body/torso part */} + + + {/* Additional body details */} + + + {/* Eyes */} + + + + {/* Extended body details */} + + + {/* Main body section */} + + + {/* Additional body details */} + + + {/* Body shading */} + + + {/* More body shading */} + + + {/* Lower body/legs area */} + + + {/* Extended body section */} + + + {/* Additional details */} + + + {/* Final details */} + + + {/* Bottom section */} + + + ); +} \ No newline at end of file