From 0bf5aa2116f770562bf5b003901d3b7e05250003 Mon Sep 17 00:00:00 2001 From: Mark Kingsbury Date: Wed, 17 Jul 2024 10:35:37 +0100 Subject: [PATCH 1/7] TDRD-352-356:changes to html for standard --- README.md | 2 ++ app/views/partials/progressIndicator.scala.html | 4 +--- app/views/standard/downloadMetadata.scala.html | 16 ++++++---------- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 6feaeb501..d3124c1a8 100644 --- a/README.md +++ b/README.md @@ -39,10 +39,12 @@ development environment for the other TDR services. aws ssm get-parameter --name "/intg/keycloak/client/secret" --with-decryption ``` - Copy the `Value` from the object returned + - get arn for the slack notifications SNS topic for integration (find in AWS console) - In IntelliJ, create a new sbt run configuration: - Set the Tasks parameter to `run` - Configure the environment variables: - AUTH_SECRET=\ + - NOTIFICATION_SNS_TOPIC_ARN=\ - Follow the Static Assets steps below to build the CSS and JS - Run the project from IntelliJ - Visit `http://localhost:9000` diff --git a/app/views/partials/progressIndicator.scala.html b/app/views/partials/progressIndicator.scala.html index 192f29b3c..720a87fa7 100644 --- a/app/views/partials/progressIndicator.scala.html +++ b/app/views/partials/progressIndicator.scala.html @@ -1,6 +1,4 @@ @(step: String, isJudgmentUser: Boolean=false)(implicit messages: Messages) @if(isJudgmentUser) { - @Messages("progressIndicator.step", step, Messages("judgmentProgress.totalSteps")) - } else { - @Messages("progressIndicator.step", step, Messages("progress.totalSteps")) + @Messages("progressIndicator.step", step, Messages("judgmentProgress.totalSteps")) } diff --git a/app/views/standard/downloadMetadata.scala.html b/app/views/standard/downloadMetadata.scala.html index e5b34aa9b..8627036ff 100644 --- a/app/views/standard/downloadMetadata.scala.html +++ b/app/views/standard/downloadMetadata.scala.html @@ -1,9 +1,10 @@ @import java.util.UUID @import views.html.partials.{progressIndicator, transferReference} @import views.html.partials.notificationBanner +@import views.html.partials.backLink @(consignmentId: UUID, consignmentRef: String, name: String, blockMetadataReview: Boolean)(implicit messages: Messages, request: RequestHeader) -@main("Download and review metadata", name = name) { +@main("Download and review metadata", name = name, backLink = Some(backLink(routes.AdditionalMetadataEntryMethodController.additionalMetadataEntryMethodPage(consignmentId).url, "Back")) ) { @defining(play.core.PlayVersion.current) { version =>
@@ -18,22 +19,17 @@

Download and review metadata

You can review the metadata added to your records by downloading the CSV file. If you would like to add or amend the metadata, return to the previous step.

- -
@if(blockMetadataReview) { - - Back - Next From bdc94e35a6c13d204a8f5ceb950d2a1dc4747f50 Mon Sep 17 00:00:00 2001 From: Mark Kingsbury Date: Wed, 17 Jul 2024 13:18:22 +0100 Subject: [PATCH 2/7] TDRD-352-356:changes to html for standard - update tests --- test/controllers/DownloadMetadataControllerSpec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/controllers/DownloadMetadataControllerSpec.scala b/test/controllers/DownloadMetadataControllerSpec.scala index 6f191745e..0abf601c8 100644 --- a/test/controllers/DownloadMetadataControllerSpec.scala +++ b/test/controllers/DownloadMetadataControllerSpec.scala @@ -188,7 +188,7 @@ class DownloadMetadataControllerSpec extends FrontEndTestHelper { checkPageForStaticElements.checkContentOfPagesThatUseMainScala(responseAsString, userType = "standard") responseAsString must include("""