@@ -7,6 +7,7 @@ import { DetailedSiteInfo } from '../../api/extensionApiTypes';
77import { CheckFileExistsFunc , FollowUpActionFooter , OpenFileFunc , OpenJiraFunc } from '../common/common' ;
88import { DialogMessageItem } from '../common/DialogMessage' ;
99import { PullRequestForm } from '../create-pr/PullRequestForm' ;
10+ import { FeedbackConfirmationForm } from '../feedback-form/FeedbackConfirmationForm' ;
1011import { FeedbackForm , FeedbackType } from '../feedback-form/FeedbackForm' ;
1112import { RovoDevLanding } from '../landing-page/RovoDevLanding' ;
1213import { useMessagingApi } from '../messagingApi' ;
@@ -41,6 +42,8 @@ interface ChatStreamProps {
4142 onCollapsiblePanelExpanded : ( ) => void ;
4243 feedbackVisible : boolean ;
4344 setFeedbackVisible : ( visible : boolean ) => void ;
45+ feedbackConfirmationVisible : boolean ;
46+ setFeedbackConfirmationVisible : ( visible : boolean ) => void ;
4447 sendFeedback : ( feedbackType : FeedbackType , feedack : string , canContact : boolean , lastTenMessages : boolean ) => void ;
4548 onLoginClick : ( openApiTokenLogin : boolean ) => void ;
4649 onOpenFolder : ( ) => void ;
@@ -64,7 +67,9 @@ export const ChatStream: React.FC<ChatStreamProps> = ({
6467 onChangesGitPushed,
6568 onCollapsiblePanelExpanded,
6669 feedbackVisible = false ,
70+ feedbackConfirmationVisible = false ,
6771 setFeedbackVisible,
72+ setFeedbackConfirmationVisible,
6873 sendFeedback,
6974 onLoginClick,
7075 onOpenFolder,
@@ -337,13 +342,20 @@ export const ChatStream: React.FC<ChatStreamProps> = ({
337342 onSubmit = { ( feedbackType , feedback , canContact , includeTenMessages ) => {
338343 setFeedbackType ( undefined ) ;
339344 sendFeedback ( feedbackType , feedback , canContact , includeTenMessages ) ;
345+ setFeedbackConfirmationVisible ( true ) ;
346+ setTimeout ( ( ) => {
347+ setFeedbackConfirmationVisible ( false ) ;
348+ } , 20000 ) ;
340349 } }
341350 onCancel = { ( ) => {
342351 setFeedbackType ( undefined ) ;
343352 setFeedbackVisible ( false ) ;
344353 } }
345354 />
346355 ) }
356+ { feedbackConfirmationVisible && (
357+ < FeedbackConfirmationForm onOk = { ( ) => setFeedbackConfirmationVisible ( false ) } />
358+ ) }
347359 </ FollowUpActionFooter >
348360 ) }
349361 < div id = "sentinel" ref = { sentinelRef } style = { { height : '10px' , width : '100%' , pointerEvents : 'none' } } />
0 commit comments