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

fix: local console errors #1033

Merged
merged 2 commits into from
Jul 11, 2024
Merged

fix: local console errors #1033

merged 2 commits into from
Jul 11, 2024

Conversation

tihuan
Copy link
Contributor

@tihuan tihuan commented Jul 10, 2024

  1. Add explicit known local transient errors to ignore, so we can catch other unknown errors in local e2e tests
  2. Fix some components that cause errors in the console

@tihuan tihuan requested a review from kaloster July 10, 2024 21:55
Comment on lines -23 to -45
interface Props {
interface StateProps {
isColorAccessor: boolean;
isScatterplotXXaccessor: boolean;
isScatterplotYYaccessor: boolean;
isGeneInfo: boolean;
}

interface DispatchProps {
dispatch: AppDispatch;
}

interface OwnProps {
gene: string;
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- FIXME
quickGene: any;
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- FIXME
removeGene: any;
quickGene?: boolean;
removeGene?: (gene: string) => () => void;
geneId: DataframeValue;
isGeneExpressionComplete: boolean;
onGeneExpressionComplete: () => void;
geneDescription?: string;
geneset?: string;
}

// @ts-expect-error ts-migrate(1238) FIXME: Unable to resolve signature of class decorator whe... Remove this comment to see the full error message
@connect((state: RootState, ownProps: Props) => {
const { gene } = ownProps;
type Props = StateProps & OwnProps & DispatchProps;

return {
isColorAccessor:
state.colors.colorAccessor === gene &&
state.colors.colorMode !== "color by categorical metadata",
isScatterplotXXaccessor: state.controls.scatterplotXXaccessor === gene,
isScatterplotYYaccessor: state.controls.scatterplotYYaccessor === gene,
};
})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

clean up typing

@@ -183,7 +174,7 @@ class Gene extends React.Component<Props, State> {
</Truncate>
</div>
<div style={{ display: "inline-block", marginLeft: "0" }}>
<Button
<AnchorButton
Copy link
Contributor Author

Choose a reason for hiding this comment

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

nested button is invalid HTML

@@ -160,17 +161,15 @@ function QuickGene() {
}

return (
<>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this innocent fragment tag throws unique key error

@tihuan tihuan force-pushed the thuang-fix-local-console-errors branch from 108e497 to 7a1f4e0 Compare July 10, 2024 22:00
@tihuan tihuan merged commit f062d10 into main Jul 11, 2024
18 of 19 checks passed
@tihuan tihuan deleted the thuang-fix-local-console-errors branch July 11, 2024 21:48
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.

2 participants