Skip to content

Commit

Permalink
PRO-371 REFACTOR Rename audit-trail to runs
Browse files Browse the repository at this point in the history
  • Loading branch information
orbitz committed Nov 19, 2024
1 parent 7321e7f commit 73268bb
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions code/src/terrat_ui_js/terrat_ui_js_comp_main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ module Rt = struct
let main consumed_path = Brtl_js2_rtng.(root consumed_path)
let repo_new consumed_path = Brtl_js2_rtng.(root consumed_path / "repos" / "new" /% Path.string)
let repos_refresh consumed_path = Brtl_js2_rtng.(root consumed_path / "repos" / "refresh")
let audit_trail consumed_path = Brtl_js2_rtng.(root consumed_path / "audit-trail")

let audit_trail_detail consumed_path =
Brtl_js2_rtng.(root consumed_path / "audit-trail" /% Path.string)
let runs consumed_path = Brtl_js2_rtng.(root consumed_path / "runs")
let runs_detail consumed_path = Brtl_js2_rtng.(root consumed_path / "runs" /% Path.string)
end

let installation_sel state =
Expand Down Expand Up @@ -37,13 +35,9 @@ let nav_bar state =
Brtl_js2_nav_bar.Choice.
[
create ~value:`Repos Brtl_js2.Brr.El.[ txt' "Repos" ] consumed_path;
create
~value:`Audit_trail
Brtl_js2.Brr.El.[ txt' "Audit trail" ]
(consumed_path ^ "/audit-trail");
create ~value:`Runs Brtl_js2.Brr.El.[ txt' "Runs" ] (consumed_path ^ "/runs");
]
Brtl_js2_rtng.
[ Rt.audit_trail consumed_path --> `Audit_trail; Rt.main consumed_path --> `Repos ]
Brtl_js2_rtng.[ Rt.runs consumed_path --> `Runs; Rt.main consumed_path --> `Repos ]
state);
nav_bar_div

Expand Down Expand Up @@ -142,9 +136,8 @@ let run' state =
(div ~at:At.[ class' (Jstr.v "main-content") ] [])
Brtl_js2_rtng.
[
Rt.audit_trail_detail consumed_path
--> Terrat_ui_js_comp_audit_trail_detail.run;
Rt.audit_trail consumed_path --> Terrat_ui_js_comp_audit_trail2.run;
Rt.runs_detail consumed_path --> Terrat_ui_js_comp_runs_detail.run;
Rt.runs consumed_path --> Terrat_ui_js_comp_runs.run;
Rt.repo_new consumed_path --> Terrat_ui_js_comp_repo_new.run;
Rt.repos_refresh consumed_path --> Terrat_ui_js_comp_repos_refresh.run;
Rt.main consumed_path --> Terrat_ui_js_comp_repos.run;
Expand Down

0 comments on commit 73268bb

Please sign in to comment.