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

Autofill "home" or "work" data #223

Merged
merged 4 commits into from
Jul 24, 2024
Merged

Conversation

zatteo
Copy link

@zatteo zatteo commented Jul 23, 2024

No description provided.

To autofill a ContactView, we leverage what already exists for IdentityView.

Previsouly, we added a conversion function that created a IdentityView from a ContactView. Links between  Bitwarden and Cozy data was hardcoded.

Now we take benefit of the new mapping which is more reusable. We start with only basic contact data.
For the phone, the email and the address, we have an array on
io.cozy.contacts. So we upgrade the mapping to modelize that phone,
email and address are arrays and which field we need to use inside
these arrays.
When there are multiple phones or emails or adresses,
we want to be able to autofill "home" or "work" data.
We implement here the logic to say "I want to autofill
'home' data".
@zatteo zatteo changed the base branch from feat/autofill-id-card to feat/stream2-part2 July 24, 2024 07:57
@zatteo zatteo merged commit d276883 into feat/stream2-part2 Jul 24, 2024
1 check passed
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.

2 participants