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

Allow hiding indicator list page insights with page settings #170

Merged
merged 2 commits into from
Sep 26, 2023

Conversation

tituomin
Copy link
Contributor

No description provided.

@@ -210,9 +210,10 @@ const getFirstUsableCategoryType = (categoryTypes, indicators) =>
interface Props {
title: string;
leadContent: IndicatorListPage['leadContent'];
displayInsights: boolean;
Copy link
Collaborator

@woodwoerk woodwoerk Sep 26, 2023

Choose a reason for hiding this comment

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

According to the generated types this could be undefined. Should we make this optional and default to true for backwards compatibility?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm. That is a problem in the type generation since in the Django backend it cannot be null/undefined and in the GraphQL schema it's a Boolean. But still, I can make the change.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed in 71122a2

@tituomin tituomin requested a review from woodwoerk September 26, 2023 06:14
@tituomin tituomin merged commit eebe79d into master Sep 26, 2023
1 check passed
@tituomin tituomin deleted the feature/toggle-indicator-insights branch September 26, 2023 06:18
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