Skip to content

Commit

Permalink
feat: CQDG-849 fews fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulous committed Oct 1, 2024
1 parent e1eb03d commit 3630845
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions src/graphql/quickFilter/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ export const GET_QUICK_FILTER_EXPLO = gql`
doc_count
}
}
family_type {
buckets {
key
doc_count
}
}
sex {
buckets {
key
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ const en = {
},
quickFilter: {
emptyMessage: 'Min. 3 characters',
menuTitle: 'Quick filter',
menuTitle: 'Quick Filter',
placeholder: 'Search...',
results: 'Results',
},
Expand Down Expand Up @@ -1303,6 +1303,7 @@ const en = {
age_at_recruitment: ageCategoriesKeyLabelTooltip,
mondo_tagged__age_at_event: ageCategoriesKeyLabelTooltip,
age_biospecimen_collection: ageCategoriesKeyLabelTooltip,
biospecimens__age_biospecimen_collection: ageCategoriesKeyLabelTooltip,
},
},
};
Expand Down
1 change: 1 addition & 0 deletions src/locales/fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1322,6 +1322,7 @@ const fr = {
age_at_recruitment: ageCategoriesKeyLabelTooltip,
mondo_tagged__age_at_event: ageCategoriesKeyLabelTooltip,
age_biospecimen_collection: ageCategoriesKeyLabelTooltip,
biospecimens__age_biospecimen_collection: ageCategoriesKeyLabelTooltip,
},
},
};
Expand Down
2 changes: 1 addition & 1 deletion src/utils/translation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export const getFacetsDictionary = () => ({
source_text_tumor_location: 'Tumor Location (Source Text)',
},
observed_phenotypes: {
name: intl.get('entities.participant.phenotype'),
name: intl.get('entities.participant.phenotype_hpo'),
},
observed_phenotype_tagged: {
source_text: intl.get('entities.participant.phenotype_source_text'),
Expand Down
3 changes: 1 addition & 2 deletions src/views/DataExploration/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ const DataExploration = () => {
const [forceClose, setForceClose] = useState<boolean>(false);

const quickfilterOpenRemote = (field: string): boolean => {
if (field === 'observed_phenotype__name') {
if (field === 'observed_phenotypes__name') {
dispatch(
remoteSliceActions.openRemoteComponent({
id: RemoteComponentList.HPOTree,
Expand All @@ -222,7 +222,6 @@ const DataExploration = () => {

return true;
}

return false;
};

Expand Down

0 comments on commit 3630845

Please sign in to comment.