feat(feedback): Add SDK docs for User Feedback#8528
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.
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.
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.
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.
Today we list all unsupported versions (once in a while it shows up where it shouldn't like new mobile SDKs, etc):
There was a problem hiding this comment.
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.
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.
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.
+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.
@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.
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.
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.
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.
Co-authored-by: Shana Matthews <shana.l.matthews@gmail.com>
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.
+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.
This is a bit confusing to me bc the above section is about an API as well.
There was a problem hiding this comment.
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.
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.
The modal wont' be used if the user calls the API directly though
Co-authored-by: Shana Matthews <shana.l.matthews@gmail.com>
Adds SDK docs for new User Feedback widget (reorgs to support both old and new widgets). Adds setup page in product docs.
Closes #8494