|
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.Maui -Version ${getPackageVersion( |
22 | 13 | params, |
23 | 14 | 'sentry.dotnet.maui', |
24 | 15 | '4.3.0' |
25 | 16 | )}`; |
26 | 17 |
|
27 | | -const getInstallSnippetCoreCli = (params: Params) => ` |
| 18 | +const getInstallSnippetCoreCli = (params: DocsParams) => ` |
28 | 19 | dotnet add package Sentry.Maui -v ${getPackageVersion( |
29 | 20 | params, |
30 | 21 | 'sentry.dotnet.maui', |
31 | 22 | '4.3.0' |
32 | 23 | )}`; |
33 | 24 |
|
34 | | -const getConfigureSnippet = (params: Params) => ` |
| 25 | +const getConfigureSnippet = (params: DocsParams) => ` |
35 | 26 | public static MauiApp CreateMauiApp() |
36 | 27 | { |
37 | 28 | var builder = MauiApp.CreateBuilder(); |
@@ -86,7 +77,7 @@ var span = transaction.StartChild("test-child-operation"); |
86 | 77 | span.Finish(); // Mark the span as finished |
87 | 78 | transaction.Finish(); // Mark the transaction as finished and send it to Sentry`; |
88 | 79 |
|
89 | | -const onboarding: OnboardingConfig = { |
| 80 | +export const onboarding: OnboardingConfig = { |
90 | 81 | install: params => [ |
91 | 82 | { |
92 | 83 | type: StepType.INSTALL, |
@@ -232,31 +223,3 @@ const onboarding: OnboardingConfig = { |
232 | 223 | }, |
233 | 224 | ], |
234 | 225 | }; |
235 | | - |
236 | | -const crashReportOnboarding: OnboardingConfig = { |
237 | | - introduction: () => getCrashReportModalIntroduction(), |
238 | | - install: (params: Params) => getCrashReportGenericInstallSteps(params), |
239 | | - configure: () => [ |
240 | | - { |
241 | | - type: StepType.CONFIGURE, |
242 | | - content: [ |
243 | | - { |
244 | | - type: 'text', |
245 | | - text: getCrashReportModalConfigDescription({ |
246 | | - link: 'https://docs.sentry.io/platforms/dotnet/guides/maui/user-feedback/configuration/#crash-report-modal', |
247 | | - }), |
248 | | - }, |
249 | | - ], |
250 | | - }, |
251 | | - ], |
252 | | - verify: () => [], |
253 | | - nextSteps: () => [], |
254 | | -}; |
255 | | - |
256 | | -const docs: Docs = { |
257 | | - onboarding, |
258 | | - feedbackOnboardingCrashApi: feedback, |
259 | | - crashReportOnboarding, |
260 | | -}; |
261 | | - |
262 | | -export default docs; |
0 commit comments