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

chore(js-ts) migrate AccountOverview.js #11189

Closed
wants to merge 4 commits into from

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Description

Migrate app/components/UI/AccountOverview/index.js
Devin Run: N/A (human data collection)

Related issues

Fixes:

Manual testing steps

  1. Go to this page...

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

Copy link
Contributor

@Cal-L Cal-L left a comment

Choose a reason for hiding this comment

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

Left some comments!

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove unused file

Copy link
Contributor

Choose a reason for hiding this comment

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

Remove unused file

// eslint-disable-next-line @typescript-eslint/no-explicit-any
(Children: ComponentType<IWithMetricsAwarenessProps>) => (props: any) =>
<Children {...props} metrics={useMetrics()} />;
<P extends { metrics: IUseMetricsHook }>(Children: ComponentType<P>) =>
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
<P extends { metrics: IUseMetricsHook }>(Children: ComponentType<P>) =>
<P extends IWithMetricsAwarenessProps>(Children: ComponentType<P>) =>

@@ -1,11 +1,10 @@
import React, { ComponentType } from 'react';
import useMetrics from './useMetrics';
import { IWithMetricsAwarenessProps } from './withMetricsAwareness.types';
import { IUseMetricsHook } from './useMetrics.types';
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
import { IUseMetricsHook } from './useMetrics.types';
import { IWithMetricsAwarenessProps } from './withMetricsAwareness.types';


jest.mock('./useMetrics');

class MockComponent extends Component<IWithMetricsAwarenessProps> {
class MockComponent extends Component<{ metrics: IUseMetricsHook }> {
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
class MockComponent extends Component<{ metrics: IUseMetricsHook }> {
class MockComponent extends Component<IWithMetricsAwarenessProps> {

@@ -3,11 +3,11 @@ import { render } from '@testing-library/react-native';
import withMetricsAwareness from './withMetricsAwareness';
import useMetrics from './useMetrics';
import { View } from 'react-native';
import { IWithMetricsAwarenessProps } from './withMetricsAwareness.types';
import { IUseMetricsHook } from './useMetrics.types';
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
import { IUseMetricsHook } from './useMetrics.types';
import { IWithMetricsAwarenessProps } from './withMetricsAwareness.types';

Copy link
Contributor

Choose a reason for hiding this comment

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

Unless there was a reason to remove this, let's keep it?

@devin-ai-integration devin-ai-integration bot added the skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes. label Sep 25, 2024
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

Copy link
Contributor Author

this PR is stale and unlikely to be merged; closing for sake of tidiness

@github-actions github-actions bot locked and limited conversation to collaborators Sep 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
skip-sonar-cloud Only used for bypassing sonar cloud when failures are not relevant to the changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant