From cccd383b92b3e70b870307335fc4976728d3c0cb Mon Sep 17 00:00:00 2001 From: akhisud3195 Date: Mon, 21 Jul 2025 18:03:22 +0530 Subject: [PATCH] Fix auto-scroll and latest unread arrow issues in playground --- .../playground/components/chat.tsx | 206 +++++++++--------- 1 file changed, 105 insertions(+), 101 deletions(-) diff --git a/apps/rowboat/app/projects/[projectId]/playground/components/chat.tsx b/apps/rowboat/app/projects/[projectId]/playground/components/chat.tsx index cdd600c1..a6b2ee86 100644 --- a/apps/rowboat/app/projects/[projectId]/playground/components/chat.tsx +++ b/apps/rowboat/app/projects/[projectId]/playground/components/chat.tsx @@ -350,113 +350,117 @@ export function Chat({ } }, []); - return
-
-
+ return ( +
+
+
-
- - {showUnreadBubble && ( - - )} -
- -
- {showSuccessMessage && ( -
-

Skipper will suggest fixes for you now.

- +
- )} - {showExplainSuccess && ( -
-

Skipper will explain this for you now.

- -
- )} - {fetchResponseError && ( -
-

{fetchResponseError}

- -
- )} + + + )} +
+ {showSuccessMessage && ( +
+

Skipper will suggest fixes for you now.

+ +
+ )} + {showExplainSuccess && ( +
+

Skipper will explain this for you now.

+ +
+ )} + {fetchResponseError && ( +
+

{fetchResponseError}

+ +
+ )} - msg.content !== undefined) as any} - loading={loadingAssistantResponse} - shouldAutoFocus={isLastInteracted} - onFocus={() => setIsLastInteracted(true)} - onCancel={handleStop} + msg.content !== undefined) as any} + loading={loadingAssistantResponse} + shouldAutoFocus={isLastInteracted} + onFocus={() => setIsLastInteracted(true)} + onCancel={handleStop} + /> +
+
+ + setBillingError(null)} + errorMessage={billingError || ''} + /> + setShowFeedbackModal(false)} + onSubmit={handleFeedbackSubmit} + title="Fix Assistant" />
- - - setBillingError(null)} - errorMessage={billingError || ''} - /> - setShowFeedbackModal(false)} - onSubmit={handleFeedbackSubmit} - title="Fix Assistant" - /> -
; + ); } \ No newline at end of file