@@ -36,18 +36,18 @@ def _project_action_tree(project: domain.Project | None, ws_context: context.Wor
3636 handler_node_id = f"{ project .dir_path .as_posix ()} ::{ action .name } ::{ handler .name } "
3737 handlers_nodes .append (
3838 {
39- "node_id " : handler_node_id ,
39+ "nodeId " : handler_node_id ,
4040 "name" : handler .name ,
41- "node_type " : 2 , # ACTION
41+ "nodeType " : 2 , # ACTION
4242 "subnodes" : [],
4343 "status" : "" ,
4444 }
4545 )
4646 action_nodes .append (
4747 {
48- "node_id " : node_id ,
48+ "nodeId " : node_id ,
4949 "name" : action .name ,
50- "node_type " : 2 , # ACTION
50+ "nodeType " : 2 , # ACTION
5151 "subnodes" : handlers_nodes ,
5252 "status" : "" ,
5353 }
@@ -61,9 +61,9 @@ def _project_action_tree(project: domain.Project | None, ws_context: context.Wor
6161 node_id = f"{ project .dir_path .as_posix ()} ::actions"
6262 actions_nodes .append (
6363 {
64- "node_id " : node_id ,
64+ "nodeId " : node_id ,
6565 "name" : "Actions" ,
66- "node_type " : 3 , # ACTION_GROUP
66+ "nodeType " : 3 , # ACTION_GROUP
6767 "subnodes" : action_nodes ,
6868 "status" : "" ,
6969 }
@@ -74,19 +74,19 @@ def _project_action_tree(project: domain.Project | None, ws_context: context.Wor
7474 env_node_id = f"{ project .dir_path .as_posix ()} ::envs::{ env } "
7575 envs_nodes .append (
7676 {
77- "node_id " : env_node_id ,
77+ "nodeId " : env_node_id ,
7878 "name" : env ,
79- "node_type " : 6 , # ENV
79+ "nodeType " : 6 , # ENV
8080 "subnodes" : [],
8181 "status" : "" ,
8282 }
8383 )
8484 node_id = f"{ project .dir_path .as_posix ()} ::envs"
8585 actions_nodes .append (
8686 {
87- "node_id " : node_id ,
87+ "nodeId " : node_id ,
8888 "name" : "Environments" ,
89- "node_type " : 5 , # ENV_GROUP
89+ "nodeType " : 5 , # ENV_GROUP
9090 "subnodes" : envs_nodes ,
9191 "status" : "" ,
9292 }
@@ -135,10 +135,10 @@ def _build_tree(ws_context: context.WorkspaceContext) -> list[dict]:
135135
136136 actions_nodes = _project_action_tree (ws_context .ws_projects .get (ws_dir ), ws_context )
137137 node = {
138- "node_id " : ws_dir .as_posix (),
138+ "nodeId " : ws_dir .as_posix (),
139139 "name" : ws_dir .name ,
140140 "subnodes" : actions_nodes ,
141- "node_type " : dir_node_type ,
141+ "nodeType " : dir_node_type ,
142142 "status" : status ,
143143 }
144144 nodes .append (node )
@@ -149,10 +149,10 @@ def _build_tree(ws_context: context.WorkspaceContext) -> list[dict]:
149149 status = project .status .name if project is not None else ""
150150 actions_nodes = _project_action_tree (project , ws_context )
151151 node = {
152- "node_id " : project_path .as_posix (),
152+ "nodeId " : project_path .as_posix (),
153153 "name" : project_path .name ,
154154 "subnodes" : actions_nodes ,
155- "node_type " : 1 , # PROJECT
155+ "nodeType " : 1 , # PROJECT
156156 "status" : status ,
157157 }
158158
0 commit comments