Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Bring back user view #2666

Merged
merged 5 commits into from
Feb 21, 2019
Merged

Bring back user view #2666

merged 5 commits into from
Feb 21, 2019

Conversation

bwindels
Copy link
Contributor

@bwindels bwindels commented Feb 20, 2019

Adds a UserView that contains a MainSplit with an empty div
and a RightPanel, preset to the given member.

UserView fetches the profile and creates a fake member, which
it passed on to the RightPanel.

this doesn't use the view_user action on purpose, to avoid any
interference of the UserView when trying to view a room member.

image

Fixes element-hq/element-web#8791

Adds a UserView that contains a MainSplit with an empty div
and a RightPanel, preset to the given member.

UserView fetches the profile and creates a fake member, which
it passed on to the RightPanel.

this doesn't use the view_user action on purpose, to avoid any
interference of the UserView when trying to view a room member.
@jryans
Copy link
Collaborator

jryans commented Feb 20, 2019

(@bwindels says it's ready for review.)

@jryans jryans requested a review from a team February 20, 2019 12:00
@bwindels bwindels changed the title Bwindels/userview Bring back user view Feb 20, 2019
@jryans jryans self-assigned this Feb 20, 2019
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Looking good overall! 😁 A few things to clean up here first, I think.

@@ -0,0 +1,21 @@
/*
Copyright 2015, 2016 OpenMarket Ltd
Copy link
Collaborator

Choose a reason for hiding this comment

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

Update year and name.

action: 'view_user',
member: member,
});
// get profile info here somehow
Copy link
Collaborator

Choose a reason for hiding this comment

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

What does this comment mean...?

});
// get profile info here somehow

this.notifyNewScreen('user/' + userId);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: Indentation doesn't seem right here...?

let backButton;
if (this.props.member.roomId) {
backButton = (<AccessibleButton className="mx_MemberInfo_cancel"
onClick={this.onCancel}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: Indentation seems strange here

*/

.mx_MainSplit {
display: flex;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess other users for MainSplit were also setting display: flex in more specific rule sets, so we could remove display: flex from those.

@jryans jryans assigned bwindels and unassigned jryans Feb 20, 2019
@bwindels bwindels assigned jryans and unassigned bwindels Feb 21, 2019
Copy link
Collaborator

@jryans jryans left a comment

Choose a reason for hiding this comment

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

Looks great, thanks for working on it! 😁

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants