|
1 | 1 | import {ExternalLink} from 'sentry/components/core/link'; |
2 | 2 | import type { |
3 | | - Docs, |
4 | 3 | DocsParams, |
5 | 4 | OnboardingConfig, |
6 | 5 | OnboardingStep, |
7 | 6 | } from 'sentry/components/onboarding/gettingStartedDoc/types'; |
8 | 7 | import {StepType} from 'sentry/components/onboarding/gettingStartedDoc/types'; |
9 | | -import { |
10 | | - getCrashReportGenericInstallSteps, |
11 | | - getCrashReportModalConfigDescription, |
12 | | - getCrashReportModalIntroduction, |
13 | | -} from 'sentry/components/onboarding/gettingStartedDoc/utils/feedbackOnboarding'; |
14 | | -import {feedback} from 'sentry/gettingStartedDocs/dotnet/dotnet/feedback'; |
15 | 8 | import {t, tct} from 'sentry/locale'; |
16 | 9 | import {getPackageVersion} from 'sentry/utils/gettingStartedDocs/getPackageVersion'; |
17 | 10 |
|
18 | | -type Params = DocsParams; |
19 | | - |
20 | | -const getInstallSnippetPackageManager = (params: Params) => ` |
| 11 | +const getInstallSnippetPackageManager = (params: DocsParams) => ` |
21 | 12 | Install-Package Sentry -Version ${getPackageVersion(params, 'sentry.dotnet', '3.34.0')}`; |
22 | 13 |
|
23 | | -const getInstallSnippetCoreCli = (params: Params) => ` |
| 14 | +const getInstallSnippetCoreCli = (params: DocsParams) => ` |
24 | 15 | dotnet add package Sentry -v ${getPackageVersion(params, 'sentry.dotnet', '3.34.0')}`; |
25 | 16 |
|
26 | | -const getConfigureSnippet = (params: Params) => ` |
| 17 | +const getConfigureSnippet = (params: DocsParams) => ` |
27 | 18 | using System.Windows.Threading; |
28 | 19 | using System.Windows; |
29 | 20 | using Sentry; |
@@ -74,7 +65,7 @@ var span = transaction.StartChild("test-child-operation"); |
74 | 65 | span.Finish(); // Mark the span as finished |
75 | 66 | transaction.Finish(); // Mark the transaction as finished and send it to Sentry`; |
76 | 67 |
|
77 | | -const onboarding: OnboardingConfig = { |
| 68 | +export const onboarding: OnboardingConfig = { |
78 | 69 | install: params => [ |
79 | 70 | { |
80 | 71 | type: StepType.INSTALL, |
@@ -218,31 +209,3 @@ const onboarding: OnboardingConfig = { |
218 | 209 | }, |
219 | 210 | ], |
220 | 211 | }; |
221 | | - |
222 | | -const crashReportOnboarding: OnboardingConfig = { |
223 | | - introduction: () => getCrashReportModalIntroduction(), |
224 | | - install: (params: Params) => getCrashReportGenericInstallSteps(params), |
225 | | - configure: () => [ |
226 | | - { |
227 | | - type: StepType.CONFIGURE, |
228 | | - content: [ |
229 | | - { |
230 | | - type: 'text', |
231 | | - text: getCrashReportModalConfigDescription({ |
232 | | - link: 'https://docs.sentry.io/platforms/dotnet/guides/wpf/user-feedback/configuration/#crash-report-modal', |
233 | | - }), |
234 | | - }, |
235 | | - ], |
236 | | - }, |
237 | | - ], |
238 | | - verify: () => [], |
239 | | - nextSteps: () => [], |
240 | | -}; |
241 | | - |
242 | | -const docs: Docs = { |
243 | | - onboarding, |
244 | | - feedbackOnboardingCrashApi: feedback, |
245 | | - crashReportOnboarding, |
246 | | -}; |
247 | | - |
248 | | -export default docs; |
0 commit comments