Skip to content

Feedback pop box #407

Open
chilaka-eswari wants to merge 3 commits intoopensource-society:mainfrom
chilaka-eswari:feedback-pop
Open

Feedback pop box #407
chilaka-eswari wants to merge 3 commits intoopensource-society:mainfrom
chilaka-eswari:feedback-pop

Conversation

@chilaka-eswari
Copy link

#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

Copy link
Contributor

@greptile-apps greptile-apps bot left a 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.html for the modal implementation and consider refactoring the inline code

1 file reviewed, 3 comments

Edit Code Review Bot Settings | Greptile

Comment on lines +184 to +186
<div id="saveMessage" style="display: none;" class="alert-box">
✅ Code saved successfully!
</div>
Copy link
Contributor

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.

Comment on lines +339 to +345
saveCodeBtn.addEventListener("click", () => {
feedbackModal.style.display = "flex";
saveMsg.style.display = 'block';
setTimeout(() => {
saveMsg.style.display = 'none';
}, 3000);
});
Copy link
Contributor

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.

Comment on lines +327 to +329
opacity: 0;
display: none;
}
Copy link
Contributor

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.

Suggested change
opacity: 0;
display: none;
}
100% {
opacity: 0;
visibility: hidden;
}

@chilaka-eswari
Copy link
Author

@adityai0 @Harsh-26626 please check this pr and merge it .....i have worked so had to do it and solved all the conflicts

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