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

Redesigned room preview bar#2925

Merged
bwindels merged 33 commits into
developfrom
bwindels/stylepreviewbar
Apr 18, 2019
Merged

Redesigned room preview bar#2925
bwindels merged 33 commits into
developfrom
bwindels/stylepreviewbar

Conversation

@bwindels
Copy link
Copy Markdown
Contributor

@bwindels bwindels commented Apr 17, 2019

@bwindels bwindels requested a review from a team April 17, 2019 12:26
@jryans jryans self-requested a review April 17, 2019 13:58
Copy link
Copy Markdown
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.

Great, thanks for working on this! 😁 Lots of changes, but each commit seemed to make sense to me, and the look seems to match Zeplin as well.

Comment thread src/components/structures/MatrixChat.js Outdated
_viewUser: function(userId, action) {
// Wait for the first sync so that `getRoom` gives us a room object if it's
// in the sync response
const waitFor = this.firstSyncPromise ?
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe waitForSync?

Comment thread src/components/structures/MatrixChat.js Outdated
this.setState({currentUserId: userId});
this._setPage(PageTypes.UserView);
});
this._viewUser(userId, params.action);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should we change to dispatch view_user_info here instead of calling directly? It looks like many of the other branches dispatch actions, so just wondering it would make sense to follow that pattern.

onRejectClick: PropTypes.func,
onForgetClick: PropTypes.func,
onSignInClick: PropTypes.func,
onSignUpClick: PropTypes.func,
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should we add loading, busy, room_alias, etc. to the propTypes somewhere? It seems like there are quite a few unchecked props.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, forgot about these! Ftr: room_alias was a typo, and busy is state, added the others!

Comment thread src/components/views/rooms/RoomPreviewBar.js
Comment thread src/components/views/rooms/RoomPreviewBar.js Outdated
@bwindels bwindels requested a review from jryans April 17, 2019 17:06
@bwindels
Copy link
Copy Markdown
Contributor Author

should be good for another look

@bwindels
Copy link
Copy Markdown
Contributor Author

Per request from @nadonomy, added hiding of the right panel when previewing a room without invite (e.g. viewing a world readable room after clicking it in the room directory). The member list is always empty, so no reason to show it.

@bwindels
Copy link
Copy Markdown
Contributor Author

rpb-offline

Oops, the status bar is squeezing itself below it still

@bwindels
Copy link
Copy Markdown
Contributor Author

image
Fixed now

Copy link
Copy Markdown
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 this! 😁

Comment thread src/components/structures/RoomView.js
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