-
Notifications
You must be signed in to change notification settings - Fork 7
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(conversation): #WB-3833 outbox details in message list #614
feat(conversation): #WB-3833 outbox details in message list #614
Conversation
<IconGroupAvatar | ||
className="w-16" | ||
aria-label={t('recipient.avatar.group')} | ||
role="img" |
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.
j'ai un doute sur l'utilité de ces balise pour l'accessibilité, quand j'affiche l'accessibility tree, le composant n'apparait pas. Qu'en pensez-vous ?
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.
J'avoue je ne sais pas trop mais j'ai un doute aussi.
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.
L'attribut role
est propagé dans le HTML généré au final ? C'est React qui s'en charge ?
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.
En fait l'attribut role n'a pas été prévu sur le composant , normal, donc si je l'ai mis sur la div, ça fonctionne bien
@@ -7,7 +7,6 @@ | |||
"author.avatar": "Avatar de l'auteur", | |||
"cancel": "Annuler", | |||
"cc": "Cc :", | |||
"cci": "Cci :", |
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.
Bizarre que "Cci" ne soit plus utilisé du tout, non ?
Je pense que Romuald va en avoir besoin pour la page de création d'un message :)
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.
Oui, il sera utile plus tard.
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.
c'est moi qui l'avait ajouter, donc je l'ai suppr. On pourra l'ajouter lorsque ça sera utile en effet
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.
en fait on va l'afficher quand l'utilisateur actif s'est envoyé à lui même un message en cci 😆
variant="circle" | ||
/> | ||
|
||
{'outbox' === folderId ? ( |
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.
On a ici de la logique métier, qui fait le rendu
- d'un autre composant contenant aussi de la logique métier,
- ou le rendu d'un avatar simple.
Du coup, ça vaut le coup de créer un hook contenant toute la logique métier, lequel retourne les données pré-machées, puis d'injecter ces données en props dans le composant RecipientAvatar
Lui ne ferait ensuite que le rendu à l'écran du ou des avatars, selon le cas.
Maintenant, si cela doit faire ré-écrire les tests associés, ça ne vaut peut-être plus autant le coup...
<div className="d-flex flex-fill flex-column overflow-hidden"> | ||
<div className="d-flex flex-fill justify-content-between overflow-hidden"> | ||
<div className="text-truncate flex-fill"> | ||
{message.from.displayName} | ||
{'outbox' === folderId ? ( |
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.
Idem
* chore: prepare develop-b2school version * fix(conversation): #WB-3833 add "at" before de recipient name * fix(conversation): #WB-3833 general fix nosubject text coloe * fix(conversation): #WB-3833 display recipient avatar in outbox * fix(conversation): #WB-3833 truncate recipient list only on message list * fix(conversation): #WB-3833 remove MessageFolderId type * fix(conversation): #WB-3833 setup code format * fix(conversation): #WB-3833 option to disable link on recipientList * fix(conversation): #WB-3833 remove cci recipients - thx Loic * feat(conversation): #WB-3833 add avatar group icon * refactor(conversation): #WB-3833 split logic from interface and apply best practices * feat(conversation): in outbox list, display all recipients (to, cc, cci) * fix(conversation): file naming --------- Co-authored-by: Jean-Christophe <jean-christophe.benoit@opendigitaleducation.com>
* chore: prepare develop-b2school version * fix(conversation): #WB-3833 add "at" before de recipient name * fix(conversation): #WB-3833 general fix nosubject text coloe * fix(conversation): #WB-3833 display recipient avatar in outbox * fix(conversation): #WB-3833 truncate recipient list only on message list * fix(conversation): #WB-3833 remove MessageFolderId type * fix(conversation): #WB-3833 setup code format * fix(conversation): #WB-3833 option to disable link on recipientList * fix(conversation): #WB-3833 remove cci recipients - thx Loic * feat(conversation): #WB-3833 add avatar group icon * refactor(conversation): #WB-3833 split logic from interface and apply best practices * feat(conversation): in outbox list, display all recipients (to, cc, cci) * fix(conversation): file naming --------- Co-authored-by: Jean-Christophe <jean-christophe.benoit@opendigitaleducation.com>
Description
PR d'origine : #607
Détails propres aux messages envoyés dans la liste des messages :
Fixes
(Enter here Jira or Redmine ticket(s) links)
Type of change
Please check options that are relevant.
Which packages changed?
Please check the name of the package you changed
Tests
Reminder
Security flaws
Performance impacts (think bulk !)
Unit tests were replayed
Unit tests were added and/or changed
I have updated the reminder for the version including my modifications
All done ! 😃