-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
feat(feedback): Add SDK docs for User Feedback #8528
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
|
|
||
| </PlatformSection> | ||
|
|
||
| <PlatformSection supported={["ruby.rails"]}> |
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.
Can we set the notSupported list (above) and supported list (here) on the same <PlatformSection>?
right now all this content is duplicated because ruby is not supported, but ruby.rails is supported :(
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.
Unfortunately, we would need to hardcode in a list of all supported platforms, so if someone where to add in a new platform, it wouldn't be included here (this seems to have been done intentionally).
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.
This might help in the future (https://github.com/getsentry/team-sdks/issues/35), for now we'll need to list all supported ones
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.
Today we list all unsupported versions (once in a while it shows up where it shouldn't like new mobile SDKs, etc):
| <PlatformSection notSupported={["android", "apple", "java", "native", "dart", "flutter", "ruby", "unity", "react-native", "unreal", "kotlin-multiplatform"]}> |
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.
Yeah @billyvg - unfortunately, that's just how the SDK docs work at this point and even if it's awkward, it's best to be consistent.
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.
FWIW, this was unchanged from how we were previously doing it: https://github.com/getsentry/sentry-docs/pull/8528/files#diff-494f8fd11fe7205c9ab2bdba2dfa76425b281dca0f3ed530072dbc24957fe990L133
|
Closes #8494 |
|
|
||
| ## User Feedback API | ||
|
|
||
| The user feedback API provides the ability to collect user information when an event occurs. You can use the same programming language you have in your app to send user feedback. In this case, the SDK creates the HTTP request so you don't have to deal with posting data via HTTP. |
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.
Maybe it's obvious to others, but I'd like more clarity here. How does the user feedback API connect to the widget? Can you use the widget without the API or do you need to set up both? The way it's described seems kinda similar to the crash report modal
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.
+1 ^ @billyvg Is this section for the original Crash-Report modal? We should tweak that to make it obvious
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.
@vivianyentran Thoughts on the new text?
The user feedback API allows you to collect user feedback while utilizing your own UI. You can use the same programming language you have in your app to send user feedback. In this case, the SDK creates the HTTP request so you don't have to deal with posting data via HTTP.
|
Reminder that we'll need to add Jesse's diagram of widget config options: getsentry/sentry#59941 (comment) Presumably to this page - https://sentry-docs-57izufzsb.sentry.dev/platforms/javascript/user-feedback/configuration/ |
|
|
||
| </PlatformSection> | ||
|
|
||
| <PlatformSection supported={["ruby.rails"]}> |
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.
I'll revisit this later to match all keys
| <PlatformSection supported={["ruby.rails"]}> | |
| <PlatformSection supported={["ruby.rails","node.express","python.flask","python.django","go","dotnet.aspnet","dotnet.aspnetcore","java.spring","java.spring-boot","php","javascript"]}> |
shanamatthews
left a comment
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.
Sorry for lots of comments, it's all small stuff, just typos & style guide corrections.
src/platform-includes/user-feedback/pre-requisites/javascript.mdx
Outdated
Show resolved
Hide resolved
|
|
||
| </PlatformSection> | ||
|
|
||
| <PlatformSection supported={["ruby.rails"]}> |
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.
Yeah @billyvg - unfortunately, that's just how the SDK docs work at this point and even if it's awkward, it's best to be consistent.
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.
Note this will be added in #8539
Co-authored-by: Shana Matthews <[email protected]>
src/platform-includes/user-feedback/pre-requisites/javascript.mdx
Outdated
Show resolved
Hide resolved
|
|
||
| ## User Feedback API | ||
|
|
||
| The user feedback API provides the ability to collect user information when an event occurs. You can use the same programming language you have in your app to send user feedback. In this case, the SDK creates the HTTP request so you don't have to deal with posting data via HTTP. |
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.
+1 ^ @billyvg Is this section for the original Crash-Report modal? We should tweak that to make it obvious
|
|
||
| <PlatformContent includePath="user-feedback/sdk-api-example" /> | ||
|
|
||
| Alternatively, you can use the [User Feedback API endpoint](/api/projects/submit-user-feedback/) directly. |
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.
This is a bit confusing to me bc the above section is about an API as well.
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.
This is leftover from old docs, but the API endpoint is language agnostic, the [supported] SDK APIs is language specific and handles the network request to the endpoint
|
|
||
| ## User Feedback API | ||
|
|
||
| The user feedback API provides the ability to collect user information when an event occurs. You can use the same programming language you have in your app to send user feedback. In this case, the SDK creates the HTTP request so you don't have to deal with posting data via HTTP. |
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.
Similar to above, we show a crash-report modal screenshots -- lets do one from here: https://docs.sentry.io/platforms/javascript/enriching-events/user-feedback/?original_referrer=https%3A%2F%2Fwww.google.com%2F#embeddable-javascript-widget
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.
The modal wont' be used if the user calls the API directly though
Co-authored-by: Shana Matthews <[email protected]>
- Merge after getsentry/sentry-docs#8528 is merged - Closes getsentry/team-replay#312
Adds SDK docs for new User Feedback widget (reorgs to support both old and new widgets). Adds setup page in product docs.
Closes #8494