Skip to content

Conversation

@billyvg
Copy link
Member

@billyvg billyvg commented Nov 18, 2023

Adds SDK docs for new User Feedback widget (reorgs to support both old and new widgets). Adds setup page in product docs.

Closes #8494

@vercel
Copy link

vercel bot commented Nov 18, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 1, 2023 11:52pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
sentry-docs-next ⬜️ Ignored (Inspect) Visit Preview Dec 1, 2023 11:52pm


</PlatformSection>

<PlatformSection supported={["ruby.rails"]}>
Copy link
Member

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 :(

Copy link
Member Author

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).

Copy link
Member

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

Copy link
Member

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"]}>

Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

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

@billyvg
Copy link
Member Author

billyvg commented Nov 21, 2023

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.
Copy link
Contributor

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

Copy link
Member

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

Copy link
Member Author

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.

@jas-kas
Copy link
Member

jas-kas commented Nov 23, 2023

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/

@jas-kas jas-kas self-requested a review November 23, 2023 16:18

</PlatformSection>

<PlatformSection supported={["ruby.rails"]}>
Copy link
Member

@bruno-garcia bruno-garcia Nov 27, 2023

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

Suggested change
<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"]}>

Copy link
Contributor

@shanamatthews shanamatthews left a 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.


</PlatformSection>

<PlatformSection supported={["ruby.rails"]}>
Copy link
Contributor

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.

Copy link
Member Author

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


## 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.
Copy link
Member

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.
Copy link
Member

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.

Copy link
Member Author

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.
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

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

@billyvg billyvg changed the title feat(feedback): Add SDK docs for User Feedback [WIP] feat(feedback): Add SDK docs for User Feedback Dec 1, 2023
@billyvg billyvg marked this pull request as ready for review December 1, 2023 23:19
@billyvg billyvg requested a review from a team as a code owner December 1, 2023 23:19
@bruno-garcia bruno-garcia merged commit ded15e9 into master Dec 4, 2023
@bruno-garcia bruno-garcia deleted the feat-feedback-add-new-feedback-docs branch December 4, 2023 22:16
michellewzhang added a commit to getsentry/sentry that referenced this pull request Dec 4, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Dec 20, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SDK Documentation for New and Improved User Feedback & "Set Up" Docs Page

7 participants