Skip to content

Commit

Permalink
CIV-14146 CCD PR - Claimant LR screen: Permission granted by the court (
Browse files Browse the repository at this point in the history
#4561)

* CIV-14112 Added ccd event for discontinue claim

* CIV-14112 Changed ccd event id

* CIV-14112 Fix event name

* CIV-14112 Fix event name

* CIV-14112 Fix precondition states

* Update UserEvents-SettleDiscontinue-nonprod.json

* CIV-14128: Initial Commit

* CIV-14128:Added midEvent for new Claim Consent page

* CIV-14128:Added page title for Claimant Consent screen

* CIV-14128:Removed the file as its not needed

* CIV-14145 CCD changes for add the court permission view

* CIV-14145 CCD changes for add the court permission view

* CIV-14128: Added API test for Discontinue Claim

* CIV-14145 CCD changes for add the court permission view

* CIV-14145 CCD changes for add the court permission view

* CIV-14128: Uncommented the lines that are mistakenly committed

* CIV-14128: Fixed build errors

* CIV-14145 CCD changes for add the court permission view

* CIV-14128: Removed the caseworker roles as per review comments

* CIV-14145 CCD merge error fixed

* CIV-14145 Update current API test with new page data

* CIV-14145 Update current API test with new page data

* CIV-14128: Removed the caseworker roles as per review comments

* CIV-14128: Reverted the change as partiesName is already used in Settle Claim

* CIV-14128: Updated the ClaimantConsent pageId to be consistent with other page ids

* CIV-14148 Add new screen

* CIV-14145 Fix tests tags

* CIV-14145 Fix cosmetic change for parties name

* CIV-14148 Add new screen elements

* CIV-14148 Update new screen show condition

* CIV-14148 Update fields

* CIV-14148 delete repeated list

* CIV-14148 Add API tests

* CIV-14148 Refactor Yes or No list

* CIV-14146: Added ccd fields - Initial Commit

* CIV-14146: Added fields for Permission Granted page

* CIV-14146: Updated code to fix midEvent issue

* CIV-14146: Updated field definition with HintText

* CIV-14146: Updated as per review comments

* CIV-14146: Removed duplicate fields

* CIV-14146: Added a missing condition

---------

Co-authored-by: GermanAmoros <[email protected]>
Co-authored-by: Azam <[email protected]>
Co-authored-by: German-A-Amoros <[email protected]>
Co-authored-by: Omaira-Melo-Hmcts <[email protected]>
Co-authored-by: hmcts-version1-ignacio <[email protected]>
  • Loading branch information
6 people authored Jul 4, 2024
1 parent 58c4b7b commit 30d07ab
Show file tree
Hide file tree
Showing 4 changed files with 160 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,58 @@
}
]
},
{
"CaseTypeID": "CIVIL",
"CaseFieldID": "partiesNames4",
"AccessControl": [
{
"UserRoles": [
"APP-SOL-UNSPEC-PROFILE",
"APP-SOL-SPEC-PROFILE"
],
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL",
"CaseFieldID": "isPermissionGranted",
"AccessControl": [
{
"UserRoles": [
"APP-SOL-UNSPEC-PROFILE",
"APP-SOL-SPEC-PROFILE"
],
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL",
"CaseFieldID": "permissionGrantedComplex",
"AccessControl": [
{
"UserRoles": [
"APP-SOL-UNSPEC-PROFILE",
"APP-SOL-SPEC-PROFILE"
],
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL",
"CaseFieldID": "permissionNotGrantedText",
"AccessControl": [
{
"UserRoles": [
"APP-SOL-UNSPEC-PROFILE",
"APP-SOL-SPEC-PROFILE"
],
"CRUD": "CRU"
}
]
},
{
"CaseTypeID": "CIVIL",
"CaseFieldID": "hearingDate",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,58 @@
"RetriesTimeoutURLMidEvent": 0,
"FieldShowCondition": "courtPermissionNeeded=\"NO\""
},
{
"CaseTypeID": "CIVIL",
"CaseEventID": "DISCONTINUE_CLAIM_CLAIMANT",
"CaseFieldID": "partiesNames4",
"PageID": "PermissionGranted",
"PageLabel": "Permission granted by the court",
"PageDisplayOrder": 4,
"PageFieldDisplayOrder": 1,
"PageColumnNumber": 1,
"DisplayContext": "READONLY",
"ShowSummaryChangeOption": "N",
"PageShowCondition": "courtPermissionNeeded = \"YES\""
},
{
"CaseTypeID": "CIVIL",
"CaseEventID": "DISCONTINUE_CLAIM_CLAIMANT",
"CaseFieldID": "isPermissionGranted",
"PageID": "PermissionGranted",
"PageLabel": "Permission granted by the court",
"PageDisplayOrder": 4,
"PageFieldDisplayOrder": 2,
"PageColumnNumber": 1,
"DisplayContext": "MANDATORY",
"ShowSummaryChangeOption": "Y",
"CallBackURLMidEvent": "${CCD_DEF_CASE_SERVICE_BASE_URL}/cases/callbacks/mid/checkPermissionGranted"
},
{
"CaseTypeID": "CIVIL",
"CaseEventID": "DISCONTINUE_CLAIM_CLAIMANT",
"CaseFieldID": "permissionGrantedComplex",
"PageID": "PermissionGranted",
"PageLabel": "Permission granted by the court",
"PageDisplayOrder": 4,
"PageFieldDisplayOrder": 3,
"PageColumnNumber": 1,
"DisplayContext": "MANDATORY",
"ShowSummaryChangeOption": "Y",
"FieldShowCondition": "isPermissionGranted=\"YES\""
},
{
"CaseTypeID":"CIVIL",
"CaseEventID":"DISCONTINUE_CLAIM_CLAIMANT",
"CaseFieldID":"permissionNotGrantedText",
"PageID":"PermissionGranted",
"PageLabel":"Permission granted by the court",
"PageDisplayOrder":4,
"PageFieldDisplayOrder":4,
"PageColumnNumber":1,
"DisplayContext":"READONLY",
"ShowSummaryChangeOption":"N",
"FieldShowCondition":"isPermissionGranted=\"NO\""
},
{
"CaseTypeID": "CIVIL",
"CaseEventID": "DISCONTINUE_CLAIM_CLAIMANT",
Expand Down
39 changes: 35 additions & 4 deletions ccd-definition/CaseField/CaseField-SettleDiscontinue-nonprod.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,7 @@
"Label": "The court's permission to discontinue a claim is not required if:<br /> &bull; The court has not granted an interim injuction<br /> &bull; No party has given an undertaking to the court<br /> &bull; The claimant has not received an interim payment<br /> &bull; The claimant has received an interim payment and the defendant has consented in writing to the <br />&nbsp; discontinuance",
"FieldType": "Label",
"SecurityClassification":"Public",
"Searchable": "N",
"FieldShowCondition": "courtPermissionNeeded=\"NO\""
"Searchable": "N"
},
{
"CaseTypeID": "CIVIL",
Expand All @@ -114,8 +113,7 @@
"FieldTypeParameter": "ConfirmCourtPermissionNotNeeded",
"Label": " ",
"SecurityClassification": "Public",
"Searchable": "N",
"FieldShowCondition": "courtPermissionNeeded = \"NO\""
"Searchable": "N"
},
{
"CaseTypeID": "CIVIL",
Expand All @@ -141,5 +139,38 @@
"FieldType": "DynamicRadioList",
"SecurityClassification": "Public",
"Searchable": "N"
},
{
"CaseTypeID": "CIVIL",
"ID": "partiesNames4",
"Label": "**${caseNameHmctsInternal}**",
"FieldType": "Label",
"SecurityClassification": "Public",
"Searchable": "N"
},
{
"CaseTypeID": "CIVIL",
"ID": "isPermissionGranted",
"Label": "Has permission been granted by a Judge to discontinue",
"FieldType": "FixedRadioList",
"FieldTypeParameter": "SettleDiscontinueYesOrNoList",
"SecurityClassification": "Public",
"Searchable": "N"
},
{
"CaseTypeID": "CIVIL",
"ID": "permissionGrantedComplex",
"Label": " ",
"FieldType": "PermissionGrantedFields",
"SecurityClassification": "Public",
"Searchable": "N"
},
{
"CaseTypeID": "CIVIL",
"ID": "permissionNotGrantedText",
"Label": "### Unable to discontinue this claim \n To discontinue this claim you need to get permission from the court.\n Click cancel to return to the case summary screen and select 'Make\n an application' from the next steps menu and select 'Other'",
"FieldType": "Label",
"SecurityClassification":"Public",
"Searchable": "N"
}
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
[
{
"ID": "PermissionGrantedFields",
"ListElementCode": "permissionGrantedJudge",
"HintText": "Judge name",
"ElementLabel": "Permission granted by:",
"FieldType":"Text",
"SecurityClassification": "Public",
"Searchable": "N"
},
{
"ID": "PermissionGrantedFields",
"ListElementCode": "permissionGrantedDate",
"ElementLabel": "On date",
"HintText": "For example, 16 04 2021",
"FieldType": "Date",
"SecurityClassification": "Public",
"Searchable": "N"
}
]

0 comments on commit 30d07ab

Please sign in to comment.