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

Disable request diagnostics modal on install #5306

Merged
merged 1 commit into from
Apr 25, 2024

Conversation

markmhendrickson
Copy link
Collaborator

@markmhendrickson markmhendrickson commented Apr 24, 2024

Try out Leather build e6cd821Extension build, Test report, Storybook, Chromatic

This PR removes the "Help is improve" dialog from display upon installation of the extension. This change is intended to reduce friction during onboarding.

We may add the ability to disable pseudonymous analytics later inside of the app's general settings and outside of the onboarding flow.

Before

image

After

image

@markmhendrickson markmhendrickson force-pushed the feat/remove-request-diagnostics branch from 59fade6 to be4bb75 Compare April 24, 2024 11:11
@@ -12,7 +12,7 @@ function isHomePage(pathname: RouteUrls) {
}

export function isLandingPage(pathname: RouteUrls) {
return pathname === RouteUrls.RequestDiagnostics || pathname.match(RouteUrls.Onboarding); // need to match get-started/ledger
return pathname === pathname.match(RouteUrls.Onboarding); // need to match get-started/ledger
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return pathname === pathname.match(RouteUrls.Onboarding); // need to match get-started/ledger
return pathname.match(RouteUrls.Onboarding); // need to match get-started/ledger

I can clean this up further as I will refactor this area

@@ -129,7 +129,6 @@ function useAppRoutes() {
</OnboardingGate>
}
>
<Route path={RouteUrls.RequestDiagnostics} element={<AllowDiagnosticsModal />} />
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to remove the import of AllowDiagnosticsModal and also delete that file @app/pages/onboarding/allow-diagnostics/allow-diagnostics'

@pete-watters
Copy link
Contributor

There's some valid test failures we will need to fix. I will help with that soon

@pete-watters pete-watters force-pushed the feat/remove-request-diagnostics branch from 072b2c3 to 07827c2 Compare April 25, 2024 05:52
@pete-watters
Copy link
Contributor

I did some refactoring here and got the tests to pass. We should get another review before squashing commits then approving and merging.

Copy link
Collaborator

@kyranjamie kyranjamie left a comment

Choose a reason for hiding this comment

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

+1 to rebasing. @markmhendrickson when updating a PR, good practice to use git commit --amend flag to not create unnecessary commits.

Otherwise, LGTM. Love to see more lines of code removed than added.

@@ -14,7 +14,7 @@ export interface DialogProps {
interface RadixDialogProps extends DialogProps {
children: ReactNode;
footer?: ReactNode;
header?: ReactElement<any, string | JSXElementConstructor<any>>;
header: ReactElement<any, string | JSXElementConstructor<any>>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not a change in this PR but, why not ReactNode here 🤔

Copy link
Contributor

Choose a reason for hiding this comment

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

I will change it separately👍 . Not sure why I didn't do that in the first place

@pete-watters pete-watters force-pushed the feat/remove-request-diagnostics branch from 07827c2 to e6cd821 Compare April 25, 2024 09:45
@markmhendrickson markmhendrickson added this pull request to the merge queue Apr 25, 2024
Merged via the queue into dev with commit 191dbd8 Apr 25, 2024
28 checks passed
@markmhendrickson markmhendrickson deleted the feat/remove-request-diagnostics branch April 25, 2024 14:10
@fbwoolf fbwoolf mentioned this pull request Apr 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants