Skip to content

Commit

Permalink
Revise dashboard layout to fit specs
Browse files Browse the repository at this point in the history
  • Loading branch information
akeldamas committed Nov 10, 2024
1 parent 40c1781 commit 4ef82ec
Showing 1 changed file with 22 additions and 131 deletions.
153 changes: 22 additions & 131 deletions apps/rda/src/config/elasticSearch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,12 @@ export const elasticConfig = [
dashboard: [
<ListFacet
config={{
id: "indi",
field: "individuals.fullName.keyword",
id: "pw",
field: "pathways.pathway.keyword",
title: {
en: "Individuals",
nl: "Individuen",
en: "Pathways",
nl: "Paden",
},
size: 10,
cols: 2,
rows: 1,
}}
Expand All @@ -57,62 +56,26 @@ export const elasticConfig = [
}}
/>,
<ListFacet
config={{
id: "so",
field: "source.keyword",
title: {
en: "Source",
nl: "Bron",
},
size: 10,
cols: 2,
rows: 1,
}}
/>,
<PieChartFacet
config={{
id: "rights",
field: "rights.description.keyword",
id: "indi",
field: "individuals.fullName.keyword",
title: {
en: "Rights",
nl: "Rechten",
en: "Individuals",
nl: "Individuen",
},
cols: 3,
size: 10,
cols: 2,
rows: 1,
}}
/>,
<PieChartFacet
config={{
id: "lang",
field: "dc_language.keyword",
title: {
en: "Language",
nl: "Taal",
},
cols: 3,
rows: 1,
}}
/>,
<ListFacet
config={{
id: "wf",
field: "workflows.WorkflowState.keyword",
title: {
en: "Workflows",
nl: "Workflows",
},
cols: 2,
rows: 1,
}}
/>,
<PieChartFacet
config={{
id: "uritype",
field: "uri_type.uri_type.keyword",
title: {
en: "URI types",
nl: "URI types",
},
cols: 3,
rows: 1,
}}
Expand All @@ -131,121 +94,49 @@ export const elasticConfig = [
/>,
<ListFacet
config={{
id: "reltype",
field: "relations.relation_type.keyword",
id: "insttype",
field: "related_institutions.english_name.keyword",
title: {
en: "Relation types",
nl: "Relatietype",
en: "Related institutions",
nl: "Gerelateerde instellingen",
},
cols: 2,
rows: 1,
}}
/>,
<PieChartFacet
<ListFacet
config={{
id: "wgs",
field: "working_groups.title.keyword",
title: {
en: "Working groups",
nl: "Werkgroepen",
},
cols: 3,
cols: 2,
rows: 1,
}}
/>,
<PieChartFacet
<ListFacet
config={{
id: "igs",
field: "interest_groups.title.keyword",
title: {
en: "Interest groups",
nl: "Interesse groepen",
},
cols: 3,
rows: 1,
}}
/>,
<ListFacet
config={{
id: "keywords-vocab",
field: "keywords.keyword.keyword",
title: {
en: "Keywords",
nl: "Trefwoorden",
},
cols: 2,
rows: 1,
}}
/>,
<PieChartFacet
config={{
id: "gorc-elements",
field: "gorc_elements.element.keyword",
title: {
en: "GORC Elements",
nl: "GORC Elementen",
},
cols: 3,
rows: 1,
}}
/>,
<PieChartFacet
config={{
id: "gorc-attributes",
field: "gorc_attributes.attribute.keyword",
title: {
en: "GORC Attributes",
nl: "GORC Attributen",
},
cols: 3,
rows: 1,
}}
/>,
<ListFacet
config={{
id: "pw",
field: "pathways.pathway.keyword",
title: {
en: "Pathways",
nl: "Paden",
},
cols: 2,
rows: 1,
}}
/>,
<ListFacet
config={{
id: "restype",
field: "dc_type.keyword",
id: "so",
field: "source.keyword",
title: {
en: "Resource type",
nl: "Brontype",
},
size: 15,
cols: 2,
rows: 1,
}}
/>,
<ListFacet
config={{
id: "disciplines",
field: "disciplines.list_item.keyword",
title: {
en: "Domains",
nl: "Domeinen",
},
cols: 2,
rows: 1,
}}
/>,
<ListFacet
config={{
id: "insttype",
field: "related_institutions.english_name.keyword",
title: {
en: "Related institutions",
nl: "Gerelateerde instellingen",
en: "Source",
nl: "Bron",
},
size: 10,
cols: 2,
rows: 1,
}}
Expand Down

0 comments on commit 4ef82ec

Please sign in to comment.