Skip to content

Commit

Permalink
feat: Add concepts explanation to dataset filter panel section title
Browse files Browse the repository at this point in the history
  • Loading branch information
bprusinowski committed Nov 21, 2024
1 parent 4eaa7eb commit c843806
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 5 deletions.
18 changes: 17 additions & 1 deletion app/browser/dataset-browse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {
SearchFieldProps,
} from "@/components/form";
import { Loading, LoadingDataError } from "@/components/hint";
import { InfoIconTooltip } from "@/components/info-icon-tooltip";
import MaybeLink from "@/components/maybe-link";
import { MaybeTooltip } from "@/components/maybe-tooltip";
import {
Expand Down Expand Up @@ -625,6 +626,7 @@ const NavSection = ({
);
}, [counts, items]);
const { isOpen, open, close } = useDisclosure(!!currentFilter);

return (
<div>
<NavSectionTitle theme={theme} sx={{ mb: "block" }}>
Expand Down Expand Up @@ -881,7 +883,21 @@ export const SearchFilters = ({
counts={counts}
filters={filters}
icon={<SvgIcOrganisations width={20} height={20} />}
label={<Trans id="browse-panel.termsets">Concepts</Trans>}
label={
<Stack direction="row" gap={2} alignItems="center">
<Trans id="browse-panel.termsets">Concepts</Trans>
<InfoIconTooltip
variant="secondary"
placement="right"
title={
<Trans id="browse-panel.termsets.explanation">
Concepts represent values that can be shared across different
dimensions and datasets.
</Trans>
}
/>
</Stack>
}
extra={null}
disableLinks={disableNavLinks}
/>
Expand Down
5 changes: 4 additions & 1 deletion app/locales/de/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ msgstr "Organisationen"
msgid "browse-panel.termsets"
msgstr "Konzepte"

#: app/browser/dataset-browse.tsx
msgid "browse-panel.termsets.explanation"
msgstr "Konzepte stellen Werte dar, die über verschiedene Dimensionen und Datensätze hinweg geteilt werden können."

#: app/browser/dataset-browse.tsx
msgid "browse-panel.themes"
msgstr "Kategorien"
Expand Down Expand Up @@ -1099,7 +1103,6 @@ msgid "dataset-preview.keywords"
msgstr "Schlüsselwörter"

#: app/browser/dataset-browse.tsx
#: app/configurator/components/add-dataset-dialog.tsx
msgid "dataset-result.dimension-joined-by"
msgstr "Enthält Wert von"

Expand Down
5 changes: 4 additions & 1 deletion app/locales/en/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ msgstr "Organizations"
msgid "browse-panel.termsets"
msgstr "Concepts"

#: app/browser/dataset-browse.tsx
msgid "browse-panel.termsets.explanation"
msgstr "Concepts represent values that can be shared across different dimensions and datasets."

#: app/browser/dataset-browse.tsx
msgid "browse-panel.themes"
msgstr "Categories"
Expand Down Expand Up @@ -1099,7 +1103,6 @@ msgid "dataset-preview.keywords"
msgstr "Keywords"

#: app/browser/dataset-browse.tsx
#: app/configurator/components/add-dataset-dialog.tsx
msgid "dataset-result.dimension-joined-by"
msgstr "Joined by"

Expand Down
5 changes: 4 additions & 1 deletion app/locales/fr/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ msgstr "Organisations"
msgid "browse-panel.termsets"
msgstr "Concepts"

#: app/browser/dataset-browse.tsx
msgid "browse-panel.termsets.explanation"
msgstr "Les concepts représentent des valeurs qui peuvent être partagées entre différentes dimensions et ensembles de données."

#: app/browser/dataset-browse.tsx
msgid "browse-panel.themes"
msgstr "Catégories"
Expand Down Expand Up @@ -1099,7 +1103,6 @@ msgid "dataset-preview.keywords"
msgstr "Mots clés"

#: app/browser/dataset-browse.tsx
#: app/configurator/components/add-dataset-dialog.tsx
msgid "dataset-result.dimension-joined-by"
msgstr "Contient des valeurs de"

Expand Down
5 changes: 4 additions & 1 deletion app/locales/it/messages.po
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ msgstr "Organizzazioni"
msgid "browse-panel.termsets"
msgstr "Concetti"

#: app/browser/dataset-browse.tsx
msgid "browse-panel.termsets.explanation"
msgstr "I concetti rappresentano valori che possono essere condivisi tra diverse dimensioni e set di dati."

#: app/browser/dataset-browse.tsx
msgid "browse-panel.themes"
msgstr "Categorie"
Expand Down Expand Up @@ -1099,7 +1103,6 @@ msgid "dataset-preview.keywords"
msgstr "Parole chiave"

#: app/browser/dataset-browse.tsx
#: app/configurator/components/add-dataset-dialog.tsx
msgid "dataset-result.dimension-joined-by"
msgstr "Contiene valore da"

Expand Down

0 comments on commit c843806

Please sign in to comment.