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

Feat/ocrvs 7978/qr reader #1

Open
wants to merge 25 commits into
base: develop
Choose a base branch
from

Conversation

tahmidrahman-dsi
Copy link
Collaborator

@tahmidrahman-dsi tahmidrahman-dsi commented Dec 18, 2024

image

@tahmidrahman-dsi tahmidrahman-dsi force-pushed the feat/ocrvs-7978/qr-reader branch from fbfdfd3 to 385bcfe Compare December 18, 2024 12:57

This comment has been minimized.

@@ -219,20 +220,68 @@ export const birthForm: ISerializedForm = {
fields: [
informantType, // Required field.
otherInformantType(Event.Birth), // Required field.
getIDReaderField(

Choose a reason for hiding this comment

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

@tahmidrahman-dsi I thought that we would apply these functions using functions from here: opencrvs/mosip#26. Do we have to merge that one in first?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes @euanmillar eventually we will import these from @opencrvs/mosip. please feel free to merge if the changes look okay. After the changes are published, I can import these functions here

Choose a reason for hiding this comment

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

@tahmidrahman-dsi I spoke with Pyry, and we are going to publish multiple versions so can you close this PR and instead copy over the appropriate form changes to https://github.com/opencrvs/mosip then we can merge in and use the form functions properly in this repo. Please note the latest WIP changes I merged in that repo. Will set up a call with you to discuss how to send the draft id, e.g. $. from the REDIRECT button. Can you apply any updates to the functions I created with Pathum as I gather you have renamed it LINK_BUTTON now if thats correct?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes that's correct. The update should be in mosip repo as well

Comment on lines 250 to 277
{
name: 'verified',
type: 'HIDDEN',
custom: true,
label: {
id: 'messages.empty',
defaultMessage: ''
},
validator: []
},
{
name: 'idPending',
type: 'ID_VERIFICATION_BANNER',
custom: true,
bannerType: 'pending',
idFieldName: 'idReader',
label: {
id: 'messages.empty',
defaultMessage: ''
},
validator: [],
conditionals: [
{
action: 'hide',
expression: '$form?.verified !== "pending"'
}
]
},
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@naftis these are the recent changes

@tahmidrahman-dsi tahmidrahman-dsi marked this pull request as ready for review January 7, 2025 10:01
Copy link

@naftis naftis left a comment

Choose a reason for hiding this comment

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

Can we only merge this after we can import the form fields from @opencrvs/mosip to keep the git history a bit cleaner to avoid conflicts with opencrvs-countryconfig. What do you think @tahmidrahman-dsi

defaultMessage: 'E-signet'
},
options: {
url: 'https://docs.esignet.io/',
Copy link

Choose a reason for hiding this comment

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

@tahmidrahman-dsi Regarding Euan's question, can we use something like $draft.id here?

@euanmillar
Copy link

@tahmidrahman-dsi now that this is merged, can we now amend the form config to use the module functions?

@tahmidrahman-dsi
Copy link
Collaborator Author

@tahmidrahman-dsi now that this is merged, can we now amend the form config to use the module functions?

Yes, I am on it

- OPENID_PROVIDER_CLIENT_ID=${OPENID_PROVIDER_CLIENT_ID}
- OPENID_PROVIDER_CLAIMS=${OPENID_PROVIDER_CLAIMS}
- OIDP_USER_INFO_URL=${OIDP_USER_INFO_URL}
- LOCALE=en

Choose a reason for hiding this comment

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

@naftis I would like this LOCALE env var available to the server package used in this PR: opencrvs/mosip#31. How should we set up docker-compose config for this?

@euanmillar
Copy link

@tahmidrahman-dsi I pushed a couple of commits which I think will tie this together if this PR is also OK and merged?

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

Successfully merging this pull request may close these issues.

3 participants