-
Notifications
You must be signed in to change notification settings - Fork 302
Feedback pop box #407
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?
Feedback pop box #407
Conversation
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.
Greptile Summary
This PR implements a feedback collection system for the CodeClip editor that addresses issue #169. The change adds a modal popup that appears when users click the "Save Code" button, featuring a 5-star rating system and a textarea for collecting user experience feedback.
The implementation includes several key components: a feedback modal with overlay styling, interactive star rating functionality with hover effects, a text area for detailed feedback, and a success message notification. The modal is positioned as a fixed overlay to ensure prominence and user attention. The JavaScript handles modal display/hide logic, star rating interactions, and basic form submission that currently logs feedback data to the console.
This feature integrates with the existing editor interface by extending the save functionality to include user experience collection. The modal approach ensures the feedback request doesn't interfere with the main editor workflow while still being prominently displayed when triggered. The implementation follows a standard modal pattern that's consistent with modern web application UX practices.
Confidence score: 2/5
- This PR has significant implementation issues that could affect user experience and code maintainability
- Score reflects incomplete save functionality, poor code organization with extensive inline styles/scripts, and lack of data persistence
- Pay close attention to
pages/editor.htmlfor the modal implementation and consider refactoring the inline code
1 file reviewed, 3 comments
| <div id="saveMessage" style="display: none;" class="alert-box"> | ||
| ✅ Code saved successfully! | ||
| </div> |
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.
style: Save message appears outside the header container, creating layout issues. Should be positioned relative to the save button or moved inside the header container.
| saveCodeBtn.addEventListener("click", () => { | ||
| feedbackModal.style.display = "flex"; | ||
| saveMsg.style.display = 'block'; | ||
| setTimeout(() => { | ||
| saveMsg.style.display = 'none'; | ||
| }, 3000); | ||
| }); |
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.
logic: Displays 'Code saved successfully!' message but no actual saving logic is implemented. This creates a misleading user experience.
| opacity: 0; | ||
| display: none; | ||
| } |
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.
syntax: CSS animation sets display: none but this property cannot be animated. Use visibility: hidden or opacity: 0 instead.
| opacity: 0; | |
| display: none; | |
| } | |
| 100% { | |
| opacity: 0; | |
| visibility: hidden; | |
| } |
|
@adityai0 @Harsh-26626 please check this pr and merge it .....i have worked so had to do it and solved all the conflicts |
#169 issue
when user clicks on save code button then it display the code saved and generate a feedback pop up box asking the 5 star rating and context box to enter user experience
@adityai0 please loook it my PR, I have worked hard to add the feedback box and merge my PR