-
Notifications
You must be signed in to change notification settings - Fork 322
Enhance site position avatar UI/UX for RFC-001 #332
Conversation
We're working toward the last mockup shown in #286 (comment).
Prior to this change, we rendered three different site position components (upper right, middle right, and lower right), and a participant's location in the current file determined which site position component they appeared in. This seemed like useful behavior when we were first designing the Teletype UI, but in practice, this behavior isn't useful enough to justify the complexity. With the changes in this commit, we now render a single site position component in the lower right corner of the active text editor, and we show all site participant avatars in that component.
This is an initial step toward the design shown in #286 (comment).
styles/teletype.less
Outdated
.icon-link { | ||
position: absolute; | ||
padding-left: 28px; | ||
padding-top: 28px; |
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.
@simurai: I really dig the what the link icon appears in your mockup:
This pull request currently hacks in a pretty rudimentary implementation:
Would you be willing to update the styling to match your mockup? You can feel free to push directly to this branch.
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.
This seems harder than it sounds. I tried adding
Not the best experience, but also not unsolvable and there are other higher priorities. |
Any thoughts on the gracefulness? Currently participants just get cut off when there is not enough space: Maybe already fine? Otherwise we would start optimizing for the |
In the rare case where there are so many participants that we can't fit all of their avatars horizontally across the bottom of the editor pane item, we'll simply hide the avatars that overflow. See #332 (comment).
For now, we're not going to render avatars differently for participants that are in the same editor that you're viewing versus participants that are in a different editor than the one you're viewing.
@simurai: Thanks for these updates! I asked for help with one thing, and you took the time to help with 3 things. 😻 One follow-up request: In my testing, the link icon seems to render well when the using a font size of 14 or smaller. When I increase the font above 14, the link icon's position gets distorted. (See examples below.) Can you push up some changes to fix this issue or offer some tips for how I can go about fixing it? 14-point font15-point font20-point font |
Prior to this commit, if a site was viewing a non-portal pane item (e.g., the Atom "Settings" tab), the SitePositionsComponent did not show the site's avatar. If you know that a given person is in the portal, it can be confusing to not see their avatar in the SitePositionsComponent. With the changes in this commit, the SitePositionsComponent will now show the avatars for *all* sites. If a site is viewing a non-portal pane item, the SitePositionsComponent gives the avatar a lighter opacity to distinguish it from the avatars of sites that are currently viewing an editor associated with the portal. As part of this change, this commit consolidates SitePositionsController and SitePositionsComponent into one class: SitePositionsComponent.
I originally included this as something we might do in this pull request: I still like the idea, but this pull request already involves quite a few changes, and this ☝️ would make sense as a standalone enhancement that we address in a future pull request. So, I've removed this task from the list of TODOs in the pull request body. |
Thanks, @simurai. ⚡🙇💟 |
@50Wliu yeah, I checked that issue it's the same as mine, I'm really looking for more future releases :). |
@xmsid: Awesome. Stay tuned. 😄 |
Awesome work y'all! ✨ |
Depends on atom/teletype-client#54
Description of the Change
This pull request updates the site position avatars in support of #268.
#286 explored various designs, and this pull request implements the design described in the last mockup in #286 (comment):
Verification Process
TODO
Add padding to avoid covering the last few linesUPDATE: See Enhance site position avatar UI/UX for RFC-001 #332 (comment)Applicable Issues
Closes #268.
Closes #286.