-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/ny brukerflate/1035 enkelttjenester på brukerside (#1064)
* Add single rights section to user access page * chore: Adjust font sizes in SingleRightsSection.module.css * chore: Implement GetSingleRightsForRightholder method in SingleRightService * chore: Add GetSingleRightsForUser test case to SingleRightControllerTest * map to frontend on getting resources * Adjust SingleRightsSection styling and add pagination * lint fix * Add test case for GetSingleRightsForUser handling error * add case in test-data * Refactor AccessManagementClient.cs to handle getting single rights for a rightholder - Updated the GetSingleRightsForRightholder method in AccessManagementClient.cs to use a temporary endpoint URL until the actual backend endpoint is available - Added error handling for unexpected response status from Access Management - Implemented a placeholder method for revoking single rights delegation in AccessManagementClient.cs - Made necessary changes in AccessManagementClientMock.cs to match the changes in AccessManagementClient.cs * Refactor logging message in SingleRightController.cs * Refactor AccessManagementClient.cs to remove unused method * Refactor SingleRightService.cs to improve resource retrieval * Refactor SingleRightController.cs to remove unnecessary null check * Refactor SingleRightService.cs to handle getting single rights for a rightholder * lint * Refactor SingleRightService.cs to remove unnecessary whitespace * single rights title in en.json * Refactor SingleRightControllerTest.cs to use AssertionUtil for comparing expected and actual responses * Refactor usePagination.ts to optimize pagination logic * Refactor CSS to add min-height to SingleRightsSection
- Loading branch information
Showing
39 changed files
with
3,022 additions
and
18 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
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
65 changes: 65 additions & 0 deletions
65
...nt.UI/Altinn.AccessManagement.UI.Mocks/Data/ResourceRegistry/app_ttd_a3-app/resource.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,65 @@ | ||
{ | ||
"title": { | ||
"en": "A3 app", | ||
"nb": "A3 app", | ||
"nn": "A3 app" | ||
}, | ||
"sector": null, | ||
"status": null, | ||
"limitedByRRR": false, | ||
"SelfIdentifiedUserEnabled": false, | ||
"EnterpriseUserEnabled": false, | ||
"homepage": null, | ||
"isPartOf": null, | ||
"keywords": null, | ||
"identifier": "app_ttd_a3-app", | ||
"contactPoints": [ | ||
{ | ||
"category": "Some category", | ||
"email": "email@someemaildigdir.no", | ||
"telephone": "12345678", | ||
"contactPage": "Some page (webpage maybe?)" | ||
} | ||
], | ||
"visible": true, | ||
"delegable": true, | ||
"description": { | ||
"en": "An Altinn 3 app", | ||
"nb": "En Altinn 3 app", | ||
"nn": "En Altinn 3 app" | ||
}, | ||
"resourceType": "AltinnApp", | ||
"thematicArea": null, | ||
"isPublicService": true, | ||
"rightDescription": { | ||
"en": "Gives access an A3 app.", | ||
"nb": "Gir tilgang til en A3 app.", | ||
"nn": "Gir tilgang til en A3 app." | ||
}, | ||
"resourceReferences": [ | ||
{ | ||
"referenceSource": "Altinn3", | ||
"reference": "ttd/a3-app", | ||
"referenceType": "ApplicationId" | ||
} | ||
], | ||
"authorizationReference": [ | ||
{ | ||
"id": "urn:altinn:app", | ||
"value": "a3-app" | ||
}, | ||
{ | ||
"id": "urn:altinn:org", | ||
"value": "ttd" | ||
} | ||
], | ||
"hasCompetentAuthority": { | ||
"orgcode": "TTD", | ||
"organization": "123456789", | ||
"name": { | ||
"en": "Testdepartementet", | ||
"nb": "Testdepartementet", | ||
"nn": "Testdepartementet" | ||
} | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
...t.UI/Altinn.AccessManagement.UI.Mocks/Data/ResourceRegistry/app_ttd_a3-app2/resource.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,65 @@ | ||
{ | ||
"title": { | ||
"en": "A3 app 2", | ||
"nb": "A3 app 2", | ||
"nn": "A3 app 2" | ||
}, | ||
"sector": null, | ||
"status": null, | ||
"limitedByRRR": false, | ||
"SelfIdentifiedUserEnabled": false, | ||
"EnterpriseUserEnabled": false, | ||
"homepage": null, | ||
"isPartOf": null, | ||
"keywords": null, | ||
"identifier": "app_ttd_a3-app2", | ||
"contactPoints": [ | ||
{ | ||
"category": "Some category", | ||
"email": "email@someemaildigdir.no", | ||
"telephone": "12345678", | ||
"contactPage": "Some page (webpage maybe?)" | ||
} | ||
], | ||
"visible": true, | ||
"delegable": true, | ||
"description": { | ||
"en": "An Altinn 3 app", | ||
"nb": "En Altinn 3 app", | ||
"nn": "En Altinn 3 app" | ||
}, | ||
"resourceType": "AltinnApp", | ||
"thematicArea": null, | ||
"isPublicService": true, | ||
"rightDescription": { | ||
"en": "Gives access an A3 app.", | ||
"nb": "Gir tilgang til en A3 app.", | ||
"nn": "Gir tilgang til en A3 app." | ||
}, | ||
"resourceReferences": [ | ||
{ | ||
"referenceSource": "Altinn3", | ||
"reference": "ttd/a3-app2", | ||
"referenceType": "ApplicationId" | ||
} | ||
], | ||
"authorizationReference": [ | ||
{ | ||
"id": "urn:altinn:app", | ||
"value": "a3-app2" | ||
}, | ||
{ | ||
"id": "urn:altinn:org", | ||
"value": "ttd" | ||
} | ||
], | ||
"hasCompetentAuthority": { | ||
"orgcode": "TTD", | ||
"organization": "123456789", | ||
"name": { | ||
"en": "Testdepartementet", | ||
"nb": "Testdepartementet", | ||
"nn": "Testdepartementet" | ||
} | ||
} | ||
} |
75 changes: 75 additions & 0 deletions
75
...agement.UI/Altinn.AccessManagement.UI.Mocks/Data/ResourceRegistry/appid-136/resource.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,75 @@ | ||
{ | ||
"title": { | ||
"en": "Automation Regression", | ||
"nb": "Automation Regression", | ||
"nn": "Automation Regression" | ||
}, | ||
"sector": null, | ||
"status": null, | ||
"limitedByRRR": false, | ||
"SelfIdentifiedUserEnabled": false, | ||
"EnterpriseUserEnabled": false, | ||
"homepage": null, | ||
"isPartOf": null, | ||
"keywords": null, | ||
"identifier": "appid-136", | ||
"contactPoints": [ | ||
{ | ||
"category": "Some category", | ||
"email": "email@someemaildigdir.no", | ||
"telephone": "12345678", | ||
"contactPage": "Some page (webpage maybe?)" | ||
} | ||
], | ||
"description": null, | ||
"resourceType": "MaskinportenSchema", | ||
"thematicArea": null, | ||
"isPublicService": true, | ||
"rightDescription": { | ||
"en": "Allows you to test maskinporten changes as part of automation testing", | ||
"nb": "Gir anledning til a teste maskinporten som en del av automatiserte tester", | ||
"nn": "Gjer hove til a teste maskinporten som en del av automatiserte tester" | ||
}, | ||
"resourceReferences": [ | ||
{ | ||
"reference": "911f9e93-1541-429d-a8c6-a06f9a52d827", | ||
"referenceType": "DelegationSchemeId", | ||
"referenceSource": "Altinn2" | ||
}, | ||
{ | ||
"reference": "altinn:test/theworld.write", | ||
"referenceType": "MaskinportenScope", | ||
"referenceSource": "Altinn2" | ||
}, | ||
{ | ||
"reference": "altinn:test/theworld.admin", | ||
"referenceType": "MaskinportenScope", | ||
"referenceSource": "Altinn2" | ||
}, | ||
{ | ||
"reference": "AppId:136", | ||
"referenceType": "ServiceCode", | ||
"referenceSource": "Altinn2" | ||
}, | ||
{ | ||
"reference": "1", | ||
"referenceType": "ServiceEditionCode", | ||
"referenceSource": "Altinn2" | ||
} | ||
], | ||
"authorizationReference": [ | ||
{ | ||
"id": "urn:altinn:resource", | ||
"value": "appid-136" | ||
} | ||
], | ||
"hasCompetentAuthority": { | ||
"orgcode": "SKD", | ||
"organization": "974761076", | ||
"name": { | ||
"en": "Skatteetaten", | ||
"nb": "Skatteetaten", | ||
"nn": "Skatteetaten" | ||
} | ||
} | ||
} |
Oops, something went wrong.