Conversation
|
Oops! Looks like you forgot to update the changelog. When updating CHANGELOG.md, please consider the following:
|
|
ℹ️ Coverage metrics explained: |
📊 commons test coverage |
📊 events test coverage |
|
Your environment is deployed to https://ocrvs-11378.e2e-k8s.opencrvs.dev |
makelicious
left a comment
There was a problem hiding this comment.
looks good, I'll give it a spin. Assuming a single scope is an issue we need to fix, unless told otherwise.
This reverts commit fc62224.
# Conflicts: # packages/commons/src/scopes-v2.ts # packages/commons/src/scopes.test.ts
| * @param acceptedScopes - An array of acceptable scope types to filter by. | ||
| * @returns An array of parsed RecordScopeV2 objects that are found in the token and match the accepted scope types. | ||
| */ | ||
| export function getAcceptedScopesFromToken( |
There was a problem hiding this comment.
Put this here to avoid cyclical dependency on v2-scopes.ts and authentication.ts. It was causing issues.
makelicious
left a comment
There was a problem hiding this comment.
Looks good, thanks for your hard work!
Description
Resolves: #11378
CC PR: opencrvs/opencrvs-countryconfig#1285
Farajaland PR: opencrvs/opencrvs-farajaland#1982
Location and administrative area filtering in frontend inputs
Affects:
FieldType.ADDRESSFieldType.LOCATIONFieldType.OFFICEFieldType.FACILITYChanges:
allowedLocationsto field config optionsLocationSearch.tsxAdministrativeArea.tsxLocationSearch.tsxto use<SearchableSelect/>instead of<LocationSearchComponent/>User jurisdiction and scope reference functions
user.jurisdiction()user.scope(<scopeName>).attribute(<attributeName>)Misc.
isOfficeUnderJurisdiction()->isLocationUnderJurisdiction()packages/client/src/utils/locationUtils.ts()Performance test with 100k locations:
Minor lag noticeable (1-2sec)
Screen.Recording.2026-03-03.at.9.19.41.mov
Checklist