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

[My Account] Add UI Support for Multiple Email Addresses and Mobile Numbers per User #6563

Merged
merged 35 commits into from
Nov 8, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
64f3ed5
Add support for multi-valued attributes.
PasinduYeshan Jul 2, 2024
a08a44f
Add pending emails support
PasinduYeshan Jul 4, 2024
7523b3d
Add loading and translation support
PasinduYeshan Jul 6, 2024
d488385
Update the mobile verification sizes
PasinduYeshan Jul 7, 2024
8ff6ca6
Fix primary attribute logic issue
PasinduYeshan Jul 8, 2024
589ce54
Add translations
PasinduYeshan Jul 10, 2024
4b47783
Add changeset
PasinduYeshan Jul 10, 2024
66f8dd1
refactor
PasinduYeshan Jul 10, 2024
b9a2a53
fix ts issues
PasinduYeshan Jul 10, 2024
2cd9d5e
Refactor code, Change translations
PasinduYeshan Jul 14, 2024
9a4f7e8
Change changeset
PasinduYeshan Jul 14, 2024
3c27b8f
Add uri max length constant
PasinduYeshan Jul 15, 2024
c179cc6
Hide delete button for primary attribute if required
PasinduYeshan Jul 15, 2024
9b4c8e4
introduce max allowed limit for mobiles, emails
PasinduYeshan Jul 16, 2024
a89d5f3
Merge remote-tracking branch 'upstream/master' into feature/mv-profile
PasinduYeshan Jul 18, 2024
7eea0b8
update framer-motion version
PasinduYeshan Jul 18, 2024
398e848
Remove governance config and add deployment config for multiple email…
PasinduYeshan Jul 19, 2024
2f0ce81
Fix empty multi attribute list issue
PasinduYeshan Sep 26, 2024
dee79b3
Merge remote-tracking branch 'upstream/master' into feature/mv-profile
PasinduYeshan Sep 26, 2024
b9838ae
Merge remote-tracking branch 'upstream/master' into feature/mv-profile
PasinduYeshan Oct 10, 2024
893dc53
Update resend code recovery scenario.
PasinduYeshan Oct 10, 2024
0d37d4d
Add missing test ids and refactor
PasinduYeshan Oct 14, 2024
d62723b
Add framer motion
PasinduYeshan Oct 14, 2024
fa7f683
Improve logic to add existing primary value to total list.
PasinduYeshan Oct 16, 2024
96dc164
Enable,disable multi email and mobiles based on gov config
PasinduYeshan Oct 20, 2024
e0754b2
remove deployment.config.json config
PasinduYeshan Oct 20, 2024
2ea0455
Update profile UIs
PasinduYeshan Oct 22, 2024
7f5a9be
Merge remote-tracking branch 'upstream/master' into feature/mv-profil…
PasinduYeshan Nov 3, 2024
c073afa
Fix conflicts
PasinduYeshan Nov 3, 2024
a97ec88
Change enable method, automatically add first value as primary
PasinduYeshan Nov 5, 2024
2476170
comments
PasinduYeshan Nov 5, 2024
8d0a897
Ignore case for user store check
PasinduYeshan Nov 5, 2024
7b014cc
Handle single valued case - if past data exists
PasinduYeshan Nov 7, 2024
cc330a1
Address comments
PasinduYeshan Nov 7, 2024
968e601
Change value - attributeValue
PasinduYeshan Nov 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changeset/real-carpets-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@wso2is/myaccount": patch
"@wso2is/core": patch
"@wso2is/i18n": patch
PasinduYeshan marked this conversation as resolved.
Show resolved Hide resolved
---

Add multi-valued email, mobile support to my account
1 change: 1 addition & 0 deletions apps/myaccount/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"@wso2is/theme": "^2.0.87",
"@wso2is/validation": "^2.0.6",
"axios": "^0.19.2",
"framer-motion": "^11.1.9",
"history": "^4.9.0",
"i18next": "^21.9.1",
"i18next-browser-languagedetector": "^6.1.5",
Expand Down
160 changes: 160 additions & 0 deletions apps/myaccount/src/components/profile/profile.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
.profile-form {
PasinduYeshan marked this conversation as resolved.
Show resolved Hide resolved
.multi-input-box {
width: 100%;
}

.hidden {
display: none;
}

.oxygen-accordion {
.oxygen-accordion-summary {
display: flex;
padding: 0px 24px 0px 8px;
flex-wrap: nowrap;
align-items: center;
gap: 4px;
border-radius: 8px;

.accordion-label {
margin: 0 0 0 8px;
flex-shrink: 0;
padding-right: 12px;
min-width: 30ch;

&.mobile-label {
min-width: 20ch;
}
}

.verified-icon, .primary-icon {
display: flex;
align-items: center;
}
}

.oxygen-accordion-details {
border-radius: 8px;

.multi-value-table {
.multi-value-table-data-row {
&:last-child td, &:last-child th {
border: none;
}
}

.table-c1 {
display: flex;
flex-wrap: nowrap;
align-items: center;

.c1-value{
margin-bottom: 0;
flex-shrink: 0;
padding-right: 12px;
min-width: 30ch;

&.mobile-label {
min-width: 20ch;
}
}

.verified-icon, .primary-icon {
align-items: center;
}
}

.table-c2 {
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: flex-end;
gap: 4px;
}
}
}

.MuiAccordionDetails-root {
padding: 0px;
}

.MuiAccordionSummary-root {
min-height: 48px;
}
}

.mv-cancel-btn {
margin-top: 1em;
}

.multi-attribute-dropdown {
width: 100%;
}
}

.MuiMenuItem-root:hover {
background-color: transparent !important;
}

.MuiMenuItem-root.Mui-selected, .MuiMenuItem-root.Mui-selected:hover {
background-color: transparent !important;
}

.dropdown-row {
display: flex;
flex-wrap: nowrap;
align-items: center;

.dropdown-label {
display: flex;
align-items: center;
padding-right: 8px;
margin: 0 !important;
min-width: 30ch;

&.mobile-label {
min-width: 20ch;
}
}

.verified-icon, .primary-icon {
align-items: center;
}
}

.vertical-align-center {
display: flex;
flex-wrap: nowrap;
align-items: center;
height: 100%;
}

.resend-button {
cursor: pointer;
max-width: none !important;
position: static !important;

&.disabled {
cursor: not-allowed;
}
}

.mobile-verification-content{
display: flex;
align-items: center;

.animated-message {
height: 250px;
padding: 12px;
}

.inside-content {
display: flex;
flex-direction: column;
height: 100%;

.modal-input, .button-group {
padding: 12px 0;
}
}
}
Loading
Loading