Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Terrabuild/Core/Mermaid.fs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let render (getStatus: GetStatus option) (getOrigin: GetOrigin option) (graph: G
|> Option.map (fun getNodeStatus -> getNodeStatus node)
|> Option.defaultValue ""

$"{node.Id}(\"{node.Project}\n{node.Target} {status}\")"
$"{node.Id}(\"<b>{node.Target}</b> {status}\n{node.Project}\")"

for (KeyValue(_, node)) in graph.Nodes do
for dependency in node.Dependencies do
Expand Down
28 changes: 14 additions & 14 deletions tests/cluster-layers/results/terrabuild-debug.build-graph.mermaid
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ flowchart TD
classDef build stroke:red,stroke-width:3px
classDef restore stroke:orange,stroke-width:3px
classDef ignore stroke:black,stroke-width:3px
a:build("A
build ")
b:build("B
build ")
c:build("C
build ")
d:build("D
build ")
e:build("E
build ")
f:build("F
build ")
g:build("G
build ")
a:build("<b>build</b>
A")
b:build("<b>build</b>
B")
c:build("<b>build</b>
C")
d:build("<b>build</b>
D")
e:build("<b>build</b>
E")
f:build("<b>build</b>
F")
g:build("<b>build</b>
G")
class a:build ignore
class b:build ignore
c:build --> a:build
Expand Down
12 changes: 6 additions & 6 deletions tests/multirefs/results/terrabuild-debug.build-graph.mermaid
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ flowchart TD
classDef build stroke:red,stroke-width:3px
classDef restore stroke:orange,stroke-width:3px
classDef ignore stroke:black,stroke-width:3px
a:build("A
build ")
b:build("B
build ")
c:build("C
build ")
a:build("<b>build</b>
A")
b:build("<b>build</b>
B")
c:build("<b>build</b>
C")
a:build --> b:build
a:build --> c:build
class a:build ignore
Expand Down
40 changes: 20 additions & 20 deletions tests/simple/results/terrabuild-debug.build-graph.mermaid
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@ flowchart TD
classDef build stroke:red,stroke-width:3px
classDef restore stroke:orange,stroke-width:3px
classDef ignore stroke:black,stroke-width:3px
deployments/terraform-deploy:build("deployments/terraform-deploy
build ")
libraries/dotnet-lib:build("libraries/dotnet-lib
build ")
libraries/npm-lib:build("libraries/npm-lib
build ")
libraries/shell-lib:build("libraries/shell-lib
build ")
projects/dotnet-app:build("projects/dotnet-app
build ")
projects/make-app:build("projects/make-app
build ")
projects/npm-app/private-npm-lib:build("projects/npm-app/private-npm-lib
build ")
projects/npm-app:build("projects/npm-app
build ")
projects/open-api:build("projects/open-api
build ")
projects/rust-app:build("projects/rust-app
build ")
deployments/terraform-deploy:build("<b>build</b>
deployments/terraform-deploy")
libraries/dotnet-lib:build("<b>build</b>
libraries/dotnet-lib")
libraries/npm-lib:build("<b>build</b>
libraries/npm-lib")
libraries/shell-lib:build("<b>build</b>
libraries/shell-lib")
projects/dotnet-app:build("<b>build</b>
projects/dotnet-app")
projects/make-app:build("<b>build</b>
projects/make-app")
projects/npm-app/private-npm-lib:build("<b>build</b>
projects/npm-app/private-npm-lib")
projects/npm-app:build("<b>build</b>
projects/npm-app")
projects/open-api:build("<b>build</b>
projects/open-api")
projects/rust-app:build("<b>build</b>
projects/rust-app")
deployments/terraform-deploy:build --> projects/dotnet-app:build
deployments/terraform-deploy:build --> projects/npm-app:build
class deployments/terraform-deploy:build ignore
Expand Down