Skip to content

POFCC-329 - allow navigation links in the header to go to decentralised service URLs - #5309

Draft
jamescatto-cgi wants to merge 5 commits into
jcatto/pofcc-365from
jcatto/pofcc-329
Draft

POFCC-329 - allow navigation links in the header to go to decentralised service URLs#5309
jamescatto-cgi wants to merge 5 commits into
jcatto/pofcc-365from
jcatto/pofcc-329

Conversation

@jamescatto-cgi

@jamescatto-cgi jamescatto-cgi commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Jira link

https://tools.hmcts.net/jira/browse/POFCC-329

Change description

Using part of the decentralise mechanism of pofcc-365 allow links in the header to open external service URLs.

The required config is:

adding a new menu item in ExUI at api/configuration/menuConfigs/base-config.ts
adding a new DECENTRALISED_SERVICE_MAP variable in config/default.json
For example in api/configuration/menuConfigs/base-config.ts:

{      
  active: false,      
  href: '/duty-advisor',      
  roles: ['caseworker-pcs-solicitor'],      
  text: 'Duty Advisor',      
  decentralisedServiceId: 'PCS',    
}, 

And in config/default.json:

"decentralisedServiceMap": {    
  "PCS": { "id": "PCS", "baseUrl": "https://www.google.com" }  
}, 

Here the decentralisedServiceId must match the key in the decentralisedServiceMap.

Dependency PRs

Testing done

Security Vulnerability Assessment

CVE Suppression: Are there any CVEs present in the codebase (either newly introduced or pre-existing) that are being intentionally suppressed or ignored by this commit?

  • Yes
  • No

Checklist

  • commit messages are meaningful and follow good commit message guidelines
  • README and other documentation has been updated / added (if needed)
  • tests have been updated / new tests has been added (if needed)
  • Does this PR introduce a breaking change
  • Can this PR be released on a Friday (ie: no functional code changes)

…allow adding links to decentralised service URLs
…nfiguration to allow base URLs of services to be captured
… the service baseUrl and use it to construct the absolute URL
notFlags?: FlagDefinition[];
ngClass?: string;
align?: 'right' | 'left';
decentralisedServiceId?: string;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

should the service ID be mapped here? Is it possible to get the service ID from the user session instead to avoid hardcoding the service ID here?

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.

1 participant