diff --git a/plugins/mindstudio-insight-plugins/ModelVis/app/src/FileUpload.tsx b/plugins/mindstudio-insight-plugins/ModelVis/app/src/FileUpload.tsx index 33704bf070c6bfcc5a4d5d09ad86ade6c66049ca..2c44db076965f45f7f891b9ba2b45d9f1d804872 100644 --- a/plugins/mindstudio-insight-plugins/ModelVis/app/src/FileUpload.tsx +++ b/plugins/mindstudio-insight-plugins/ModelVis/app/src/FileUpload.tsx @@ -41,7 +41,7 @@ const FileUpload = () => { > Upload -
+
{recentProjectList.map(p => ( ))} diff --git a/plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Fsg/Filter.tsx b/plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Fsg/Filter.tsx index 31505db3a0acd8da292390f7e5248986862c3a85..0b7775de6fe95de0e51e4ba8973fb000e4b5a2c8 100644 --- a/plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Fsg/Filter.tsx +++ b/plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Fsg/Filter.tsx @@ -83,6 +83,9 @@ const Filter = (props: { useEffect(() => { setLoadingQueryBtn(false) setLoadingExportBtn(false) + setRepeatTimes(2) + setMinNodes(2) + setMaxNodes(3) }, [path]) return
diff --git a/plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Fsg/FsgTable.tsx b/plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Fsg/FsgTable.tsx index 7e1ba0ef0ba787becc744099e8406d311e96a9a9..2435cd868846cb3bc7fb897a7e0191b2cc93a545 100644 --- a/plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Fsg/FsgTable.tsx +++ b/plugins/mindstudio-insight-plugins/ModelVis/app/src/ModelStructure/Fsg/FsgTable.tsx @@ -85,7 +85,7 @@ const getColumns = (t: I18nFunc, jumpFsg: (record: FsgTableRow) => void, workerI ellipsis: true, sorter: (a: FsgTableRow, b: FsgTableRow): number => a.fsg.localeCompare(b.fsg), render: (value, record) => { - return
+ return
void, workerI }} />
- {value} +
+ {value} +
} }, diff --git a/plugins/mindstudio-insight-plugins/ModelVis/app/src/features/Project.tsx b/plugins/mindstudio-insight-plugins/ModelVis/app/src/features/Project.tsx index 1fa426ba3c28b79fca51402a2609edc947ab4f49..e3459551c44bf09743bff44e2b15c2c393f50658 100644 --- a/plugins/mindstudio-insight-plugins/ModelVis/app/src/features/Project.tsx +++ b/plugins/mindstudio-insight-plugins/ModelVis/app/src/features/Project.tsx @@ -53,13 +53,14 @@ const Project = () => { await layoutNewPath(path) } - return
+ return
diff --git a/plugins/mindstudio-insight-plugins/ModelVis/app/src/features/Toolbar.tsx b/plugins/mindstudio-insight-plugins/ModelVis/app/src/features/Toolbar.tsx index 91bd122b7a438e41306b524a3ee19b9eb775752b..7b2bec969f94ec981a13a092db4a0b72632d148d 100644 --- a/plugins/mindstudio-insight-plugins/ModelVis/app/src/features/Toolbar.tsx +++ b/plugins/mindstudio-insight-plugins/ModelVis/app/src/features/Toolbar.tsx @@ -20,13 +20,16 @@ import ThemeSwitch from "./ThemeSwitch" export const Toolbar = () =>
-
- - -
- - +
+
+ +
+
+ +
+
+ +
-
+
diff --git a/plugins/mindstudio-insight-plugins/ModelVis/app/src/hooks/useNewPathForLayout.ts b/plugins/mindstudio-insight-plugins/ModelVis/app/src/hooks/useNewPathForLayout.ts index 9a0ed70e165057060857093716bdfdaf86479bc6..2ee425c70e18dd593d6edc879e1089b87114d459 100644 --- a/plugins/mindstudio-insight-plugins/ModelVis/app/src/hooks/useNewPathForLayout.ts +++ b/plugins/mindstudio-insight-plugins/ModelVis/app/src/hooks/useNewPathForLayout.ts @@ -22,7 +22,8 @@ import { modelPathAtom, fsgVisibleAtom, translateAtom, useSelectionHistory, useZoom, currentGraphAtom, allGraphAtom, - fsgPanelVisibleAtom + fsgPanelVisibleAtom, + subgraphesAtom, } from "stores" import { useRecentProjectStorage } from "stores/useRecentProjectStorage" @@ -39,6 +40,7 @@ export const useNewPathForLayout = (): LayoutNewPath => { const [translate, setTranslate] = useAtom(translateAtom) const [zoom, , resetZoom] = useZoom() const setLoading = useSetAtom(loadingAtom) + const setSubgraphs = useSetAtom(subgraphesAtom) const { recentProjCacheAdd } = useRecentProjectStorage() return async (path: string | null) => { @@ -59,6 +61,7 @@ export const useNewPathForLayout = (): LayoutNewPath => { if (res) { history.clear() + setSubgraphs({}) setCurrentGraphAtom(res) setAllGraphAtom(res) setDynamicVisible(false) diff --git a/plugins/mindstudio-insight-plugins/ModelVis/app/src/stores/app-context.ts b/plugins/mindstudio-insight-plugins/ModelVis/app/src/stores/app-context.ts index 6398cf4e1ef7e6c98a610cc99c062620b451d1f2..b6111e83cc25a97dd6abb9cbed58aa3a6bfdc806 100644 --- a/plugins/mindstudio-insight-plugins/ModelVis/app/src/stores/app-context.ts +++ b/plugins/mindstudio-insight-plugins/ModelVis/app/src/stores/app-context.ts @@ -12,4 +12,3 @@ export const nodesEdgesAtom = atom(null) export const allGraphAtom = atom(null!) export const currentGraphAtom = atom({children: [], name: '', paths: []}) export const subgraphesAtom = atom({}) -export const updateSubgraphAtom = atom(null, (get, set, newValue: Subgraphs) => set(subgraphesAtom, newValue))