-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed(Search-Filter): Connect Search Filter and endpoint request #2211
Changes from all commits
35c4429
9ac5349
ccf1a53
e8d3d40
cbdd26b
a1c633e
aaec478
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Unchanged files with check annotations Beta
} | ||
ws.onmessage = (event) => { | ||
console.log('Message from server:', event.data) | ||
Check warning on line 298 in src/components/App/index.tsx GitHub Actions / eslint-run
|
||
const data = JSON.parse(event.data) | ||
} | ||
ws.onclose = () => { | ||
console.log('WebSocket connection closed') | ||
Check warning on line 320 in src/components/App/index.tsx GitHub Actions / eslint-run
|
||
} | ||
}, [runningProjectId, setRunningProjectMessages]) | ||
await handleAuth() | ||
} catch (error) { | ||
console.log(error) | ||
Check warning on line 112 in src/components/Auth/index.tsx GitHub Actions / eslint-run
Check warning on line 112 in src/components/Auth/index.tsx GitHub Actions / craco-build-run
Check warning on line 112 in src/components/Auth/index.tsx GitHub Actions / cypress-run (cypress/e2e/admin/topics.cy.ts)
Check warning on line 112 in src/components/Auth/index.tsx GitHub Actions / cypress-run (cypress/e2e/addContent/addYoutube.cy.ts)
Check warning on line 112 in src/components/Auth/index.tsx GitHub Actions / cypress-run (cypress/e2e/createGeneratedEdges/createGeneratedEdges.cy.ts)
Check warning on line 112 in src/components/Auth/index.tsx GitHub Actions / cypress-run (cypress/e2e/checkEnv.cy.ts)
Check warning on line 112 in src/components/Auth/index.tsx GitHub Actions / cypress-run (cypress/e2e/addContent/addSource.cy.ts)
Check warning on line 112 in src/components/Auth/index.tsx GitHub Actions / cypress-run (cypress/e2e/sourcesTable/sourcesTable.cy.ts)
Check warning on line 112 in src/components/Auth/index.tsx GitHub Actions / cypress-run (cypress/e2e/curationTable/curation.cy.ts)
Check warning on line 112 in src/components/Auth/index.tsx GitHub Actions / cypress-run (cypress/e2e/addContent/addWebpage.cy.ts)
Check warning on line 112 in src/components/Auth/index.tsx GitHub Actions / cypress-run (cypress/e2e/addContent/addTweet.cy.ts)
Check warning on line 112 in src/components/Auth/index.tsx GitHub Actions / cypress-run (cypress/e2e/admin/signin.cy.ts)
Check warning on line 112 in src/components/Auth/index.tsx GitHub Actions / cypress-run (cypress/e2e/trendingTopics/trendingTopics.cy.ts)
Check warning on line 112 in src/components/Auth/index.tsx GitHub Actions / cypress-run (cypress/e2e/seeLatest/latest.cy.ts)
|
||
} | ||
} | ||
const { ref_id: id } = nodeFrom | ||
const { ref_id: selectedId } = selectedToNode | ||
console.log(id, selectedId) | ||
closeHandler() | ||
} catch (error) { |
const [normalizedSchemasByType] = useSchemaStore((s) => [s.normalizedSchemasByType]) | ||
const [showTooltip, setShowTooltip] = useState(false) | ||
console.log(isSelected) | ||
const { size, camera } = useThree() | ||
setOptions(newOptions) | ||
} | ||
} catch (error) { | ||
console.log('Error from get user details: ', error) | ||
} | ||
} | ||
setActualTopicNode(node) | ||
} catch (error) { | ||
console.log(error) | ||
} finally { | ||
setTopicIsLoading(false) | ||
} |
setActualNode(selectedNode) | ||
} | ||
} catch (error) { | ||
console.log(error) | ||
} finally { | ||
setTopicIsLoading(false) | ||
} |
}) | ||
}, [simulation2d]) | ||
console.log(selectionGraphData.nodes) | ||
return ( | ||
<> |
} | ||
} | ||
} catch (error) { | ||
console.log(error) | ||
} | ||
}, [addNewNode, selectedNode?.ref_id, selectionGraphData.nodes.length]) | ||
} | ||
export const overrideConsole = () => { | ||
if (!window.location.hostname.includes('local') || true) { | ||
Check warning on line 67 in src/utils/logger/logger.ts GitHub Actions / craco-build-run
Check warning on line 67 in src/utils/logger/logger.ts GitHub Actions / cypress-run (cypress/e2e/admin/topics.cy.ts)
Check warning on line 67 in src/utils/logger/logger.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addYoutube.cy.ts)
Check warning on line 67 in src/utils/logger/logger.ts GitHub Actions / cypress-run (cypress/e2e/createGeneratedEdges/createGeneratedEdges.cy.ts)
Check warning on line 67 in src/utils/logger/logger.ts GitHub Actions / cypress-run (cypress/e2e/checkEnv.cy.ts)
Check warning on line 67 in src/utils/logger/logger.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addSource.cy.ts)
Check warning on line 67 in src/utils/logger/logger.ts GitHub Actions / cypress-run (cypress/e2e/sourcesTable/sourcesTable.cy.ts)
Check warning on line 67 in src/utils/logger/logger.ts GitHub Actions / cypress-run (cypress/e2e/curationTable/curation.cy.ts)
Check warning on line 67 in src/utils/logger/logger.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addWebpage.cy.ts)
Check warning on line 67 in src/utils/logger/logger.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addTweet.cy.ts)
Check warning on line 67 in src/utils/logger/logger.ts GitHub Actions / cypress-run (cypress/e2e/admin/signin.cy.ts)
Check warning on line 67 in src/utils/logger/logger.ts GitHub Actions / cypress-run (cypress/e2e/trendingTopics/trendingTopics.cy.ts)
Check warning on line 67 in src/utils/logger/logger.ts GitHub Actions / cypress-run (cypress/e2e/seeLatest/latest.cy.ts)
|
||
return | ||
} | ||
simulationHelpers.simulationRestart() | ||
} catch (error) { | ||
console.log(error) | ||
Check warning on line 206 in src/stores/useGraphStore/index.ts GitHub Actions / craco-build-run
Check warning on line 206 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/admin/topics.cy.ts)
Check warning on line 206 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addYoutube.cy.ts)
Check warning on line 206 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/createGeneratedEdges/createGeneratedEdges.cy.ts)
Check warning on line 206 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/checkEnv.cy.ts)
Check warning on line 206 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addSource.cy.ts)
Check warning on line 206 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/sourcesTable/sourcesTable.cy.ts)
Check warning on line 206 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/curationTable/curation.cy.ts)
Check warning on line 206 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addWebpage.cy.ts)
Check warning on line 206 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addTweet.cy.ts)
Check warning on line 206 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/admin/signin.cy.ts)
Check warning on line 206 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/trendingTopics/trendingTopics.cy.ts)
Check warning on line 206 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/seeLatest/latest.cy.ts)
|
||
// eslint-disable-next-line no-debugger | ||
} | ||
simulationRestart: () => { | ||
const { simulation } = get() | ||
if (false) { | ||
Check warning on line 297 in src/stores/useGraphStore/index.ts GitHub Actions / craco-build-run
Check warning on line 297 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/admin/topics.cy.ts)
Check warning on line 297 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addYoutube.cy.ts)
Check warning on line 297 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/createGeneratedEdges/createGeneratedEdges.cy.ts)
Check warning on line 297 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/checkEnv.cy.ts)
Check warning on line 297 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addSource.cy.ts)
Check warning on line 297 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/sourcesTable/sourcesTable.cy.ts)
Check warning on line 297 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/curationTable/curation.cy.ts)
Check warning on line 297 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addWebpage.cy.ts)
Check warning on line 297 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addTweet.cy.ts)
Check warning on line 297 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/admin/signin.cy.ts)
Check warning on line 297 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/trendingTopics/trendingTopics.cy.ts)
Check warning on line 297 in src/stores/useGraphStore/index.ts GitHub Actions / cypress-run (cypress/e2e/seeLatest/latest.cy.ts)
|
||
runSimulationPhase(simulation) | ||
} | ||
}, | ||
}, | ||
simulationCreate: (nodes, links) => { | ||
console.log('created') | ||
const structuredNodes = structuredClone(nodes) | ||
const structuredLinks = structuredClone(links) |
return null | ||
} catch (error) { | ||
console.log(JSON.stringify(error)) | ||
Check warning on line 31 in src/testSphinxBridge/saveLsat.ts GitHub Actions / cypress-run (cypress/e2e/admin/topics.cy.ts)
Check warning on line 31 in src/testSphinxBridge/saveLsat.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addYoutube.cy.ts)
Check warning on line 31 in src/testSphinxBridge/saveLsat.ts GitHub Actions / cypress-run (cypress/e2e/createGeneratedEdges/createGeneratedEdges.cy.ts)
Check warning on line 31 in src/testSphinxBridge/saveLsat.ts GitHub Actions / cypress-run (cypress/e2e/checkEnv.cy.ts)
Check warning on line 31 in src/testSphinxBridge/saveLsat.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addSource.cy.ts)
Check warning on line 31 in src/testSphinxBridge/saveLsat.ts GitHub Actions / cypress-run (cypress/e2e/sourcesTable/sourcesTable.cy.ts)
Check warning on line 31 in src/testSphinxBridge/saveLsat.ts GitHub Actions / cypress-run (cypress/e2e/curationTable/curation.cy.ts)
Check warning on line 31 in src/testSphinxBridge/saveLsat.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addWebpage.cy.ts)
Check warning on line 31 in src/testSphinxBridge/saveLsat.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addTweet.cy.ts)
Check warning on line 31 in src/testSphinxBridge/saveLsat.ts GitHub Actions / cypress-run (cypress/e2e/admin/signin.cy.ts)
Check warning on line 31 in src/testSphinxBridge/saveLsat.ts GitHub Actions / cypress-run (cypress/e2e/trendingTopics/trendingTopics.cy.ts)
Check warning on line 31 in src/testSphinxBridge/saveLsat.ts GitHub Actions / cypress-run (cypress/e2e/seeLatest/latest.cy.ts)
|
||
return null | ||
} |
return null | ||
} catch (error) { | ||
console.log(JSON.stringify(error)) | ||
Check warning on line 43 in src/testSphinxBridge/getLsat.ts GitHub Actions / cypress-run (cypress/e2e/admin/topics.cy.ts)
Check warning on line 43 in src/testSphinxBridge/getLsat.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addYoutube.cy.ts)
Check warning on line 43 in src/testSphinxBridge/getLsat.ts GitHub Actions / cypress-run (cypress/e2e/createGeneratedEdges/createGeneratedEdges.cy.ts)
Check warning on line 43 in src/testSphinxBridge/getLsat.ts GitHub Actions / cypress-run (cypress/e2e/checkEnv.cy.ts)
Check warning on line 43 in src/testSphinxBridge/getLsat.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addSource.cy.ts)
Check warning on line 43 in src/testSphinxBridge/getLsat.ts GitHub Actions / cypress-run (cypress/e2e/sourcesTable/sourcesTable.cy.ts)
Check warning on line 43 in src/testSphinxBridge/getLsat.ts GitHub Actions / cypress-run (cypress/e2e/curationTable/curation.cy.ts)
Check warning on line 43 in src/testSphinxBridge/getLsat.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addWebpage.cy.ts)
Check warning on line 43 in src/testSphinxBridge/getLsat.ts GitHub Actions / cypress-run (cypress/e2e/addContent/addTweet.cy.ts)
Check warning on line 43 in src/testSphinxBridge/getLsat.ts GitHub Actions / cypress-run (cypress/e2e/admin/signin.cy.ts)
Check warning on line 43 in src/testSphinxBridge/getLsat.ts GitHub Actions / cypress-run (cypress/e2e/trendingTopics/trendingTopics.cy.ts)
Check warning on line 43 in src/testSphinxBridge/getLsat.ts GitHub Actions / cypress-run (cypress/e2e/seeLatest/latest.cy.ts)
|
||
return null | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @Rassl, I believe you might have missed this part of the code. Could you please review it again? Everything is working well on my side now. Please see the demo:
https://www.loom.com/share/5dec38ba89024a1c93ed297422478ec3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Rassl, could you please scroll down a bit and take a look at the code above?