generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add initial data-layer files * implement call to listBaseClients endpoint - currently clients/all * surface data layer on homepage to demonstrate layer model * Util function for splitting string responses from API * tidy front end code * update package-lock * clean up for linter - (only comment out upcoming work) * update integration test specification for home page * updates for integration testing * updates to integration tests * HAAR-1902: Fix for integration tests * move list base-clients endpoint to new authorization-server schema * For getBaseClient api - add response type - add to api client + tests - add mapper - add to base client service + tests * fix linting errors * post base-client endpoint added * update base client * update base client deployment details * list client instances * delete client instance * remove commented code * remove clientid and secret from authorization server until needed * respond to review comments --------- Co-authored-by: Jon Brighton <brightonsbox@hotmail.com>
- Loading branch information
1 parent
1aef1f8
commit c32923e
Showing
48 changed files
with
2,828 additions
and
4,090 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
new MOJFrontend.FilterToggleButton({ | ||
bigModeMediaQuery: '(min-width: 48.063em)', | ||
startHidden: true, | ||
toggleButton: { | ||
container: $('.moj-action-bar__filter'), | ||
showText: 'Show filter', | ||
hideText: 'Hide filter', | ||
classes: 'govuk-button--secondary', | ||
}, | ||
closeButton: { | ||
container: $('.moj-filter__header-action'), | ||
text: 'Close', | ||
}, | ||
filter: { | ||
container: $('.moj-filter'), | ||
}, | ||
}) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { stubFor } from './wiremock' | ||
import { | ||
listBaseClientsResponseMock, | ||
getBaseClientResponseMock, | ||
} from '../../server/data/localMockData/baseClientsResponseMock' | ||
|
||
export default { | ||
stubListBaseClients: () => { | ||
return stubFor({ | ||
request: { | ||
method: 'GET', | ||
urlPattern: `/baseClientsApi/base-clients`, | ||
}, | ||
response: { | ||
status: 200, | ||
headers: { | ||
'Content-Type': 'application/json;charset=UTF-8', | ||
}, | ||
jsonBody: listBaseClientsResponseMock, | ||
}, | ||
}) | ||
}, | ||
|
||
stubGetBaseClient: () => { | ||
return stubFor({ | ||
request: { | ||
method: 'GET', | ||
urlPattern: `/baseClientsApi/base-clients/baseClientId`, | ||
}, | ||
response: { | ||
status: 200, | ||
headers: { | ||
'Content-Type': 'application/json;charset=UTF-8', | ||
}, | ||
jsonBody: getBaseClientResponseMock, | ||
}, | ||
}) | ||
}, | ||
} |
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
Oops, something went wrong.