Skip to content

Conversation

@teg-atlassian
Copy link
Contributor

@teg-atlassian teg-atlassian commented Dec 4, 2025

What Is This Change?

In rovo dev chat, if a user sends a feedback, currently, he doesn't see anything that confirms the feedback is sent in the chat view. In this pr, we have added a confirmation dialog box.
Screenshot 2025-12-04 at 2 33 21 PM

How Has This Been Tested?

Basic checks:

  • npm run lint
  • npm run test

Advanced checks:

  • If Atlassian employee & Bitbucket changes: did you test with DC in mind? See Instructions

Recommendations:

  • Update the CHANGELOG if making a user facing change

Demo
https://www.loom.com/share/51198e42230e4494b1cef7f35a17506e

</button>
<b>Thanks</b>
<br />
<p>Your valuable feedack helps us continually improve our apps.</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔎 Code Readability - Typo

Fix typo: "feedack" should be "feedback".

Details

📖 Explanation: There's a spelling error in the confirmation message that should be corrected for proper user communication.

Suggested change
<p>Your valuable feedack helps us continually improve our apps.</p>
<p>Your valuable feedback helps us continually improve our apps.</p>

Uses AI. Verify results. Give Feedback

type?: 'like' | 'dislike';
}

export interface FeedbackConfirmationFormProps {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔎 Code Readability - Code Duplication

Remove this duplicate interface definition - it should only exist in FeedbackConfiirmationForm.tsx.

Details

📖 Explanation: This interface is already defined in the confirmation form component and having it in both places violates the DRY principle and could lead to inconsistencies.

Uses AI. Verify results. Give Feedback

@teg-atlassian teg-atlassian force-pushed the AXON-1462-Investigate-feedback-submission-confirmation-issue branch 3 times, most recently from 03cb902 to a23cfa5 Compare December 4, 2025 22:50
setFeedbackType(undefined);
sendFeedback(feedbackType, feedback, canContact, includeTenMessages);
setFeedbackConfirmationVisible(true);
setTimeout(() => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 Code Bugs

This setTimeout creates a memory leak if the component unmounts before the timeout completes - store the timeout ID in a ref and clear it in useEffect cleanup.

export const FeedbackConfirmationForm: React.FC<FeedbackConfirmationFormProps> = ({ onClose: onClose }) => {
return (
<div className="form-container">
<button
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Maintainability - Best Practices

Move the close button after the content and position it absolutely in the top-right corner for better UX and accessibility.

@teg-atlassian teg-atlassian force-pushed the AXON-1462-Investigate-feedback-submission-confirmation-issue branch from a23cfa5 to 5f92e8c Compare December 4, 2025 23:02
<button
type="button"
onClick={() => onClose()}
style={{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Maintainability - Best Practices

Replace inline styles with CSS classes for consistency with other form components in the codebase.

@teg-atlassian teg-atlassian changed the title added a feedback confirmation UI AXON-1462-Investigate-feedback-submission-confirmation-issue Dec 4, 2025
@teg-atlassian teg-atlassian changed the title AXON-1462-Investigate-feedback-submission-confirmation-issue AXON-1462-Add-feedback-submission-confirmation Dec 4, 2025
@teg-atlassian teg-atlassian force-pushed the AXON-1462-Investigate-feedback-submission-confirmation-issue branch from 5ffe744 to 5f92e8c Compare December 7, 2025 23:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants