Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(feedback): [1/4] add dotnet platforms to issues feedback onboarding #66561

Merged
merged 3 commits into from
Mar 8, 2024

Conversation

michellewzhang
Copy link
Member

@michellewzhang michellewzhang commented Mar 7, 2024

This PR adds the following platforms to issues feedback onboarding:

  • 'dotnet',
  • 'dotnet-aspnet',
  • 'dotnet-aspnetcore',
  • 'dotnet-awslambda',
  • 'dotnet-gcpfunctions',
  • 'dotnet-maui',
  • 'dotnet-uwp',
  • 'dotnet-winforms',
  • 'dotnet-wpf',
  • 'dotnet-xamarin',
SCR-20240307-oaqz

It also modifies the useSourcePackageRegistries hook to include files in the datatype. It was always there being returned from the endpoint; the datatype just didn't have the property. We need to use this information to display some of the strings in the first JS snippet.

Relates to #66162

@michellewzhang michellewzhang requested a review from a team March 7, 2024 23:56
@michellewzhang michellewzhang requested a review from a team as a code owner March 7, 2024 23:56
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 7, 2024
@michellewzhang michellewzhang changed the title feat(feedback): add dotnet platforms to issues feedback onboarding feat(feedback): [1/4] add dotnet platforms to issues feedback onboarding Mar 8, 2024
Copy link
Member

@bruno-garcia bruno-garcia left a comment

Choose a reason for hiding this comment

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

coule casing nits otherwise LGTM!

),
code: [
{
label: 'Cshtml',
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
label: 'Cshtml',
label: 'cshtml',

Copy link
Member Author

Choose a reason for hiding this comment

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

should probably change this in the docs too then👀 https://docs.sentry.io/platforms/dotnet/guides/aspnet/user-feedback/
SCR-20240308-kecn

Copy link
Member Author

Choose a reason for hiding this comment

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

static/app/gettingStartedDocs/dotnet/aspnetcore.tsx Outdated Show resolved Hide resolved
Comment on lines +213 to +214
introduction: () => getCrashReportModalIntroduction(),
install: (params: Params) => getCrashReportGenericInstallStep(params),
Copy link
Member

Choose a reason for hiding this comment

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

just noticed, nit for sure, but this type of thing can be written as:

Suggested change
introduction: () => getCrashReportModalIntroduction(),
install: (params: Params) => getCrashReportGenericInstallStep(params),
introduction: getCrashReportModalIntroduction,
install: getCrashReportGenericInstallStep,

as long as the props are the same (same types obvs, but also same number of props).

ie (params: Params) matches with (params) on like 214.

Places to be careful of this are like [].forEach and [].map because they pass 3 params into the callback, so if your callback is expecting an optional 2nd param it'll get something unexpected! ie: [1, 2, 3].forEach(console.log) is will print more than [1,2,3].forEach(num => console.log(num))

Copy link
Member Author

Choose a reason for hiding this comment

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

i think for the sake of having to change 60 more files i won't apply this suggestion for these PRs but will definitely keep this in mind for future PRs🫡

Copy link
Member

Choose a reason for hiding this comment

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

yes, def for other times, not now.

@michellewzhang michellewzhang merged commit 38a6f23 into master Mar 8, 2024
39 checks passed
@michellewzhang michellewzhang deleted the mz/dotnet branch March 8, 2024 19:30
michellewzhang added a commit that referenced this pull request Mar 8, 2024
…boarding (#66599)

this PR adds the following platforms:

- 'elixir',
-  'go',
-  'go-echo',
-  'go-fasthttp',
-  'go-gin',
-  'go-http',
-  'go-iris',
-  'go-martini',
-  'go-negroni',

all follow pretty much the same structure as
#66561
relates to #66162

<img width="461" alt="SCR-20240308-imvr"
src="https://github.com/getsentry/sentry/assets/56095982/e09a34f5-39c3-43f0-9fdc-38763c456dab">
@github-actions github-actions bot locked and limited conversation to collaborators Mar 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants