From 9322763e70cf3a87b2834cb7bc52557dc923c7ec Mon Sep 17 00:00:00 2001 From: Mat Johnson Date: Fri, 19 Jun 2026 16:14:28 +0100 Subject: [PATCH 1/4] Lots of sketching and I hope that vscode folder is properly ignored --- .vscode/settings.json | 3 + app/assets/sass/components/_day-listing.scss | 66 +++---- .../components/_inline-detailed-search.scss | 31 ++++ .../sass/components/_participant-table.scss | 17 ++ app/assets/sass/main.scss | 2 + .../_includes/participant-search.html | 64 +++++++ .../group.html | 66 ++++++- .../pre-appoint-confirm.html | 4 - .../search-and-results.html | 92 +++++++++- .../search.html | 15 +- .../participant-search-alternatives.html | 169 ++++++++++++++++++ 11 files changed, 468 insertions(+), 61 deletions(-) create mode 100644 .vscode/settings.json create mode 100644 app/assets/sass/components/_inline-detailed-search.scss create mode 100644 app/assets/sass/components/_participant-table.scss create mode 100644 app/views/z-september-transactional-journey/_includes/participant-search.html create mode 100644 app/views/z-sketching/participant-search-alternatives.html diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..f6027fe --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "css.styleSheets": ["public/assets/sass/main.css"] +} \ No newline at end of file diff --git a/app/assets/sass/components/_day-listing.scss b/app/assets/sass/components/_day-listing.scss index d5f1121..66d8a22 100644 --- a/app/assets/sass/components/_day-listing.scss +++ b/app/assets/sass/components/_day-listing.scss @@ -1,34 +1,34 @@ - .app-slot-listing { - border: 1px solid #aeb7bd; - background-color: #fff; - padding: 10px; - margin-bottom: 10px; - &.--hold { - background-color: #f0f4f5; - border-style: dashed; - } - &.--merged-start { - border-bottom: 1px dashed #aeb7bd; - margin-bottom: 0 !important; - } - &.--merged-mid { - border-top: 0; - border-bottom: 1px dashed #aeb7bd; - margin-bottom: 0 !important; - min-height: 16px; - } - &.--merged-end { - border-top: 0; - min-height: 16px; - } - } +.app-slot-listing { + border: 1px solid #aeb7bd; + background-color: #fff; + padding: 10px; + margin-bottom: 10px; + &.--hold { + background-color: #f0f4f5; + border-style: dashed; + } + &.--merged-start { + border-bottom: 1px dashed #aeb7bd; + margin-bottom: 0 !important; + } + &.--merged-mid { + border-top: 0; + border-bottom: 1px dashed #aeb7bd; + margin-bottom: 0 !important; + min-height: 16px; + } + &.--merged-end { + border-top: 0; + min-height: 16px; + } +} - .app-slot-row { - display: flex; - flex-wrap: nowrap; - gap: 3rem; - align-items: top; - } - .app-slot-row-controls { - margin-left: auto; - } \ No newline at end of file +.app-slot-row { + display: flex; + flex-wrap: nowrap; + gap: 3rem; + align-items: top; +} +.app-slot-row-controls { + margin-left: auto; +} \ No newline at end of file diff --git a/app/assets/sass/components/_inline-detailed-search.scss b/app/assets/sass/components/_inline-detailed-search.scss new file mode 100644 index 0000000..e7d8b16 --- /dev/null +++ b/app/assets/sass/components/_inline-detailed-search.scss @@ -0,0 +1,31 @@ +.app-inline-detailed-search { + display: flex; + gap: 1rem; + + & > .nhsuk-form-group { + margin-bottom: 0; + + &:nth-child(4) { + width: 210px; + flex-shrink: 0; + } + &:last-child { + align-self: flex-end; + } + } + + & .nhsuk-button { + margin-bottom: 4px; + } + + .nhsuk-date-input__item { + margin-right: 8px; + &:last-child { + margin-right: 0; + } + } + + ::placeholder { + color: #aeb7bd; + } +} \ No newline at end of file diff --git a/app/assets/sass/components/_participant-table.scss b/app/assets/sass/components/_participant-table.scss new file mode 100644 index 0000000..1cb1606 --- /dev/null +++ b/app/assets/sass/components/_participant-table.scss @@ -0,0 +1,17 @@ +.app-participant-table { + + tbody tr:nth-child(odd) { + background-color: rgba(255,255,255,0.5); + } + + td:first-child { + padding-left: 12px; + } + + &.nhsuk-checkboxes--small { + .nhsuk-checkboxes__item { + margin-top: -8px; + } + } + +} \ No newline at end of file diff --git a/app/assets/sass/main.scss b/app/assets/sass/main.scss index 8d1a3a8..3298dce 100755 --- a/app/assets/sass/main.scss +++ b/app/assets/sass/main.scss @@ -7,7 +7,9 @@ @forward "components/calendar-table"; @forward "components/day-listing"; +@forward "components/inline-detailed-search"; @forward "components/secondary-navigation"; +@forward "components/participant-table"; //@forward "components/participant-search"; // Add your custom CSS/Sass styles below. diff --git a/app/views/z-september-transactional-journey/_includes/participant-search.html b/app/views/z-september-transactional-journey/_includes/participant-search.html new file mode 100644 index 0000000..8c92a32 --- /dev/null +++ b/app/views/z-september-transactional-journey/_includes/participant-search.html @@ -0,0 +1,64 @@ +
+
+

+ Search for participants +

+ Use one or more fields +
+
+ +
\ No newline at end of file diff --git a/app/views/z-september-transactional-journey/group.html b/app/views/z-september-transactional-journey/group.html index aa4f92f..da0bae8 100644 --- a/app/views/z-september-transactional-journey/group.html +++ b/app/views/z-september-transactional-journey/group.html @@ -13,12 +13,66 @@
-

- Group -

-

- Next: pre-appoint -

+ +
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ NHS Number + + Name + + Date of birth + + Actions +
628 334 7720Christine Thompson17 September 1967Remove
628 334 7720Christine Thompson17 September 1967Remove
628 334 7720Christine Thompson17 September 1967Remove
628 334 7720Christine Thompson17 September 1967Remove
+ + + Appoint this group +
diff --git a/app/views/z-september-transactional-journey/pre-appoint-confirm.html b/app/views/z-september-transactional-journey/pre-appoint-confirm.html index eb6492b..5c3a142 100644 --- a/app/views/z-september-transactional-journey/pre-appoint-confirm.html +++ b/app/views/z-september-transactional-journey/pre-appoint-confirm.html @@ -8,10 +8,6 @@ {% endblock %} {% block beforeContent %} - {{ backLink({ - href: "#", - text: "Back" - }) }} {% endblock %} {% block content %} diff --git a/app/views/z-september-transactional-journey/search-and-results.html b/app/views/z-september-transactional-journey/search-and-results.html index 4bb175b..193cda9 100644 --- a/app/views/z-september-transactional-journey/search-and-results.html +++ b/app/views/z-september-transactional-journey/search-and-results.html @@ -11,14 +11,94 @@ {% block content %} + {% include "z-september-transactional-journey/_includes/participant-search.html"%} +
-

- Search and results -

-

- Next: Group -

+

[X] participants found

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + NHS Number + + Name + + Date of birth +
+
+ + +
+
628 334 7720Christine Thompson17 September 1967
+
+ + +
+
628 334 7720Christine Thompson17 September 1967
+
+ + +
+
628 334 7720Christine Thompson17 September 1967
+
+ + +
+
628 334 7720Christine Thompson17 September 1967
+ + + Add selected to group + +
diff --git a/app/views/z-september-transactional-journey/search.html b/app/views/z-september-transactional-journey/search.html index 52d3dc8..4a502c9 100644 --- a/app/views/z-september-transactional-journey/search.html +++ b/app/views/z-september-transactional-journey/search.html @@ -10,18 +10,9 @@ {% block beforeContent %}{% endblock %} {% block content %} - -
-
-

- Search page -

-

- Next: search and results -

-
-
- +
+ {% include "z-september-transactional-journey/_includes/participant-search.html"%} +
{% endblock %} {% block footer %} diff --git a/app/views/z-sketching/participant-search-alternatives.html b/app/views/z-sketching/participant-search-alternatives.html new file mode 100644 index 0000000..0b00d1f --- /dev/null +++ b/app/views/z-sketching/participant-search-alternatives.html @@ -0,0 +1,169 @@ +{% extends 'layout.html' %} + +{% set pageName = "" %} + +{% from "z-september-transactional-journey/_includes/min-primary-navigation.html" import primaryNavigation %} +{% block header %} + {{ primaryNavigation() }} +{% endblock %} + +{% block beforeContent %}{% endblock %} + +{% block content %} + + +
+
+

+ Search for participants +

+ Use one or more fields +
+
+ + +
+ + +
+
+

+ Search for participants +

+
+
+ +
+
+ +
+ + +
+ +
+ + + Search using personal details + + +
+ +
+ + +
+ +
+ + +
+ +
+
+ + Date of birth + +
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+ +
+
+
+ + +
+ + +{% endblock %} + +{% block footer %} + {{ footer() }} +{% endblock %} From 098bf3096ac7041667b0141f9e5f98e04e544187 Mon Sep 17 00:00:00 2001 From: Mat Johnson Date: Fri, 19 Jun 2026 17:43:30 +0100 Subject: [PATCH 2/4] More tweaks and joining up --- app/assets/sass/main.scss | 2 +- app/views/clinics/day-slot-view.html | 2 +- .../_includes/participant-search.html | 2 +- .../appointing-complete.html | 4 +-- .../group.html | 36 +++++++++++++++++-- .../pre-appoint-confirm.html | 35 ++++++------------ .../search-and-results.html | 18 +++++----- 7 files changed, 58 insertions(+), 41 deletions(-) diff --git a/app/assets/sass/main.scss b/app/assets/sass/main.scss index 3298dce..54712b2 100755 --- a/app/assets/sass/main.scss +++ b/app/assets/sass/main.scss @@ -16,7 +16,7 @@ .app-card-editable { display: flex; justify-content: space-between; - align-items: last baseline; + align-items: baseline; } // Batch (for now) view bar charts and legends diff --git a/app/views/clinics/day-slot-view.html b/app/views/clinics/day-slot-view.html index bdad299..c607d7a 100644 --- a/app/views/clinics/day-slot-view.html +++ b/app/views/clinics/day-slot-view.html @@ -42,7 +42,7 @@

- Day view + Tuesday 1 September 2026

{% set secondaryNavItems = [] %} diff --git a/app/views/z-september-transactional-journey/_includes/participant-search.html b/app/views/z-september-transactional-journey/_includes/participant-search.html index 8c92a32..ac89e4b 100644 --- a/app/views/z-september-transactional-journey/_includes/participant-search.html +++ b/app/views/z-september-transactional-journey/_includes/participant-search.html @@ -1,7 +1,7 @@

- Search for participants + Find participants

Use one or more fields
diff --git a/app/views/z-september-transactional-journey/appointing-complete.html b/app/views/z-september-transactional-journey/appointing-complete.html index e45f073..a21cc91 100644 --- a/app/views/z-september-transactional-journey/appointing-complete.html +++ b/app/views/z-september-transactional-journey/appointing-complete.html @@ -16,7 +16,7 @@
{% set html %}

- All participants appointed successfully + 23 participants booked successfully

{% endset %} {{ notificationBanner({ @@ -39,7 +39,7 @@

- Day view + Tuesday 1 September 2026

{{ actionLink({ diff --git a/app/views/z-september-transactional-journey/group.html b/app/views/z-september-transactional-journey/group.html index da0bae8..38c3b66 100644 --- a/app/views/z-september-transactional-journey/group.html +++ b/app/views/z-september-transactional-journey/group.html @@ -11,10 +11,41 @@ {% block content %} +
+
+ {% set html %} +

+ Participant successfully added to group +

+ {% endset %} + {{ notificationBanner({ + html: html, + type: "success" + }) }} + + {% set html %} +

+ Participant successfully removed from group +

+ {% endset %} + {{ notificationBanner({ + html: html + }) }} + +
+ Information: +

Participant successfully removed from group

+
+
+
+
-

Group name

+
+

Test clinic group

+ 23 participants +
Add more participants @@ -22,7 +53,6 @@

Group name

-
@@ -71,7 +101,7 @@

Group name

- Appoint this group + Book into slots
diff --git a/app/views/z-september-transactional-journey/pre-appoint-confirm.html b/app/views/z-september-transactional-journey/pre-appoint-confirm.html index 5c3a142..f65c2a6 100644 --- a/app/views/z-september-transactional-journey/pre-appoint-confirm.html +++ b/app/views/z-september-transactional-journey/pre-appoint-confirm.html @@ -1,6 +1,6 @@ {% extends 'layout.html' %} -{% set pageName = "Autoflow™ participants into slots" %} +{% set pageName = "Assign slots to participants" %} {% from "z-september-transactional-journey/_includes/min-primary-navigation.html" import primaryNavigation %} {% block header %} @@ -58,7 +58,7 @@ } - +

- Autoflow™ participants into slots + Book participants into slots

-

You’re about to automatically book:

@@ -97,9 +96,9 @@

- XX participants + 23 participants
-
+
from NAME group
@@ -112,10 +111,11 @@

- XX slots + 48 available slots
-
- in CLINIC NAME on 1 September 2026 +
+ in CLINIC NAME
+ Tuesday 1 September 2026
Unit name at location name @@ -132,7 +132,7 @@

- Confirm and proceed + Confirm

or @@ -140,19 +140,6 @@

- - {% endblock %} diff --git a/app/views/z-september-transactional-journey/search-and-results.html b/app/views/z-september-transactional-journey/search-and-results.html index 193cda9..ac59088 100644 --- a/app/views/z-september-transactional-journey/search-and-results.html +++ b/app/views/z-september-transactional-journey/search-and-results.html @@ -13,21 +13,14 @@ {% include "z-september-transactional-journey/_includes/participant-search.html"%} -
+ - + NHS Number @@ -100,6 +93,13 @@

[X] participants found

+
--> + +
+
+

No participants found

+

Check your spelling or search again

+
{% endblock %} From fde88cd9ca2dd1dac6b088afcd86e07b26760e9c Mon Sep 17 00:00:00 2001 From: Mat Johnson Date: Fri, 19 Jun 2026 17:46:13 +0100 Subject: [PATCH 3/4] Update the index and comment out the no results message --- app/views/index.html | 8 +++++++- .../search-and-results.html | 8 ++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/app/views/index.html b/app/views/index.html index 26b9b29..ac0a368 100755 --- a/app/views/index.html +++ b/app/views/index.html @@ -101,7 +101,13 @@

Iteration 1: transactional journey

Batch detail
  • - Search participants + Search participants +
  • +
  • + Search results +
  • +
  • + Group
  • Pre-appointment confirmation diff --git a/app/views/z-september-transactional-journey/search-and-results.html b/app/views/z-september-transactional-journey/search-and-results.html index ac59088..6717484 100644 --- a/app/views/z-september-transactional-journey/search-and-results.html +++ b/app/views/z-september-transactional-journey/search-and-results.html @@ -13,7 +13,7 @@ {% include "z-september-transactional-journey/_includes/participant-search.html"%} - +
  • -
    + {% endblock %} From 168bcc24cafe05c76a824e2b78f8425a1ec1719f Mon Sep 17 00:00:00 2001 From: Mat Johnson Date: Mon, 22 Jun 2026 09:36:12 +0100 Subject: [PATCH 4/4] use a banner --- app/views/z-september-transactional-journey/group.html | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/views/z-september-transactional-journey/group.html b/app/views/z-september-transactional-journey/group.html index 38c3b66..47252fa 100644 --- a/app/views/z-september-transactional-journey/group.html +++ b/app/views/z-september-transactional-journey/group.html @@ -31,12 +31,6 @@ {{ notificationBanner({ html: html }) }} - -
    - Information: -

    Participant successfully removed from group

    -
    -