From abfac6453acb5739c0067e3384c26f5373b9d32f Mon Sep 17 00:00:00 2001 From: rzvxa Date: Wed, 4 Oct 2023 11:11:46 +0330 Subject: [PATCH 1/3] Bumped release version --- package.json | 2 +- release/app/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d5c7ec7..37dc678 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "Xtory", - "version": "0.2.2", + "version": "0.2.3", "description": "A tool for writing branching nonlinear stories. ", "author": "Ali Rezvani ", "repository": { diff --git a/release/app/package.json b/release/app/package.json index 4d84696..70c8634 100644 --- a/release/app/package.json +++ b/release/app/package.json @@ -1,6 +1,6 @@ { "name": "Xtory", - "version": "0.2.2", + "version": "0.2.3", "description": "A tool for writing branching nonlinear stories. ", "license": "GPT-3", "author": { From ffa7f7e95e0ae6246d5028302c721a811e50b799 Mon Sep 17 00:00:00 2001 From: Ali Rezvani <3788964+rzvxa@users.noreply.github.com> Date: Sat, 7 Oct 2023 03:25:24 +0000 Subject: [PATCH 2/3] Missplaced grid at graph load Fixes #38 --- src/renderer/components/Tab/TabViews/FlowView.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/components/Tab/TabViews/FlowView.tsx b/src/renderer/components/Tab/TabViews/FlowView.tsx index 2c2bc77..396681b 100644 --- a/src/renderer/components/Tab/TabViews/FlowView.tsx +++ b/src/renderer/components/Tab/TabViews/FlowView.tsx @@ -185,6 +185,7 @@ function Flow({ tabId, setTabIsDirty }: FlowProps) { if (flow) { const { x = 0, y = 0, zoom = 1 } = flow.viewport; + flow.nodes?.forEach((node: any) => (node.data.focusOnInit = false)); setNodes(flow.nodes || []); setEdges(flow.edges || []); setViewport({ x, y, zoom }); From 672becb8f76fb9a93100d286f3965810e527d3f5 Mon Sep 17 00:00:00 2001 From: rzvxa Date: Sat, 7 Oct 2023 07:03:58 +0330 Subject: [PATCH 3/3] Fixed linter error --- src/renderer/components/Tab/TabViews/FlowView.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/renderer/components/Tab/TabViews/FlowView.tsx b/src/renderer/components/Tab/TabViews/FlowView.tsx index 396681b..09371f9 100644 --- a/src/renderer/components/Tab/TabViews/FlowView.tsx +++ b/src/renderer/components/Tab/TabViews/FlowView.tsx @@ -185,7 +185,9 @@ function Flow({ tabId, setTabIsDirty }: FlowProps) { if (flow) { const { x = 0, y = 0, zoom = 1 } = flow.viewport; - flow.nodes?.forEach((node: any) => (node.data.focusOnInit = false)); + flow.nodes?.forEach((node: any) => { + node.data.focusOnInit = false; + }); setNodes(flow.nodes || []); setEdges(flow.edges || []); setViewport({ x, y, zoom });