diff --git a/projects/packages/premium-analytics/changelog/uni-758-feedback-confirmation b/projects/packages/premium-analytics/changelog/uni-758-feedback-confirmation new file mode 100644 index 000000000000..df9cda8ab5ec --- /dev/null +++ b/projects/packages/premium-analytics/changelog/uni-758-feedback-confirmation @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Feedback: tell readers where their feedback went and that they can send more, instead of a one-line thank you. diff --git a/projects/packages/premium-analytics/routes/dashboard/components/feedback/feedback-modal.tsx b/projects/packages/premium-analytics/routes/dashboard/components/feedback/feedback-modal.tsx index e2c14a482bad..7f8cc3199bed 100644 --- a/projects/packages/premium-analytics/routes/dashboard/components/feedback/feedback-modal.tsx +++ b/projects/packages/premium-analytics/routes/dashboard/components/feedback/feedback-modal.tsx @@ -86,8 +86,17 @@ export function FeedbackModal( { onClose }: FeedbackModalProps ) { <> + + { __( + 'Thanks, your feedback has gone to the team.', + 'jetpack-premium-analytics-pkg' + ) } + - { __( 'Thank you. This helps.', 'jetpack-premium-analytics-pkg' ) } + { __( + "It'll help us decide what to fix before the new Traffic tab replaces the old one. You can send more any time from the same menu.", + 'jetpack-premium-analytics-pkg' + ) } diff --git a/projects/packages/premium-analytics/routes/dashboard/components/options-menu/dashboard-options-menu.test.tsx b/projects/packages/premium-analytics/routes/dashboard/components/options-menu/dashboard-options-menu.test.tsx index 6616c92b336f..57c388dcf6a0 100644 --- a/projects/packages/premium-analytics/routes/dashboard/components/options-menu/dashboard-options-menu.test.tsx +++ b/projects/packages/premium-analytics/routes/dashboard/components/options-menu/dashboard-options-menu.test.tsx @@ -149,8 +149,12 @@ describe( 'DashboardOptionsMenu', () => { // Scoped to the dialog: `Notice` also mirrors the text into the a11y-speak live // region on `body`, so an unscoped query matches twice. + const dialog = within( screen.getByRole( 'dialog' ) ); + expect( dialog.getByText( 'Thanks, your feedback has gone to the team.' ) ).toBeInTheDocument(); expect( - within( screen.getByRole( 'dialog' ) ).getByText( 'Thank you. This helps.' ) + dialog.getByText( + "It'll help us decide what to fix before the new Traffic tab replaces the old one. You can send more any time from the same menu." + ) ).toBeInTheDocument(); expect( screen.queryByRole( 'radiogroup' ) ).not.toBeInTheDocument(); @@ -296,8 +300,12 @@ describe( 'the Happiness copy of the feedback', () => { await user.type( screen.getByRole( 'textbox' ), 'Charts load slowly' ); await user.click( screen.getByRole( 'button', { name: 'Send feedback' } ) ); + const dialog = within( screen.getByRole( 'dialog' ) ); + expect( dialog.getByText( 'Thanks, your feedback has gone to the team.' ) ).toBeInTheDocument(); expect( - within( screen.getByRole( 'dialog' ) ).getByText( 'Thank you. This helps.' ) + dialog.getByText( + "It'll help us decide what to fix before the new Traffic tab replaces the old one. You can send more any time from the same menu." + ) ).toBeInTheDocument(); } ); } ); diff --git a/projects/plugins/jetpack/changelog/uni-758-feedback-confirmation b/projects/plugins/jetpack/changelog/uni-758-feedback-confirmation new file mode 100644 index 000000000000..e33768a52a2e --- /dev/null +++ b/projects/plugins/jetpack/changelog/uni-758-feedback-confirmation @@ -0,0 +1,4 @@ +Significance: patch +Type: enhancement + +Premium Analytics: tell readers where their feedback went and that they can send more, instead of a one-line thank you. diff --git a/projects/plugins/premium-analytics/changelog/uni-758-feedback-confirmation b/projects/plugins/premium-analytics/changelog/uni-758-feedback-confirmation new file mode 100644 index 000000000000..df9cda8ab5ec --- /dev/null +++ b/projects/plugins/premium-analytics/changelog/uni-758-feedback-confirmation @@ -0,0 +1,4 @@ +Significance: patch +Type: changed + +Feedback: tell readers where their feedback went and that they can send more, instead of a one-line thank you.