-
Notifications
You must be signed in to change notification settings - Fork 55
AXON-1462-Add-feedback-submission-confirmation #1380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
AXON-1462-Add-feedback-submission-confirmation #1380
Conversation
| </button> | ||
| <b>Thanks</b> | ||
| <br /> | ||
| <p>Your valuable feedack helps us continually improve our apps.</p> |
There was a problem hiding this comment.
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.
| <p>Your valuable feedack helps us continually improve our apps.</p> | |
| <p>Your valuable feedback helps us continually improve our apps.</p> |
| type?: 'like' | 'dislike'; | ||
| } | ||
|
|
||
| export interface FeedbackConfirmationFormProps { |
There was a problem hiding this comment.
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.
03cb902 to
a23cfa5
Compare
| setFeedbackType(undefined); | ||
| sendFeedback(feedbackType, feedback, canContact, includeTenMessages); | ||
| setFeedbackConfirmationVisible(true); | ||
| setTimeout(() => { |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
a23cfa5 to
5f92e8c
Compare
| <button | ||
| type="button" | ||
| onClick={() => onClose()} | ||
| style={{ |
There was a problem hiding this comment.
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.
5ffe744 to
5f92e8c
Compare
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.

How Has This Been Tested?
Basic checks:
npm run lintnpm run testAdvanced checks:
Recommendations:
Demo
https://www.loom.com/share/51198e42230e4494b1cef7f35a17506e