Function
getEdgeVisibility
(conn: typeof edgeConnections[0], visibleStepCount: number)
Source from the content-addressed store, hash-verified
| 282 | ); |
| 283 | |
| 284 | const getEdgeVisibility = (conn: typeof edgeConnections[0], visibleStepCount: number) => { |
| 285 | const sourceIndex = allSteps.findIndex(s => s.id === conn.source); |
| 286 | const targetIndex = allSteps.findIndex(s => s.id === conn.target); |
| 287 | return sourceIndex < visibleStepCount && targetIndex < visibleStepCount; |
| 288 | }; |
| 289 | |
| 290 | const handleNext = useCallback(() => { |
| 291 | if (visibleCount < allSteps.length) { |
Tested by
no test coverage detected