From f5f096ffd1b67a5bb6095d227119a5f0f686b127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Fiaudrin?= Date: Wed, 4 Feb 2026 16:08:32 +0100 Subject: [PATCH 1/2] add icon in tree for complex type --- frontend/src/renderer/components/tree/TreeLibrary.tsx | 5 +++++ frontend/src/renderer/types/nodes.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/frontend/src/renderer/components/tree/TreeLibrary.tsx b/frontend/src/renderer/components/tree/TreeLibrary.tsx index 4385019d..6a483c2c 100644 --- a/frontend/src/renderer/components/tree/TreeLibrary.tsx +++ b/frontend/src/renderer/components/tree/TreeLibrary.tsx @@ -12,6 +12,7 @@ import { } from '@mantine/core'; import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { + IconBraces, IconFileUnknown, IconFolder, IconFolderOpen, @@ -186,6 +187,7 @@ function NodeIcon({ NodeInfoTypeEnum.INTEGER, NodeInfoTypeEnum.FLOAT, NodeInfoTypeEnum.STRING, + NodeInfoTypeEnum.COMPLEX, ].includes(type) ) { if (hasUserSelectedText()) { @@ -300,6 +302,9 @@ function NodeIcon({ [NodeInfoTypeEnum.STRING]: getCheckboxIcon( , ), + [NodeInfoTypeEnum.COMPLEX]: getCheckboxIcon( + , + ), }; return ( diff --git a/frontend/src/renderer/types/nodes.ts b/frontend/src/renderer/types/nodes.ts index 73504108..ee4d005a 100644 --- a/frontend/src/renderer/types/nodes.ts +++ b/frontend/src/renderer/types/nodes.ts @@ -4,6 +4,7 @@ export enum NodeInfoTypeEnum { INTEGER = 'INT', FLOAT = 'FLT', STRING = 'STR', + COMPLEX = 'CPX', } export type NodeInfoChildrenResponse = { From 7810b6b5f2a1f0d4737c222a5a988e708c8577fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Fiaudrin?= Date: Mon, 9 Feb 2026 13:14:12 +0100 Subject: [PATCH 2/2] update complex type icon --- frontend/src/renderer/components/tree/TreeLibrary.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/renderer/components/tree/TreeLibrary.tsx b/frontend/src/renderer/components/tree/TreeLibrary.tsx index 6a483c2c..1fb10e76 100644 --- a/frontend/src/renderer/components/tree/TreeLibrary.tsx +++ b/frontend/src/renderer/components/tree/TreeLibrary.tsx @@ -12,7 +12,7 @@ import { } from '@mantine/core'; import { useCallback, useEffect, useMemo, useRef, useState } from 'react'; import { - IconBraces, + IconMathFunction, IconFileUnknown, IconFolder, IconFolderOpen, @@ -303,7 +303,7 @@ function NodeIcon({ , ), [NodeInfoTypeEnum.COMPLEX]: getCheckboxIcon( - , + , ), };