Skip to content

Commit

Permalink
Merge pull request #1524 from hmcts/feature/EUI-8636-QM-amend-mock-data
Browse files Browse the repository at this point in the history
EUI-8636 QM amend mock data
  • Loading branch information
johnbenjamin-hmcts authored Jul 24, 2023
2 parents 71b0226 + 4921dc6 commit 2deeb8a
Show file tree
Hide file tree
Showing 18 changed files with 401 additions and 334 deletions.
3 changes: 3 additions & 0 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## RELEASE NOTES
### Version 6.16.0-query-management-update-mock-data
**EUI-8636** Query management update mock data to support CCD

### Version 6.16.0-query-management-remove-grey-bar-styling-v2
**EUI-8623** Query management remove grey bar styling from tab and details page

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hmcts/ccd-case-ui-toolkit",
"version": "6.16.0-query-details-add-follow-up-button-v3",
"version": "6.16.0-query-management-update-mock-data",
"engines": {
"yarn": "^3.5.0",
"npm": "^8.10.0"
Expand Down
2 changes: 1 addition & 1 deletion projects/ccd-case-ui-toolkit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hmcts/ccd-case-ui-toolkit",
"version": "6.16.0-query-details-add-follow-up-button-v3",
"version": "6.16.0-query-management-update-mock-data",
"engines": {
"yarn": "^3.5.0",
"npm": "^8.10.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ import { PaletteService } from './palette.service';
import { CasePaymentHistoryViewerFieldComponent } from './payment';
import { ReadPhoneUKFieldComponent, WritePhoneUKFieldComponent } from './phone-uk';
import {
QualifyingQuestionDetailComponent,
QualifyingQuestionOptionsComponent,
QueryAttachmentsReadComponent,
QueryCaseDetailsHeaderComponent,
QueryCheckYourAnswersComponent,
Expand All @@ -128,9 +130,7 @@ import {
QueryWriteDateInputComponent,
QueryWriteRaiseQueryComponent,
QueryWriteRespondToQueryComponent,
ReadQueryManagementFieldComponent,
QualifyingQuestionOptionsComponent,
QualifyingQuestionDetailComponent
ReadQueryManagementFieldComponent
} from './query-management';
import { ReadTextFieldComponent, WriteTextFieldComponent } from './text';
import { ReadTextAreaFieldComponent, WriteTextAreaFieldComponent } from './text-area';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,165 +1,210 @@
import { PartyMessagesGroup } from '../models';
import { CaseQueriesCollection } from '../models';

export const partyMessagesMockData: PartyMessagesGroup[] = [
/**
* This mock file should be deleted after integrating with CCD
* CCD development ticket: https://tools.hmcts.net/jira/browse/CCD-4590
* ExUI tickets:
* https://tools.hmcts.net/jira/browse/EUI-8460
* https://tools.hmcts.net/jira/browse/EUI-8388
* https://tools.hmcts.net/jira/browse/EUI-8389
*/
export const caseMessagesMockData: CaseQueriesCollection[] = [
{
partyName: 'John Smith - Appellant',
roleOnCase: null,
partyMessages: [
caseMessages: [
{
id: 'case-message-001',
subject: 'Review attached document',
name: 'Maggie Conroy',
body: 'Please review attached document and advise if hearing should proceed?',
attachments: [
{
_links: {
self: { href: 'https://dm-store-aat.service.core-compute-aat.internal/documents/e5366837-b3f6-492d-acbf-548730625e8f' },
binary: { href: 'https://dm-store-aat.service.core-compute-aat.internal/documents/e5366837-b3f6-492d-acbf-548730625e8f/binary' },
id: 'ccd-message-id-001',
value: {
id: 'case-message-001',
subject: 'Review attached document',
name: 'Maggie Conroy',
body: 'Please review attached document and advise if hearing should proceed?',
attachments: [
{
id: 'ccd-document-id-001',
value: {
document_filename: 'Screenshot 2023-06-01 at 16.07.06.png',
document_url: 'https://dm-store-aat.service.core-compute-aat.internal/documents/e5366837-b3f6-492d-acbf-548730625e8f',
document_binary_url: 'https://dm-store-aat.service.core-compute-aat.internal/documents/e5366837-b3f6-492d-acbf-548730625e8f/binary'
}
},
originalDocumentName: 'Screenshot 2023-06-01 at 16.07.06.png',
},
{
_links: {
self: { href: 'https://dm-store-aat.service.core-compute-aat.internal/documents/f50ccd7a-7f28-40f3-b5f9-7ad2f6425506' },
binary: { href: 'https://dm-store-aat.service.core-compute-aat.internal/documents/f50ccd7a-7f28-40f3-b5f9-7ad2f6425506/binary' },
},
originalDocumentName: 'dummy.pdf',
}
],
isHearingRelated: true,
hearingDate: '10 Jan 2023',
createdOn: new Date(2023, 0, 3),
createdBy: '1111-1111-1111-1111'
{
id: 'ccd-document-id-002',
value: {
document_filename: 'dummy.pdf',
document_url: 'https://dm-store-aat.service.core-compute-aat.internal/documents/f50ccd7a-7f28-40f3-b5f9-7ad2f6425506',
document_binary_url: 'https://dm-store-aat.service.core-compute-aat.internal/documents/f50ccd7a-7f28-40f3-b5f9-7ad2f6425506/binary'
}
}
],
isHearingRelated: 'Yes',
hearingDate: '2023-01-10',
createdOn: new Date(2023, 0, 3),
createdBy: '1111-1111-1111-1111'
}
},
{
id: 'case-message-002',
subject: 'Games',
name: 'Maggie Conroy',
body: 'Can I play games in my phone when my solicitor is talking?',
attachments: [
{
_links: {
self: { href: '/' },
binary: { href: '/' },
},
originalDocumentName: 'talking-document.pdf',
}
],
isHearingRelated: true,
hearingDate: '10 Jan 2023',
createdOn: new Date(2023, 0, 3),
createdBy: '1111-1111-1111-1111'
id: 'ccd-message-id-001',
value: {
id: 'case-message-002',
subject: 'Games',
name: 'Maggie Conroy',
body: 'Can I play games in my phone when my solicitor is talking?',
attachments: [
{
id: 'ccd-document-id-003',
value: {
document_filename: 'talking-document.pdf',
document_url: '/',
document_binary_url: '/'
}
}
],
isHearingRelated: 'Yes',
hearingDate: '2023-01-10',
createdOn: new Date(2023, 0, 3),
createdBy: '1111-1111-1111-1111'
}
},
{
id: 'case-message-011',
name: 'John Smith',
body: 'Using mobile phone is strictly prohibited in the court room.',
attachments: [
{
_links: {
self: { href: '/' },
binary: { href: '/' },
},
originalDocumentName: 'games-document.pdf',
}
],
isHearingRelated: true,
hearingDate: '10 Jan 2023',
createdOn: new Date(2023, 2, 4),
createdBy: '2222-2222-2222-2222',
parentId: 'case-message-002'
id: 'ccd-message-id-003',
value: {
id: 'case-message-003',
name: 'John Smith',
body: 'Using mobile phone is strictly prohibited in the court room.',
attachments: [
{
id: 'ccd-document-id-004',
value: {
document_filename: 'games-document.pdf',
document_url: '/',
document_binary_url: '/'
}
}
],
isHearingRelated: 'Yes',
hearingDate: '2023-01-10',
createdOn: new Date(2023, 2, 4),
createdBy: '2222-2222-2222-2222',
parentId: 'case-message-002'
}
},
{
id: 'case-message-012',
name: 'Maggie Conroy',
body: 'Can I use a tablet instead?',
attachments: [],
isHearingRelated: true,
hearingDate: '10 Jan 2023',
createdOn: new Date(2023, 3, 8),
createdBy: '2222-2222-2222-2222',
parentId: 'case-message-002'
id: 'ccd-message-id-004',
value: {
id: 'case-message-004',
name: 'Maggie Conroy',
body: 'Can I use a tablet instead?',
attachments: [],
isHearingRelated: 'Yes',
hearingDate: '2023-01-10',
createdOn: new Date(2023, 3, 8),
createdBy: '2222-2222-2222-2222',
parentId: 'case-message-003'
}
},
{
id: 'case-message-013',
name: 'John Smith',
body: 'No, you cannot use a tablet either.',
attachments: [],
isHearingRelated: true,
hearingDate: '10 Jan 2023',
createdOn: new Date(2023, 4, 24),
createdBy: '2222-2222-2222-2222',
parentId: 'case-message-002'
id: 'ccd-message-id-005',
value: {
id: 'case-message-005',
name: 'John Smith',
body: 'No, you cannot use a tablet either.',
attachments: [],
isHearingRelated: 'Yes',
hearingDate: '2023-01-10',
createdOn: new Date(2023, 4, 24),
createdBy: '2222-2222-2222-2222',
parentId: 'case-message-004'
}
}
]
},
{
partyName: 'Kevin Peterson - Respondent',
roleOnCase: null,
partyMessages: [
caseMessages: [
{
id: 'case-message-005',
subject: 'Add respondent detention order',
name: 'Maggie Conroy',
body: 'Please add respondent detention order to the file XX20230423-DX.',
attachments: [],
isHearingRelated: false,
createdOn: new Date(2023, 1, 5),
createdBy: '1111-1111-1111-1111'
id: 'ccd-message-id-006',
value: {
id: 'case-message-006',
subject: 'Add respondent detention order',
name: 'Maggie Conroy',
body: 'Please add respondent detention order to the file XX20230423-DX.',
attachments: [],
isHearingRelated: 'Yes',
createdOn: new Date(2023, 1, 5),
createdBy: '1111-1111-1111-1111'
}
},
{
id: 'case-message-006',
name: 'Maggie Conroy',
body: 'I confirm that the respondent detention order is now added to the file XX20230423-DX.',
attachments: [],
isHearingRelated: false,
createdOn: new Date(2023, 1, 6),
createdBy: '2222-2222-2222-2222',
parentId: 'case-message-005'
id: 'ccd-message-id-007',
value: {
id: 'case-message-007',
name: 'Maggie Conroy',
body: 'I confirm that the respondent detention order is now added to the file XX20230423-DX.',
attachments: [],
isHearingRelated: 'Yes',
createdOn: new Date(2023, 1, 6),
createdBy: '2222-2222-2222-2222',
parentId: 'case-message-006'
}
},
{
id: 'case-message-007',
subject: 'Food',
name: 'Maggie Conroy',
body: 'Can I eat in the hearings?',
attachments: [],
isHearingRelated: true,
hearingDate: '10 Jan 2023',
createdOn: new Date(2023, 0, 3),
createdBy: '1111-1111-1111-1111'
id: 'ccd-message-id-008',
value: {
id: 'case-message-008',
subject: 'Food',
name: 'Maggie Conroy',
body: 'Can I eat in the hearings?',
attachments: [],
isHearingRelated: 'Yes',
hearingDate: '2023-01-10',
createdOn: new Date(2023, 0, 3),
createdBy: '1111-1111-1111-1111'
}
},
{
id: 'case-message-008',
name: 'Maggie Conroy',
body: 'Consumption of food is not allowed when a hearing is taking place.',
attachments: [],
isHearingRelated: true,
hearingDate: '10 Jan 2023',
createdOn: new Date(2023, 0, 5),
createdBy: '2222-2222-2222-2222',
parentId: 'case-message-007'
id: 'ccd-message-id-009',
value: {
id: 'case-message-009',
name: 'Maggie Conroy',
body: 'Consumption of food is not allowed when a hearing is taking place.',
attachments: [],
isHearingRelated: 'Yes',
hearingDate: '2023-01-10',
createdOn: new Date(2023, 0, 5),
createdBy: '2222-2222-2222-2222',
parentId: 'case-message-008'
}
},
{
id: 'case-message-009',
subject: 'Bring relatives',
name: 'Maggie Conroy',
body: 'Can I bring my grandma with me so she get out from the residence?',
attachments: [],
isHearingRelated: true,
hearingDate: '10 Jan 2023',
createdOn: new Date(2023, 0, 6),
createdBy: '1111-1111-1111-1111'
id: 'ccd-message-id-010',
value: {
id: 'case-message-010',
subject: 'Bring relatives',
name: 'Maggie Conroy',
body: 'Can I bring my grandma with me so she get out from the residence?',
attachments: [],
isHearingRelated: 'Yes',
hearingDate: '2023-01-10',
createdOn: new Date(2023, 0, 6),
createdBy: '1111-1111-1111-1111'
}
},
{
id: 'case-message-010',
name: 'Maggie Conroy',
body: 'Sorry, only those required for the hearing should be present inside the court room.',
attachments: [],
isHearingRelated: true,
hearingDate: '10 Jan 2023',
createdOn: new Date(2023, 0, 7),
createdBy: '2222-2222-2222-2222',
parentId: 'case-message-009'
id: 'ccd-message-id-011',
value: {
id: 'case-message-011',
name: 'Maggie Conroy',
body: 'Sorry, only those required for the hearing should be present inside the court room.',
attachments: [],
isHearingRelated: 'Yes',
hearingDate: '2023-01-10',
createdOn: new Date(2023, 0, 7),
createdBy: '2222-2222-2222-2222',
parentId: 'case-message-010'
}
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ describe('QueryDetailsComponent', () => {
fixture.detectChanges();
expect(component.isCaseworker()).toBeFalsy();
});
})
});
});
Loading

0 comments on commit 2deeb8a

Please sign in to comment.