Feat: Added support for session graph and session essence templates. (#16851)

### Summary

Feat: Added support for session graph and session essence templates.
This commit is contained in:
balibabu
2026-07-13 14:48:02 +08:00
committed by GitHub
parent d549194562
commit 2b9569ff51
40 changed files with 212 additions and 827 deletions

View File

@@ -59,6 +59,16 @@ function ArtifactForceGraph<TNodeValue = IArtifactGraphEntity>({
[onNodeClick, mapNodeToValue],
);
const getLinkColor = useCallback(() => {
if (typeof window === 'undefined' || !containerRef.current) {
return '#b2b5b7';
}
return window
.getComputedStyle(containerRef.current)
.getPropertyValue('--text-disabled')
.trim();
}, []);
return (
<div
ref={containerRef}
@@ -77,6 +87,7 @@ function ArtifactForceGraph<TNodeValue = IArtifactGraphEntity>({
onNodeClick={handleNodeClick}
nodeCanvasObject={renderNodeLabel}
nodeCanvasObjectMode={() => 'after'}
linkColor={getLinkColor}
/>
)}
</div>