fix: hide redundant bottom bar (CodeViewer) on node click, closes #55

Agent-Logs-Url: https://github.com/Lum1104/Understand-Anything/sessions/f2065131-263d-42f8-957c-4006b0954284

Co-authored-by: fishinakleinbottle <11816323+fishinakleinbottle@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-29 15:09:15 +00:00
committed by GitHub
co-authored by fishinakleinbottle
parent 6bc16e7232
commit 43ab4fb893
@@ -480,7 +480,6 @@ function GraphViewInner() {
const navigationLevel = useDashboardStore((s) => s.navigationLevel);
const activeLayerId = useDashboardStore((s) => s.activeLayerId);
const selectNode = useDashboardStore((s) => s.selectNode);
const openCodeViewer = useDashboardStore((s) => s.openCodeViewer);
const drillIntoLayer = useDashboardStore((s) => s.drillIntoLayer);
const focusNodeId = useDashboardStore((s) => s.focusNodeId);
const setFocusNode = useDashboardStore((s) => s.setFocusNode);
@@ -523,10 +522,9 @@ function GraphViewInner() {
drillIntoLayer(targetLayerId);
} else {
selectNode(node.id);
openCodeViewer(node.id);
}
},
[navigationLevel, drillIntoLayer, selectNode, openCodeViewer],
[navigationLevel, drillIntoLayer, selectNode],
);
const onPaneClick = useCallback(() => {