|
@@ -6,6 +6,8 @@ import type {
|
|
|
OnboardingConfig,
|
|
|
} from 'sentry/components/onboarding/gettingStartedDoc/types';
|
|
|
import {
|
|
|
+ getFeedbackConfigureDescription,
|
|
|
+ getFeedbackSDKSetupSnippet,
|
|
|
getReplayConfigureDescription,
|
|
|
getReplaySDKSetupSnippet,
|
|
|
getUploadSourceMapsStep,
|
|
@@ -148,7 +150,7 @@ const replayOnboarding: OnboardingConfig = {
|
|
|
value: 'javascript',
|
|
|
language: 'javascript',
|
|
|
code: getReplaySDKSetupSnippet({
|
|
|
- importStatement: `import * as Sentry from "@sentry/electron";`,
|
|
|
+ importStatement: `import * as Sentry from "@sentry/electron/renderer";`,
|
|
|
dsn: params.dsn,
|
|
|
mask: params.replayOptions?.mask,
|
|
|
block: params.replayOptions?.block,
|
|
@@ -246,8 +248,49 @@ const customMetricsOnboarding: OnboardingConfig = {
|
|
|
],
|
|
|
};
|
|
|
|
|
|
+const feedbackOnboarding: OnboardingConfig = {
|
|
|
+ install: () => [
|
|
|
+ {
|
|
|
+ type: StepType.INSTALL,
|
|
|
+ description: tct(
|
|
|
+ 'For the User Feedback integration to work, you must have the Sentry browser SDK package, or an equivalent framework SDK (e.g. [code:@sentry/electron]) installed, minimum version 7.85.0.',
|
|
|
+ {
|
|
|
+ code: <code />,
|
|
|
+ }
|
|
|
+ ),
|
|
|
+ configurations: getInstallConfig(),
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ configure: (params: Params) => [
|
|
|
+ {
|
|
|
+ type: StepType.CONFIGURE,
|
|
|
+ description: getFeedbackConfigureDescription({
|
|
|
+ link: 'https://docs.sentry.io/platforms/javascript/guides/electron/user-feedback/',
|
|
|
+ }),
|
|
|
+ configurations: [
|
|
|
+ {
|
|
|
+ code: [
|
|
|
+ {
|
|
|
+ label: 'JavaScript',
|
|
|
+ value: 'javascript',
|
|
|
+ language: 'javascript',
|
|
|
+ code: getFeedbackSDKSetupSnippet({
|
|
|
+ importStatement: `import * as Sentry from "@sentry/electron/renderer";`,
|
|
|
+ dsn: params.dsn,
|
|
|
+ }),
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ verify: () => [],
|
|
|
+ nextSteps: () => [],
|
|
|
+};
|
|
|
+
|
|
|
const docs: Docs = {
|
|
|
onboarding,
|
|
|
+ feedbackOnboardingNpm: feedbackOnboarding,
|
|
|
replayOnboardingNpm: replayOnboarding,
|
|
|
customMetricsOnboarding,
|
|
|
};
|