-
-
Notifications
You must be signed in to change notification settings - Fork 187
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(organizations): Add isEmpty to avatar component and use it for members table TASK-1420 #5457
feat(organizations): Add isEmpty to avatar component and use it for members table TASK-1420 #5457
Conversation
</div> | ||
{isGhost ? ( | ||
<div className={cx(styles.initials, styles.ghost)}> | ||
<svg width='100%' viewBox='0 0 24 24'> |
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.
Decided to use SVG so we could have control over the dash offset and size
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.
Left some comments for your consideration, but not blocking
Thanks for the inputs, @jamesrkiger. Did some changes to adjust based on them. |
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.
Sorry, I've got one last issue for you:
If you use storybook and toggle the isEmpty control on a small avatar component, you will notice the component's alignment shifting (by a very small amount, but visible nonetheless). It looks like the size of the circle changes. It's not noticeable when the size is 'm', but the size changes there, too. It's like a 1 pixel difference, but still probably better to just fix it now rather than later.
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
🗒️ Checklist
<type>(<scope>)<!>: <title> TASK-1234
frontend
orbackend
unless it's global📣 Summary
Ghost variant was added to display a "ghost" state in members table when user is invited but still not active
📖 Description
isEmpty
prop for our existentAvatar
component for it to render the empty-dashed circle.👀 Preview steps
One can check the implementation result in Avatar's storybook story

For reference, I'm adding a screenshot of the property in use: