-
Notifications
You must be signed in to change notification settings - Fork 0
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(table): adds single rowselectionmode to table #976
Conversation
|
||
type RowSize = 'small' | 'medium' | 'large'; | ||
|
||
type UtilityColumnType = 'selection' | 'numbers' | 'expand'; | ||
|
||
type RowSelectionMode = 'single' | 'multiple'; |
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.
Suite à la discussion ici , je suis allé avec le nom rowSelectionMode
, d'une part pour garder row
dans le nom, mais aussi parce qu'il y a déjà une constante appelée rowSelection
dans la classe.
id={radioBtnId} | ||
data-testid={radioBtnId} | ||
ariaLabel={t('selectRow')} | ||
ariaLabelledBy={ariaLabelledByColumnId ? [radioBtnId, `${row.id}_${ariaLabelledByColumnId}`] : []} |
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.
Pour l'ariaLabelledBy
, on sélectionne la cellule en prenant comme prop l'id de la colonne désirée (l'id de la cellule étant rowId_columnId
).
Storybook for this build: https://ds.equisoft.io/pr-976/ |
Webapp for this build: https://ds.equisoft.io/pr-976/webapp/ |
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.
Petit commentaire sinon ca semble bon pour moi
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.
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.
un ti commentaire après je crois qu'on va être good en ce qui me concerne
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.
good job. quelques commentaires optionnels, mais je pense qu'il faudrait au moins discuter pour le breaking change avec selectableRows. perso, je garderais le boolean selectableRows et je mettrais une valeur par défaut pour le selectionMode. probablement multiple vu qu'avant on supportait seulement la sélection multiple.
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.
Rien d'autre a ajouter pour moi. LGTM.
J'aurais bien aimé découper un peut le component, car il est quand même un peu impossant 😅 . J'imagine qu'une tâche de réfactor pourra être entrepris dans l'avenir pour ça.
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.
LGTM!
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.
Quelques ajouts à ce que les autres ont déjà commenté
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.
Ça va être good pour moi quand les commentaires de P-Y seront fait
ea6bdd0
ea6bdd0
to
ef26f81
Compare
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 tiguidou!
https://equisoft.atlassian.net/browse/DS-1101