-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CIV-15392 - Reply to message (#5070)
* 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
1 parent
99b6f38
commit 01e0ff5
Showing
15 changed files
with
731 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
ccd-definition/CaseEventToComplexTypes/SendAndReply-caseWorkerEvents-nonprod.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] |
124 changes: 124 additions & 0 deletions
124
ccd-definition/CaseEventToFields/SendAndReply-caseWorkerEvents-nonprod.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] |
Oops, something went wrong.