Skip to content
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

(3.1) Implements Report a Bug button #4378

Draft
wants to merge 108 commits into
base: feedback-ui
Choose a base branch
from

Conversation

antonis
Copy link
Collaborator

@antonis antonis commented Dec 16, 2024

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

Depends on: #4370

📜 Description

Implements feedback button that launches the feedback form using the auto-injected feedback widget

💡 Motivation and Context

Fixes #4369

💚 How did you test it?

Manual testing with the sample app

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

🔮 Next steps

#skip-changelog

@antonis antonis mentioned this pull request Dec 18, 2024
10 tasks
antonis and others added 2 commits December 19, 2024 10:28
* Adds sentry branding logo as a base64 encoded png

---------

Co-authored-by: LucasZF <[email protected]>
Base automatically changed from antonis/4358-Feedback-Form-Autoinject to antonis/3859-newCaptureFeedbackAPI-Form December 19, 2024 08:29
@antonis antonis marked this pull request as draft January 10, 2025 09:22
Base automatically changed from antonis/3859-newCaptureFeedbackAPI-Form to feedback-ui January 10, 2025 10:32
@krystofwoldrich
Copy link
Member

The latest feedback-ui needs to be merged in, at the moment all the FeedbackForm files show as newly added.

@antonis
Copy link
Collaborator Author

antonis commented Jan 16, 2025

The latest feedback-ui needs to be merged in, at the moment all the FeedbackForm files show as newly added.

Yep, It was based on the incomplete "autoinjection" that was reverted 😓
I'll clean this up @krystofwoldrich and mark it as ready for review.

* Shows the feedback form screen that sends feedback to Sentry using Sentry.captureFeedback.
* @param navigation The navigation object from React Navigation
*/
export const showFeedbackForm = (navigation: Navigation): void => {
Copy link
Member

Choose a reason for hiding this comment

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

I think we should avoid depending on specific navigation lib and enforcing specific screen name.

I imagine the auto injection to work when uset used Sentry.wrap(AppRoot) and then anywhere Sentry.showFeedbackForm() is called the form will show up (we can ensure using style it's on to of other content, it won't show as navigation, but I think that's acceptable).

But also I'm open to discuss the approach.

This will require to store the feedback options in the Sentry.init(options)

* @beta
* Implements a feedback button that opens the feedback form screen to Sentry using Sentry.captureFeedback.
*/
export class FeedbackButton extends React.Component<FeedbackFormProps> {
Copy link
Member

Choose a reason for hiding this comment

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

The feedback button has still the form props.

@krystofwoldrich
Copy link
Member

I know this is still a draft, but I checked the code and added my thoughts.

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.

Feedback Form: Implement Report a Bug button
3 participants