From ca848a12a1cb6d78c8ab70e97c12f18b020dd471 Mon Sep 17 00:00:00 2001 From: Owajigbanam Ogbuluijah Date: Fri, 17 Jul 2026 13:53:10 +0100 Subject: [PATCH 1/2] reveal edit button --- app/components/dashboard/dr_rai_report.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/dashboard/dr_rai_report.html.erb b/app/components/dashboard/dr_rai_report.html.erb index c1d08d0776..f586893c05 100644 --- a/app/components/dashboard/dr_rai_report.html.erb +++ b/app/components/dashboard/dr_rai_report.html.erb @@ -20,8 +20,8 @@ From 67525a9ab7e1ba2051e195b7443a7abbe657030e Mon Sep 17 00:00:00 2001 From: Owajigbanam Ogbuluijah Date: Tue, 28 Jul 2026 10:58:23 +0100 Subject: [PATCH 2/2] impl: edit actions within edit window --- app/assets/stylesheets/dr_rai.scss | 4 +- .../dashboard/dr_rai_report.html.erb | 214 ++++++++++++++++-- app/components/dashboard/dr_rai_report.rb | 4 + .../dr_rai/action_plans_controller.rb | 37 ++- config/routes.rb | 2 +- .../dashboard/dr_rai_report_spec.rb | 151 ++++++++++++ .../dr_rai/action_plans_controller_spec.rb | 133 +++++++++++ .../dr_rai/action_plans_routing_spec.rb | 4 + 8 files changed, 522 insertions(+), 27 deletions(-) diff --git a/app/assets/stylesheets/dr_rai.scss b/app/assets/stylesheets/dr_rai.scss index ae4e258226..d77c6ca980 100644 --- a/app/assets/stylesheets/dr_rai.scss +++ b/app/assets/stylesheets/dr_rai.scss @@ -145,7 +145,7 @@ $font-condensed: "Roboto Condensed", sans-serif; right: 3px; font-size: 20px; - button { + > button { display: flex; align-items: center; justify-items: center; @@ -592,6 +592,8 @@ $font-condensed: "Roboto Condensed", sans-serif; } .bs-canvas-overlay { + top: 0; + left: 0; opacity: 0; z-index: -1; } diff --git a/app/components/dashboard/dr_rai_report.html.erb b/app/components/dashboard/dr_rai_report.html.erb index f586893c05..70f66c4f6a 100644 --- a/app/components/dashboard/dr_rai_report.html.erb +++ b/app/components/dashboard/dr_rai_report.html.erb @@ -20,8 +20,24 @@ @@ -101,7 +117,8 @@ <% end %> <% unless is_lite_version? %> -
+
+

Create action

<% end %>
+<% if action_plans_editable? %> + +<% end %>