-
-
Notifications
You must be signed in to change notification settings - Fork 342
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
(2.4) feat(feedback-ui): Add screenshots #4338
(2.4) feat(feedback-ui): Add screenshots #4338
Conversation
Co-authored-by: Krystof Woldrich <[email protected]>
…ents # Conflicts: # CHANGELOG.md # packages/core/src/js/feedback/FeedbackForm.styles.ts # packages/core/src/js/feedback/FeedbackForm.tsx # packages/core/src/js/feedback/FeedbackForm.types.ts # packages/core/src/js/feedback/defaults.ts # packages/core/src/js/index.ts # packages/core/test/feedback/FeedbackForm.test.tsx # samples/react-native/src/App.tsx # samples/react-native/src/Screens/ErrorsScreen.tsx
The impl looks good, but I would scale the scope down to only allow bytes array for now and remove the conversion. We can extend it later. |
@antonis Have you explored the option of taking screenshot of the app and attaching it? |
I haven't explored this option on the SDK side. My assumption was that the developer may choose to implement this. E.g to capture a screenshot with |
Got it. This is nice and flexible, but provides less out of the box value.
Yes, exactly we already have that function, but as you said taking the screenshot of the form is not useful. But especially when combined with the auto inject, since we will be responsible for showing and hiding the form we can, hide the form take the screenshot and then show it again. Note: We might anyway also need to create a base64 representation of the screenshot to be able to show a preview using RN Image tag. Or create a tmp file. |
Thank you for the feedback @krystofwoldrich 🙇
This makes sense 👍 I will iterate along the auto-inject functionality.
👍 |
…ents # Conflicts: # packages/core/src/js/feedback/FeedbackForm.tsx # packages/core/src/js/feedback/FeedbackForm.types.ts # packages/core/src/js/feedback/defaults.ts # packages/core/test/feedback/FeedbackForm.test.tsx
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.
Look good! 🚀
Just left two small nits in the comments.
Thank you once more for the feedback @krystofwoldrich 🙇 |
📢 Type of change
Based on #4328
📜 Description
This PR adds attachment handling in the SDK capture feedback form leaving the image picking to be implemented on the client:
Note that string attachments are converted to UInt8Array before sending to the server.
💡 Motivation and Context
Fixes #4337
💚 How did you test it?
CI, Manual testing (example)
📝 Checklist
sendDefaultPII
is enabled🔮 Next steps
#skip-changelog
As discussed we will use the no props configuration in the changelog.