Skip to content

Commit

Permalink
CIV-15392 - Reply to message (#5070)
Browse files Browse the repository at this point in the history
* Added new SEND_AND_REPLY event and auths and implemented the send message flow

* Add new messagages tab and message fields

* Update SendMessageRecipientOptions.json

* Add new messagages tab and message fields

* Renamed message subject to headerSubject

* Added ROLE_ASSIGNMENT_URL env for civil service pod in preview

* Fixed subject not being passed correctly to messages tab

* Update AuthorisationCaseField-caseworkerEvents-nonprod.json

Removed redundant system update role from message casefield auths

* Update SendAndReply-caseWorkerEvents-nonprod.json

* Added precondition states to SEND_AND_REPLY event to ensure the event will not be displayed when case is offline

* Added the reply journey for the SEND_AND_REPLY event

* Removed unecessary caseventtocomplextype field

* Fixed role pool names

* CIV-15392 - small changes

* CIV-15392 - update CIVIL to CIVIL-casenumber

* CIV-15392 -  fix authorisation for MANAGE_STAY_WA

* CIV-15392 - update tab CaseTypeId

* CIV-15392 - update RolePool values

* CIV-15392 - Rolepool label addition for judges

* CIV-15392 - try showing history

* CIV-15392 - give Message history a label

* CIV-15392 - Update Message reply

* CIV-15392 - subject not dependent on choosing other

* CIV-15392 - don't hide subjectType

* CIV-15392 - fix subject names in metadata object

* CIV-15392 - fix fieldshowcondition for subject

* CIV-15392 - replace duplicate subject with What is it about

* CIV-15392 - move 'What is this message about' down

* Update 1_MessageReply-caseworkerEvents-nonprod.json

* Update values.preview.template.yaml

* CIV-15392 - move from preview to generic template

* CIV-15392 - readd authorisation for send and reply option

* Update RolePool.json

* Update RolePool.json

* CIV-15392 - change fixed radio list to fixed list in message object

* CIV-15392 - change labels on Messages

---------

Co-authored-by: GarethLancaster <[email protected]>
Co-authored-by: meulendijksm <[email protected]>
Co-authored-by: m-meulendijks-v1 <[email protected]>
Co-authored-by: ss-evoco <[email protected]>
  • Loading branch information
5 people authored Dec 6, 2024
1 parent 99b6f38 commit 01e0ff5
Show file tree
Hide file tree
Showing 15 changed files with 731 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,18 @@
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "SEND_AND_REPLY",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-admin",
"judge-profile"
],
"CRUD": "CRU"
}
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,125 @@
"caseworker-civil-admin",
"cui-admin-profile"
],
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "sendAndReplyOption",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-admin",
"judge-profile"
],
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "messagesToReplyTo",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-admin",
"judge-profile"
],
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "sendMessageMetadata",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-admin",
"judge-profile"
],
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "sendMessageContent",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-admin",
"judge-profile"
],
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "sendMessageContextTitle",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-admin",
"judge-profile"
],
"CRUD": "R"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "sendMessageContentTitle",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-admin",
"judge-profile"
],
"CRUD": "R"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "messages",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-admin",
"judge-profile"
],
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "messageReplyMetadata",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-admin",
"judge-profile"
],
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseFieldID": "messageHistory",
"AccessControl": [
{
"UserRoles": [
"caseworker-civil-admin",
"judge-profile"
],
"CRUD": "CRU"
}
]
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,24 @@
"RetriesTimeoutURLAboutToSubmitEvent": 0,
"EventEnablingCondition": "preStayState != \"IN_MEDIATION\""
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "SEND_AND_REPLY",
"Name": "Send and reply to messages",
"Description": "Send and reply to messages",
"DisplayOrder": 25,
"PreConditionState(s)": "PENDING_CASE_ISSUED;CASE_ISSUED;AWAITING_CASE_DETAILS_NOTIFICATION;AWAITING_RESPONDENT_ACKNOWLEDGEMENT;AWAITING_APPLICANT_INTENTION;CASE_PROGRESSION;All_FINAL_ORDERS_ISSUED;PREPARE_FOR_HEARING_CONDUCT_HEARING;JUDICIAL_REFERRAL;CASE_SETTLED;CLOSED;CASE_DISCONTINUED;HEARING_READINESS;CASE_STAYED",
"PostConditionState": "*",
"SecurityClassification": "Public",
"CallBackURLAboutToStartEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/about-to-start",
"CallBackURLAboutToSubmitEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/about-to-submit",
"CallBackURLSubmittedEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/submitted",
"ShowSummary": "Y",
"ShowEventNotes": "N",
"RetriesTimeoutAboutToStartEvent": 0,
"RetriesTimeoutURLAboutToSubmitEvent": 0,
"Publish": "Y"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"ID": "CONFIRM_ORDER_REVIEW",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
[
{
"ID": "SendMessageMetadata",
"CaseEventID": "SEND_AND_REPLY",
"CaseFieldID": "sendMessageMetadata",
"ListElementCode": "recipientRoleType",
"EventElementLabel": "Who are you sending the message to?",
"FieldDisplayOrder": 1,
"DisplayContext": "MANDATORY"
},
{
"ID": "SendMessageMetadata",
"CaseEventID": "SEND_AND_REPLY",
"CaseFieldID": "sendMessageMetadata",
"ListElementCode": "isUrgent",
"EventElementLabel": "Is this urgent?",
"FieldDisplayOrder": 2,
"DisplayContext": "MANDATORY"
},
{
"ID": "SendMessageMetadata",
"CaseEventID": "SEND_AND_REPLY",
"CaseFieldID": "sendMessageMetadata",
"ListElementCode": "subjectType",
"EventElementLabel": "What is this message about?",
"FieldDisplayOrder": 3,
"DisplayContext": "MANDATORY"
},
{
"ID": "SendMessageMetadata",
"CaseEventID": "SEND_AND_REPLY",
"CaseFieldID": "sendMessageMetadata",
"ListElementCode": "subject",
"EventElementLabel": "Enter the subject",
"FieldShowCondition": "sendMessageMetadata.subjectType = \"*\"",
"FieldDisplayOrder": 4,
"DisplayContext": "MANDATORY"
},
{
"ID": "SendMessageMetadata",
"CaseEventID": "SEND_AND_REPLY",
"CaseFieldID": "messageReplyMetadata",
"ListElementCode": "isUrgent",
"EventElementLabel": "Is this urgent?",
"FieldDisplayOrder": 2,
"DisplayContext": "MANDATORY"
},
{
"ID": "SendMessageMetadata",
"CaseEventID": "SEND_AND_REPLY",
"CaseFieldID": "messageReplyMetadata",
"ListElementCode": "messageContent",
"EventElementLabel": "Enter your message",
"EventHintText": "Explain what you're requesting and why. Include any answers and decision you need.",
"FieldDisplayOrder": 3,
"DisplayContext": "MANDATORY"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
[
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "SEND_AND_REPLY",
"CaseFieldID": "sendAndReplyOption",
"CaseEventFieldLabel": "Do you want to send or reply to a message?",
"PageLabel": " ",
"PageFieldDisplayOrder": 1,
"DisplayContext": "MANDATORY",
"PageID": "sendAndReplyOption",
"PageDisplayOrder": 1,
"PageColumnNumber": 1,
"ShowSummaryChangeOption": "Y"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "SEND_AND_REPLY",
"CaseFieldID": "messagesToReplyTo",
"CaseEventFieldLabel": "Select a message to reply to",
"PageLabel": " ",
"PageFieldDisplayOrder": 2,
"DisplayContext": "MANDATORY",
"PageID": "sendAndReplyOption",
"FieldShowCondition": "sendAndReplyOption=\"REPLY\"",
"PageDisplayOrder": 2,
"PageColumnNumber": 1,
"ShowSummaryChangeOption": "Y",
"CallBackURLMidEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/mid/populate-message-history"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "SEND_AND_REPLY",
"CaseFieldID": "sendMessageContextTitle",
"PageFieldDisplayOrder": 1,
"DisplayContext": "READONLY",
"PageID": "sendMessageMetadata",
"PageDisplayOrder": 2,
"PageColumnNumber": 1,
"PageShowCondition": "sendAndReplyOption=\"SEND\"",
"ShowSummaryChangeOption": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "SEND_AND_REPLY",
"CaseFieldID": "sendMessageMetadata",
"PageLabel": "Send message",
"PageFieldDisplayOrder": 2,
"DisplayContext": "COMPLEX",
"PageID": "sendMessageMetadata",
"PageDisplayOrder": 2,
"PageColumnNumber": 1,
"ShowSummaryChangeOption": "Y"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "SEND_AND_REPLY",
"CaseFieldID": "sendMessageContentTitle",
"PageFieldDisplayOrder": 1,
"DisplayContext": "READONLY",
"PageID": "sendMessageContent",
"PageDisplayOrder": 3,
"PageColumnNumber": 1,
"PageShowCondition": "sendAndReplyOption=\"SEND\"",
"ShowSummaryChangeOption": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "SEND_AND_REPLY",
"CaseFieldID": "sendMessageContent",
"CaseEventFieldLabel": "Enter your message",
"PageFieldDisplayOrder": 3,
"DisplayContext": "MANDATORY",
"PageID": "sendMessageContent",
"PageDisplayOrder": 3,
"PageColumnNumber": 1,
"ShowSummaryChangeOption": "Y"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "SEND_AND_REPLY",
"CaseFieldID": "replyToMessageTitle",
"PageFieldDisplayOrder": 1,
"DisplayContext": "READONLY",
"PageID": "replyToMessage",
"PageDisplayOrder": 2,
"PageColumnNumber": 1,
"PageShowCondition": "sendAndReplyOption=\"REPLY\"",
"ShowSummaryChangeOption": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "SEND_AND_REPLY",
"CaseFieldID": "messageHistory",
"PageFieldDisplayOrder": 2,
"DisplayContext": "READONLY",
"PageID": "replyToMessage",
"PageDisplayOrder": 2,
"PageColumnNumber": 1,
"FieldShowCondition": "sendAndReplyOption=\"DO NOT SHOW\"",
"ShowSummaryChangeOption": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "SEND_AND_REPLY",
"CaseFieldID": "messageHistoryLabel",
"PageFieldDisplayOrder": 3,
"DisplayContext": "READONLY",
"PageID": "replyToMessage",
"PageDisplayOrder": 2,
"PageColumnNumber": 1,
"ShowSummaryChangeOption": "N"
},
{
"CaseTypeID": "CIVIL${CCD_DEF_VERSION}",
"CaseEventID": "SEND_AND_REPLY",
"CaseFieldID": "messageReplyMetadata",
"PageFieldDisplayOrder": 4,
"DisplayContext": "COMPLEX",
"PageID": "replyToMessage",
"PageDisplayOrder": 2,
"PageColumnNumber": 1,
"ShowSummaryChangeOption": "Y"
}
]
Loading

0 comments on commit 01e0ff5

Please sign in to comment.