Skip to content

Commit 0dd3823

Browse files
Remove stale Same link type filter from force graph UI.
Fixes #34 — backend no longer emits Same links (#553); drop the checkbox, default ignore list, and dead link color case. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 374d066 commit 0dd3823

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • application/frontend/src/pages/Explorer/visuals/force-graph

application/frontend/src/pages/Explorer/visuals/force-graph/forceGraph.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ interface DropdownOption {
1919

2020
export const ExplorerForceGraph = () => {
2121
const [graphData, setGraphData] = useState();
22-
const [ignoreTypes, setIgnoreTypes] = useState(['same']);
22+
const [ignoreTypes, setIgnoreTypes] = useState<string[]>([]);
2323
const [maxCount, setMaxCount] = useState(0);
2424
const [maxNodeSize, setMaxNodeSize] = useState(0);
2525
const {
@@ -376,8 +376,6 @@ export const ExplorerForceGraph = () => {
376376
return 'skyblue';
377377
case 'linked to':
378378
return 'gray';
379-
case 'same':
380-
return 'red';
381379
default:
382380
return 'white';
383381
}
@@ -473,8 +471,6 @@ export const ExplorerForceGraph = () => {
473471
checked={!ignoreTypes.includes('linked to')}
474472
onChange={() => toggleLinks('linked to')}
475473
/>
476-
{' | '}
477-
<Checkbox label="Same" checked={!ignoreTypes.includes('same')} onChange={() => toggleLinks('same')} />
478474

479475
<div style={{ marginBottom: '10px', marginTop: '10px', marginLeft: '10px' }}>
480476
<Dropdown

0 commit comments

Comments
 (0)