Skip to content

Commit 7ccf06a

Browse files
Suppress participant section by default, add feature flag to enable (#181)
1 parent 254ea8e commit 7ccf06a

File tree

7 files changed

+16
-358
lines changed

7 files changed

+16
-358
lines changed

app/data/session-data-defaults.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ const defaultSettings = {
6161
darkMode: 'false',
6262
screening: {
6363
confirmIdentityOnCheckIn: 'true',
64-
manualImageCollection: 'false'
64+
manualImageCollection: 'false',
65+
showParticipantSection: 'false'
6566
},
6667
reading: {
6768
blindReading: config.reading.blindReading,

app/views/_includes/appointment/appointment-header.njk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@
7878
{{ event.timing.startTime | formatTimeString }} ({{ event.timing.duration }} minutes) - {{ clinic.date | formatDate }} ({{ clinic.date | formatRelativeDate }})
7979
</p>
8080

81-
<p class="nhsuk-u-margin-bottom-4"><a href="{{ '/participants/' + participant.id | urlWithReferrer(currentUrl) }}">View participant record</a></p>
81+
{# Suppressed until we decide whether to ship the participant record #}
82+
{% if data.settings.screening.showParticipantSection | falsify %}
83+
<p class="nhsuk-u-margin-bottom-4"><a href="{{ '/participants/' + participant.id | urlWithReferrer(currentUrl) }}">View participant record</a></p>
84+
{% endif %}
8285

8386
{% if event | hasNotStarted and currentUser | isClinician %}
8487
<form action="./start" method="POST">

app/views/_includes/event-header.njk

Lines changed: 0 additions & 86 deletions
This file was deleted.

app/views/_templates/layout-base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
href: "/participants",
5252
text: "Participants",
5353
current: true if navActive == "participants"
54-
},
54+
} if data.settings.screening.showParticipantSection != 'false' else {},
5555
{
5656
href: "#",
5757
text: "Messages",
@@ -61,7 +61,7 @@
6161
text: "Help and support",
6262
current: true if navActive == "help"
6363
}
64-
] %}
64+
] | removeEmpty %}
6565

6666
{% if appointmentWorkflow %}
6767
{% set navItems = [

app/views/events/show.html

Lines changed: 0 additions & 266 deletions
This file was deleted.

0 commit comments

Comments
 (0)