diff --git a/packages/compass-aggregations/src/components/pipeline-toolbar/pipeline-ai.tsx b/packages/compass-aggregations/src/components/pipeline-toolbar/pipeline-ai.tsx index de4e5524fc7..9e61a583c4f 100644 --- a/packages/compass-aggregations/src/components/pipeline-toolbar/pipeline-ai.tsx +++ b/packages/compass-aggregations/src/components/pipeline-toolbar/pipeline-ai.tsx @@ -1,5 +1,5 @@ import React, { useRef, useEffect } from 'react'; -import { GenerativeAIInput } from '@mongodb-js/compass-components'; +import { GenerativeAIInput, openToast } from '@mongodb-js/compass-components'; import { connect } from 'react-redux'; import createLoggerAndTelemetry from '@mongodb-js/compass-logging'; import { usePreference } from 'compass-preferences-model'; @@ -25,6 +25,12 @@ const onSubmitFeedback = (feedback: 'positive' | 'negative', text: string) => { feedback, text, })); + + openToast('pipeline-ai-feedback-submitted', { + variant: 'success', + title: 'Your feedback has been submitted.', + timeout: 10_000, + }); }; type PipelineAIProps = { diff --git a/packages/compass-components/src/components/feedback-popover.spec.tsx b/packages/compass-components/src/components/feedback-popover.spec.tsx index eb6037ed180..aff2d17247b 100644 --- a/packages/compass-components/src/components/feedback-popover.spec.tsx +++ b/packages/compass-components/src/components/feedback-popover.spec.tsx @@ -12,7 +12,7 @@ function FeedbackPopoverRenderer( const [open, setOpen] = useState(false); return ( -
+