Skip to content

Commit cb9eb57

Browse files
committed
feat(networks): ai icon
1 parent 9d5d529 commit cb9eb57

File tree

7 files changed

+41
-14
lines changed

7 files changed

+41
-14
lines changed

client/package-lock.json

Lines changed: 22 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Loading

client/public/icons/ai.svg

Lines changed: 1 addition & 0 deletions
Loading

client/src/pages/networks/components/clusters/button.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,20 @@ export default function ClustersButton() {
1818
<ButtonGroup size={["xs", "sm"].includes(screen) ? "sm" : "md"}>
1919
<Button
2020
title={intl.formatMessage({ id: "networks.clusters.button.description" })}
21-
iconPosition="right"
22-
icon={parameters.clusters ? "arrow-up-line" : "arrow-down-line"}
21+
variant={parameters.clusters ? "secondary" : "primary"}
2322
onClick={() => handleParameterChange("clusters", !parameters.clusters)}
2423
disabled={search.isFetching || Boolean(search.error)}
2524
>
25+
<span className="fr-icon-ai-generate-2 fr-btn--icon-left" style={{ cursor: "help" }} />
26+
<span>
2627
{screen === "xs"
2728
? intl.formatMessage({
2829
id: parameters.clusters ? "networks.clusters.button.rm.short" : "networks.clusters.button.add.short",
2930
})
3031
: intl.formatMessage({
3132
id: parameters.clusters ? "networks.clusters.button.rm" : "networks.clusters.button.add",
3233
})}
34+
</span>
3335
</Button>
3436
</ButtonGroup>
3537
)

client/src/pages/networks/locales/en.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,11 @@
8181
"networks.filters.button.label": "Filters",
8282
"networks.notice.quick-search": "The search is limited to 10,000 documents. For a more thorough search, disable quick search in the settings. (This may take a few minutes.)",
8383
"networks.spinner.count": "Search over {count} documents related to the query...",
84-
"networks.clusters.button.rm": "Hide communities* information",
85-
"networks.clusters.button.add": "Display communities* information",
86-
"networks.clusters.button.description": "* Using the Louvain method. Community labels are then calculated by generative AI from the community's corpus of documents.",
84+
"networks.clusters.button.rm": "Hide communities information",
85+
"networks.clusters.button.rm.short": "Hide communities",
86+
"networks.clusters.button.add": "Display communities information",
87+
"networks.clusters.button.add.short": "Display communities",
88+
"networks.clusters.button.description": "Using the Louvain method. Community labels are then calculated by generative AI from the community's corpus of documents.",
8789
"networks.search.error204.title": "No Result",
8890
"networks.search.error204.text": "This search returns no data.",
8991
"networks.exports.title": "Export",

client/src/pages/networks/locales/fr.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,11 +83,11 @@
8383
"networks.filters.button.label": "Filtres",
8484
"networks.notice.quick-search": "La recherche est limitée à 10 000 documents. Pour une recherche plus approfondie, désactivez la recherche rapide dans les paramètres. (Cela peut prendre quelques minutes.)",
8585
"networks.spinner.count": "Recherche parmi {count} documents liés à la requête...",
86-
"networks.clusters.button.rm": "Masquer les informations des communautés*",
87-
"networks.clusters.button.rm.short": "Masquer les communautés*",
88-
"networks.clusters.button.add": "Afficher les informations des communautés*",
89-
"networks.clusters.button.add.short": "Afficher les communautés*",
90-
"networks.clusters.button.description": "* Par la méthode de Louvain. Les labels des communautés sont ensuite calculés par IA générative à partir du corpus de documents de la communauté.",
86+
"networks.clusters.button.rm": "Masquer les informations des communautés",
87+
"networks.clusters.button.rm.short": "Masquer les communautés",
88+
"networks.clusters.button.add": "Afficher les informations des communautés",
89+
"networks.clusters.button.add.short": "Afficher les communautés",
90+
"networks.clusters.button.description": "Par la méthode de Louvain. Les labels des communautés sont ensuite calculés par IA générative à partir du corpus de documents de la communauté.",
9191
"networks.search.error204.title": "Pas de résultat",
9292
"networks.search.error204.text": "Cette recherche ne retourne aucune donnée.",
9393
"networks.exports.title": "Exporter",

client/src/styles.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,9 @@ $icons:
151151
('shapes-line', '/icons/shapes-line.svg')
152152
("mistral-ai", "/icons/mistral-ai.svg")
153153
("network-line", "/icons/network-line.svg")
154-
("network-fill", "/icons/network-fill.svg");
154+
("network-fill", "/icons/network-fill.svg")
155+
("ai", "/icons/ai.svg")
156+
("ai-generate-2", "/icons/ai-generate-2.svg");
155157

156158
@each $name, $mask in $icons {
157159

0 commit comments

Comments
 (0)