Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dep-graph): add experimental support for finding path between pr…
…ojects (#9643) * feat(dep-graph): add experimental support for tracing paths between projects * feat(graph): add algorithm for finding all paths between projects * cleanup(dep-graph): clean-up edge tooltip * cleanup(dep-graph): fix watch mode dev environment
- Loading branch information
1 parent
05a9544
commit dbe942c
Showing
25 changed files
with
17,931 additions
and
401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
export interface EdgeNodeTooltipProps { | ||
type: 'static' | 'dynamic' | 'implicit'; | ||
source: string; | ||
target: string; | ||
fileDependencies: Array<{ fileName: string }>; | ||
} | ||
function EdgeNodeTooltip({ | ||
type, | ||
source, | ||
target, | ||
fileDependencies, | ||
}: EdgeNodeTooltipProps) { | ||
return ( | ||
<div> | ||
<h4 className={type !== 'implicit' ? 'mb-3' : ''}> | ||
<span className="tag">{type ?? 'unknown'}</span> | ||
{source} → {target} | ||
</h4> | ||
{type !== 'implicit' ? ( | ||
<div className="rounded-md border border-gray-200"> | ||
<div className="rounded-t-md bg-gray-50 px-4 py-2 text-xs font-medium uppercase text-gray-500"> | ||
<span>Files</span> | ||
</div> | ||
<ul className="max-h-[300px] divide-y divide-gray-200 overflow-auto"> | ||
{fileDependencies.map((fileDep) => ( | ||
<li className="dark:text-sidebar-text-dark whitespace-nowrap px-4 py-2 text-sm font-medium text-gray-900"> | ||
<span className="block truncate font-normal"> | ||
{fileDep.fileName} | ||
</span> | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
) : null} | ||
</div> | ||
); | ||
} | ||
|
||
export default EdgeNodeTooltip; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
function Flag(props) { | ||
return ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 20 20" | ||
fill="currentColor" | ||
{...props} | ||
> | ||
<path | ||
fillRule="evenodd" | ||
d="M3 6a3 3 0 013-3h10a1 1 0 01.8 1.6L14.25 8l2.55 3.4A1 1 0 0116 13H6a1 1 0 00-1 1v3a1 1 0 11-2 0V6z" | ||
clipRule="evenodd" | ||
/> | ||
</svg> | ||
); | ||
} | ||
|
||
export default Flag; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
function MapMarker(props) { | ||
return ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
viewBox="0 0 20 20" | ||
fill="currentColor" | ||
{...props} | ||
> | ||
<path d="M10 6a2 2 0 110-4 2 2 0 010 4zM10 12a2 2 0 110-4 2 2 0 010 4zM10 18a2 2 0 110-4 2 2 0 010 4z" /> | ||
</svg> | ||
); | ||
} | ||
|
||
export default MapMarker; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
function XCircleOutline(props) { | ||
return ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
fill="none" | ||
viewBox="0 0 24 24" | ||
stroke="currentColor" | ||
{...props} | ||
> | ||
<path | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth="2" | ||
d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" | ||
/> | ||
</svg> | ||
); | ||
} | ||
|
||
export default XCircleOutline; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.