From 2b294f4b1efc90f87ebcee82f6342e805e69a2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Jyrki=C3=A4inen?= Date: Mon, 17 Nov 2025 13:54:18 +0200 Subject: [PATCH 1/4] debugging links --- src/components/sidebar/linkView/LinkView.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/sidebar/linkView/LinkView.tsx b/src/components/sidebar/linkView/LinkView.tsx index e00d740f7..9c66da589 100644 --- a/src/components/sidebar/linkView/LinkView.tsx +++ b/src/components/sidebar/linkView/LinkView.tsx @@ -71,8 +71,10 @@ class LinkView extends React.Component { async componentDidMount() { this._isMounted = true if (this.props.isNewLink) { + console.log("************ new link ************") await this.initNewLink() } else { + console.log("************ existing link ************") await this.initExistingLink() } this.props.linkStore!.setIsEditingDisabled(!this.props.isNewLink) @@ -102,6 +104,8 @@ class LinkView extends React.Component { this.props.linkStore!.clear() const [startNodeId, endNodeId, transitTypeCode] = this.props.match!.params.id.split(',') + console.log("************ initExistingLink ************") + console.log(this.props) if (startNodeId && endNodeId && transitTypeCode) { const link = await LinkService.fetchLink(startNodeId, endNodeId, transitTypeCode) if (!link) { From 9fb66a90a65b70a5eeea03f7e3c8f73192a634bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Jyrki=C3=A4inen?= Date: Mon, 17 Nov 2025 13:59:14 +0200 Subject: [PATCH 2/4] formatting --- src/components/sidebar/linkView/LinkView.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/sidebar/linkView/LinkView.tsx b/src/components/sidebar/linkView/LinkView.tsx index 9c66da589..014398dc4 100644 --- a/src/components/sidebar/linkView/LinkView.tsx +++ b/src/components/sidebar/linkView/LinkView.tsx @@ -71,10 +71,10 @@ class LinkView extends React.Component { async componentDidMount() { this._isMounted = true if (this.props.isNewLink) { - console.log("************ new link ************") + console.log('************ new link ************') await this.initNewLink() } else { - console.log("************ existing link ************") + console.log('************ existing link ************') await this.initExistingLink() } this.props.linkStore!.setIsEditingDisabled(!this.props.isNewLink) @@ -104,7 +104,7 @@ class LinkView extends React.Component { this.props.linkStore!.clear() const [startNodeId, endNodeId, transitTypeCode] = this.props.match!.params.id.split(',') - console.log("************ initExistingLink ************") + console.log('************ initExistingLink ************') console.log(this.props) if (startNodeId && endNodeId && transitTypeCode) { const link = await LinkService.fetchLink(startNodeId, endNodeId, transitTypeCode) From 7fc7e34d96ef864e2551aeddb4e41b9ea9517212 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Jyrki=C3=A4inen?= Date: Mon, 17 Nov 2025 14:25:45 +0200 Subject: [PATCH 3/4] downgrading cypress --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d338504ce..ce915413d 100644 --- a/package.json +++ b/package.json @@ -117,7 +117,7 @@ "bumped": "^0.10.11", "bumped-changelog": "0.3.13", "bumped-terminal": "^0.7.6", - "cypress": "^15.3.0", + "cypress": "9.7.0", "cypress-commands": "^0.3.1", "cypress-wait-until": "^1.6.1", "lint-staged": "^9.0.0", From 637f1d6d678ce4ef884a4e3b8b2ca2d698534c41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Jyrki=C3=A4inen?= Date: Mon, 17 Nov 2025 14:32:00 +0200 Subject: [PATCH 4/4] dockerfile changes --- Dockerfile | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cccdb6cc6..2d92f5e2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ WORKDIR ${WORK} # Install app dependencies COPY yarn.lock package.json .yarnrc ${WORK} -RUN yarn +RUN CYPRESS_INSTALL_BINARY=0 yarn COPY . ${WORK} diff --git a/package.json b/package.json index ce915413d..d338504ce 100644 --- a/package.json +++ b/package.json @@ -117,7 +117,7 @@ "bumped": "^0.10.11", "bumped-changelog": "0.3.13", "bumped-terminal": "^0.7.6", - "cypress": "9.7.0", + "cypress": "^15.3.0", "cypress-commands": "^0.3.1", "cypress-wait-until": "^1.6.1", "lint-staged": "^9.0.0",