From 21029820f8e6315c64a3dd33088035bff5542ef0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D0=B0=D1=81=D1=83=D0=BB?= Date: Fri, 19 Jul 2024 18:05:52 +0300 Subject: [PATCH] feat: disable rename a topic test --- cypress/e2e/curationTable/curation.cy.ts | 2 +- src/components/App/index.tsx | 2 -- src/components/Booster/index.tsx | 2 +- .../ModalsContainer/AddNodeEdgeModal/Body/index.tsx | 2 +- src/components/ModalsContainer/ChangeNodeTypeModal/index.tsx | 2 +- .../Universe/Graph/Cubes/SelectionDataNodes/index.tsx | 5 ----- src/components/Universe/Graph/Segment/LinkBadge/index.tsx | 2 +- 7 files changed, 5 insertions(+), 12 deletions(-) diff --git a/cypress/e2e/curationTable/curation.cy.ts b/cypress/e2e/curationTable/curation.cy.ts index 355d1e423..006a16ff5 100644 --- a/cypress/e2e/curationTable/curation.cy.ts +++ b/cypress/e2e/curationTable/curation.cy.ts @@ -29,7 +29,7 @@ describe('Test Curation Table', () => { cy.get('[data-testid="topic-search-container"]').find('button[type="button"]').click() }) - it('Rename a Topic', () => { + it.skip('Rename a Topic', () => { cy.intercept({ method: 'GET', url: 'http://localhost:8444/api/nodes/info*', diff --git a/src/components/App/index.tsx b/src/components/App/index.tsx index 43208da50..69d94f208 100644 --- a/src/components/App/index.tsx +++ b/src/components/App/index.tsx @@ -128,8 +128,6 @@ export const App = () => { const handleAiSummaryAnswer = useCallback( (data: AiSummaryAnswerResponse) => { - console.log(data) - if (data.question && getKeyExist(data.question)) { setAiSummaryAnswer(data.question, { answer: data.answer, answerLoading: false }) } diff --git a/src/components/Booster/index.tsx b/src/components/Booster/index.tsx index 362644707..e6d3159c3 100644 --- a/src/components/Booster/index.tsx +++ b/src/components/Booster/index.tsx @@ -46,7 +46,7 @@ export const Booster = ({ count = 0, updateCount, content, readOnly, refId }: Pr updateCount(count + defaultBoostAmount) } } catch (e) { - console.log(e) + console.error(e) } setSubmitting(false) diff --git a/src/components/ModalsContainer/AddNodeEdgeModal/Body/index.tsx b/src/components/ModalsContainer/AddNodeEdgeModal/Body/index.tsx index ecef65eb4..c184629db 100644 --- a/src/components/ModalsContainer/AddNodeEdgeModal/Body/index.tsx +++ b/src/components/ModalsContainer/AddNodeEdgeModal/Body/index.tsx @@ -46,7 +46,7 @@ export const Body = () => { setTopicEdge(edge) } } catch (error) { - console.log(error) + console.error(error) } finally { setTopicIsLoading(false) } diff --git a/src/components/ModalsContainer/ChangeNodeTypeModal/index.tsx b/src/components/ModalsContainer/ChangeNodeTypeModal/index.tsx index f8c52862d..8423f7083 100644 --- a/src/components/ModalsContainer/ChangeNodeTypeModal/index.tsx +++ b/src/components/ModalsContainer/ChangeNodeTypeModal/index.tsx @@ -89,7 +89,7 @@ const handleSubmitForm = async ( // eslint-disable-next-line @typescript-eslint/no-explicit-any } catch (err: any) { - console.log(err) + console.error(err) let errorMessage = NODE_ADD_ERROR diff --git a/src/components/Universe/Graph/Cubes/SelectionDataNodes/index.tsx b/src/components/Universe/Graph/Cubes/SelectionDataNodes/index.tsx index 895fcdaf0..8c59e5ec6 100644 --- a/src/components/Universe/Graph/Cubes/SelectionDataNodes/index.tsx +++ b/src/components/Universe/Graph/Cubes/SelectionDataNodes/index.tsx @@ -1,5 +1,4 @@ import { Segments } from '@react-three/drei' -import { useFrame } from '@react-three/fiber' import { memo, useEffect, useRef, useState } from 'react' import { Group } from 'three' import { useShallow } from 'zustand/react/shallow' @@ -82,10 +81,6 @@ export const SelectionDataNodes = memo(() => { [setSelectionData], ) - useFrame(() => { - // console.log(simulation2d.alpha()) - }) - useEffect(() => { if (!simulation2d) { return diff --git a/src/components/Universe/Graph/Segment/LinkBadge/index.tsx b/src/components/Universe/Graph/Segment/LinkBadge/index.tsx index 38b504691..ff400683d 100644 --- a/src/components/Universe/Graph/Segment/LinkBadge/index.tsx +++ b/src/components/Universe/Graph/Segment/LinkBadge/index.tsx @@ -61,7 +61,7 @@ export const PathwayBadges = ({ links, simulation }: Props) => { }} > {i.edge_type} - console.log(123)}> +