Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PUB-2588 Add List Type For Court Subscription #1348

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

junaidiqbalmoj
Copy link
Contributor

JIRA link

https://tools.hmcts.net/jira/browse/

Change description

Add List Type For Court Subscription

Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

NatashaAlker
NatashaAlker previously approved these changes Sep 23, 2024
NatashaAlker
NatashaAlker previously approved these changes Sep 24, 2024
{% extends "template.njk" %}
{% from "./macros/common-components.njk" import goBack, submitButton %}
{%- from "govuk/components/checkboxes/macro.njk" import govukCheckboxes -%}
{%- from "govuk/components/input/macro.njk" import govukInput -%}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if govukCheckboxes and govukInput nunjucks macro are not used we can remove them here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed.

{% endblock %}

{% block beforeContent %}
{{ govukBackLink({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not use the goBack() macro defined in common-components here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as discussed, updated.

"removeText": "Remove",
"table": {
"header1": "Case name",
"header2": "Party name(s)",
"header3": "Reference number",
"header4": "Actions"
},
"buttonText_court_subscription": "Continue",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

title_court_subscription and buttonText_court_subscription need to be added to the welsh language resource too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@@ -99,4 +99,14 @@ export class LocationService {
public async deleteLocationById(locationId: number, requester: string): Promise<object> {
return await locationRequest.deleteCourt(locationId, requester);
}

public async findCourtsJurisdiction(locations): Promise<object> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change the returned type to Promise<string[]> and not object?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done, thanks, good catch :)

@@ -282,6 +282,17 @@ export default function (app: Application): void {
isPermittedMedia,
app.locals.container.cradle.subscriptionManagementController.get
);
app.get('/subscription-add-list', isPermittedMedia, app.locals.container.cradle.subscriptionAddListController.get);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to add new a11y tests for the new routes too

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added.

Copy link

sonarcloud bot commented Oct 3, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants