-
Notifications
You must be signed in to change notification settings - Fork 19
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
DUCE-10 :: added country code and validation for MOZ and ET #1246
Open
hridya-egov
wants to merge
37
commits into
d1
Choose a base branch
from
pgr_updates
base: d1
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
a09bf63
added country code and validation for MOZ and ET
hridya-egov 6169016
mobile number dropdown for citizen login working
hridya-egov f8c13ee
css alignment for mobile field fixed
hridya-egov 3d267fb
Merge branch 'develop' of https://github.com/egovernments/DIGIT-Front…
hridya-egov 805a6e1
location dropwdown fixed, otp and continue button on locationselectio…
hridya-egov dfe83a6
Merge branch 'develop' of https://github.com/egovernments/DIGIT-Front…
hridya-egov 0f00245
continue button and upload file for the complaint detail screen fixed
hridya-egov 6c3bd3c
to fix css issues,changed the import for components
hridya-egov 50a873e
changed the action to apply
hridya-egov a00cef5
removed user object and added citizen object
hridya-egov 269a0ee
fixed some css related
jagankumar-egov 8493573
updated to latest css
jagankumar-egov a493ed7
dropdown for mobile number and pattern validation
hridya-egov 9e0eb39
enabled core ui build (#1316)
jagankumar-egov 103e68f
updated the pattern for country code and changed the pattern validati…
hridya-egov efd0acc
resolved conflct
hridya-egov fa88a4f
Merge pull request #1317 from egovernments/hrms
jagankumar-egov 87e1d51
Merge branch 'develop' of https://github.com/egovernments/DIGIT-Front…
hridya-egov 3adcd14
updated the changes
hridya-egov 01cda32
Merge branch 'pgr_updates' of https://github.com/egovernments/DIGIT-F…
hridya-egov ac9cd07
clean up module compilation
jagankumar-egov 81bc5d2
added dashboard card
jagankumar-egov f62bf72
"@egovernments/digit-ui-module-utilities":"1.0.1-beta.39",
jagankumar-egov 087e561
fix on utilities
jagankumar-egov bf54d6c
build fix
jagankumar-egov a13b44b
updated css versions
jagankumar-egov 210eb0e
added new icons (#1323)
Swathi-eGov 96c798f
SN itegration with tenant in URL (#1322)
nabeelmd-eGov 9a0be96
Merge branch 'develop' of https://github.com/egovernments/DIGIT-Front…
hridya-egov 7e0c537
reverted back the usertype changes and enabled submit button
hridya-egov ff57cd0
reverted back the usertype changes and enabled submit button
hridya-egov 1a03164
mobile code dropdown for hrms inbox
hridya-egov a4a03ba
updates in countrycode validation
hridya-egov 7a17f04
hrms changes updated
jagankumar-egov f66b9be
updated some package versions
jagankumar-egov a0f315c
updated the pattern for et
hridya-egov b36dbe3
reverted the core ui changes
jagankumar-egov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
|
@@ -17,11 +17,20 @@ | |
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" /> | ||
<script src="%REACT_APP_GLOBAL%"></script> | ||
|
||
<!-- Adding custom style directly in the HTML --> | ||
|
||
<style> | ||
.custom-margin-bottom .citizen-card-input--front { | ||
margin-bottom: 0 !important; | ||
} | ||
</style> | ||
|
||
|
||
</head> | ||
|
||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
</body> | ||
|
||
</html> | ||
</html> |
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 |
---|---|---|
|
@@ -14,11 +14,13 @@ export const Complaint = { | |
uploadedImages, | ||
mobileNumber, | ||
name, | ||
user, | ||
}) => { | ||
const tenantId = Digit.ULBService.getCurrentTenantId(); | ||
const defaultData = { | ||
service: { | ||
tenantId: cityCode, | ||
active :true, | ||
serviceCode: complaintType, | ||
description: description, | ||
additionalDetail: {}, | ||
|
@@ -36,15 +38,18 @@ export const Complaint = { | |
}, | ||
geoLocation: {}, | ||
}, | ||
user: user, | ||
}, | ||
workflow: { | ||
action: "APPLY", | ||
verificationDocuments: uploadedImages, | ||
// action: "APPLY", | ||
// verificationDocuments: uploadedImages, | ||
action: "CREATE", assignes: [], hrmsAssignes: [], comments: "" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. check here |
||
}, | ||
}; | ||
|
||
|
||
if (Digit.SessionStorage.get("user_type") === "employee") { | ||
defaultData.service.citizen = { | ||
defaultData.service.user = { | ||
name: name, | ||
type: "CITIZEN", | ||
mobileNumber: mobileNumber, | ||
|
@@ -59,6 +64,7 @@ export const Complaint = { | |
tenantId: tenantId, | ||
}; | ||
} | ||
|
||
const response = await Digit.PGRService.create(defaultData, cityCode); | ||
return response; | ||
}, | ||
|
@@ -79,8 +85,7 @@ export const Complaint = { | |
: null; | ||
|
||
if (!uploadedDocument) complaintDetails.workflow.verificationDocuments = []; | ||
|
||
//TODO: get tenant id | ||
|
||
const response = await Digit.PGRService.update(complaintDetails, tenantId); | ||
return response; | ||
}, | ||
|
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
16 changes: 16 additions & 0 deletions
16
...o-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/PGRConstants.js
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,16 @@ | ||
export const PGRConstants = { | ||
INDIA: { | ||
countryCode: '+91', | ||
regex: /^[6-9]\d{9}$/, | ||
}, | ||
MOZ: { | ||
countryCode: '+258', | ||
regex: /^[0-9]\d{8}$/, | ||
}, | ||
ET: { | ||
countryCode: '+251', | ||
regex: /^[0-9]\d{9}$/, | ||
}, | ||
|
||
|
||
}; |
29 changes: 27 additions & 2 deletions
29
...eb/micro-ui-internals/packages/modules/core/src/pages/citizen/Login/SelectMobileNumber.js
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
16 changes: 16 additions & 0 deletions
16
micro-ui/web/micro-ui-internals/packages/modules/pgr/src/constants/PGRConstants.js
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,16 @@ | ||
export const PGRConstants = { | ||
INDIA: { | ||
countryCode: '+91', | ||
regex: /^[6-9]\d{9}$/, | ||
}, | ||
MOZ: { | ||
countryCode: '+258', | ||
regex: /^[0-9]\d{8}$/, | ||
}, | ||
ET: { | ||
countryCode: '+251', | ||
regex: /^[0-9]\d{9}$/, | ||
}, | ||
|
||
|
||
}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this we shouldnt comment @hridya-egov