-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fix some errors #182
Fix some errors #182
Conversation
002ca1a
to
b9ea586
Compare
@@ -0,0 +1 @@ | |||
<span aria-hidden="true"> · {{ this.stringifiedLabel }}</span> |
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.
Don't we want the label to be read by screen readers?
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.
My bad. Fixed by creating two span 👍 (one hidden for the bullet and one visible for the label).
this.stringifiedLabel = `${this.getTranslatedType( | ||
this.label.type | ||
)} (${this.getTranslatedLabel(this.label.label).toLowerCase()})`; |
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.
nit: extracting the two translations into variables would improve readability of the templated string
b9ea586
to
e484013
Compare
When we tried to improve performance by passing the key directly to convertContactToCipherResponse, we introduce inversion in arguments passed to convertContactToCipherResponse.
conversion fail Previously, when converting papers or contacts to ciphers, we were returning an empty array when an error occured. So with 1000 contacts, if one conversion failed, we were seeing 0 contact. Now we will see the 999 contacts that were successfully converted and we will log an error for each paper or contact that failed to be converted.
e484013
to
3e718c3
Compare
io.cozy.contacts label management has been improved. A phone number, an address or an email can have : - a type which can be "cell", "voice", "fax" or a custom string - a label which can be "home" or "work" - both See io.cozy.contacts documentation to learn more. Here we introduce and use a new component to display correctly the label value. We also modify our types to correspond to io.cozy.contacts.
3e718c3
to
0d0abc1
Compare
No description provided.