Skip to content
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

Room UI Redesign: People Sidebar #3148

Merged
merged 17 commits into from
Oct 15, 2020
Merged

Conversation

robertlong
Copy link
Contributor

This PR adds the people sidebar and cleans up the styling for editing your own profile and viewing other users.

@robertlong robertlong changed the base branch from room-ui-redesign to master October 9, 2020 18:32
@robertlong robertlong changed the base branch from master to room-ui-redesign October 9, 2020 18:32
Copy link
Contributor

@johnshaughnessy johnshaughnessy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

A note that's unrelated to these changes but affects the new UI -- It seems like tabbing through the more menu popover is broken. I can tab through it if I hold tab, but as soon as I let go it seems to lose focus.

>
{<DeviceIcon title={getDeviceLabel(person.context)} />}
{!person.context.discord && VoiceIcon && <VoiceIcon title={getVoiceLabel(person.micPresence)} />}
<p>{getPersonName(person)}</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would like to be able to select/copy this text

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I've made these buttons for accessibility reasons. Buttons have a default behavior which is to not allow text selection. IMO this is correct. If copying a user's name is important we should figure out the best place to put a copy user name button. This could be a right click menu or in the user's profile.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having this row be a button seems good to me -- it makes keyboard navigation easier and allows screen readers to parse it correctly. Does making the text in the button selectable with a user-select: text; css rule impact its accessibility? Keyboard navigation / button behavior seems to remain in tact in this example.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It lets you select the text but it still triggers the button press. So you can't really copy the text. I think this is a relatively minor thing that we can tackle later.

() => {
for (const person of people) {
if (person.presence === "room" && person.permissions && !person.permissions.mute_users) {
hubChannel.mute(person.id);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if I'm doing something wrong but I don't seem to be reaching the line. (Mute all doesn't seem to be working)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you expand on this? Were you logged in? Was there another user in the room? Were they not muted?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Took me a bit to figure out -- the case I was running into was that I was logged in as the same user twice, so the check for person.permissions.mute_users prevented the mute from going thru. Is this behavior correct? (Is "mute all" not supposed to apply to admins / owners?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/react-components/room/PeopleSidebarContainer.js Outdated Show resolved Hide resolved
@robertlong
Copy link
Contributor Author

Can you give me some more reproduction steps for the more menu bug? I can't figure out how to trigger that.

@johnshaughnessy
Copy link
Contributor

johnshaughnessy commented Oct 14, 2020

Here's a couple fixes for onOpenAvatarSettings and an issue preventing promotion / demotion in the people sidebar: #3171

@robertlong robertlong merged commit 2db2d6c into room-ui-redesign Oct 15, 2020
@robertlong robertlong deleted the redesign/people-list branch October 15, 2020 17:09
@robertlong robertlong mentioned this pull request Oct 15, 2020
69 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants