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

Add memberlist right-panel to Hydrogen #395

Merged
merged 106 commits into from Jul 16, 2021

Conversation

MidhunSureshR
Copy link
Contributor

No description provided.

@MidhunSureshR MidhunSureshR force-pushed the memberlist branch 2 times, most recently from a823d68 to a90defb Compare June 25, 2021 16:22
@bwindels
Copy link
Contributor

For #403

Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

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

This is looking great! I tried it out and the sorting and disambiguation seemed to work quite well.
I came across a few things in this first review, see the comments.

src/domain/session/leftpanel/LeftPanelViewModel.js Outdated Show resolved Hide resolved
src/domain/session/rightpanel/comparator.js Outdated Show resolved Hide resolved
src/domain/session/rightpanel/disambiguator.js Outdated Show resolved Hide resolved
src/domain/session/rightpanel/disambiguator.js Outdated Show resolved Hide resolved
src/domain/session/rightpanel/disambiguator.js Outdated Show resolved Hide resolved
src/domain/session/rightpanel/disambiguator.js Outdated Show resolved Hide resolved
src/domain/session/rightpanel/disambiguator.js Outdated Show resolved Hide resolved
src/platform/web/ui/session/rightpanel/LoadingView.js Outdated Show resolved Hide resolved
src/platform/web/ui/session/rightpanel/MemberListView.js Outdated Show resolved Hide resolved
src/matrix/room/BaseRoom.js Outdated Show resolved Hide resolved
@bwindels bwindels marked this pull request as ready for review July 1, 2021 09:46
}
const updater = (vm, params, newMember) => {
vm.updateFrom(newMember);
this.nameDisambiguator.disambiguate(vm);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Noticed something here. MappedMap won't run the mapper in onRemove. This will cause any user who leaves and rejoins a room to appear disambiguated.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah yes, can you check for this in the mapper when it is run in onAdd?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed for now but there are related issues. For instance if user-A and user-B are disambiguated and user-B leaves the room, we'd ideally want user-A to be un-disambiguated (which we can't really do atm because the disambiguator does not get informed when user-B leaves).

Copy link
Contributor

Choose a reason for hiding this comment

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

good point, I think this is fine though for now.

Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

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

Nice work so far, left some comments on the lazy list view.

src/platform/web/ui/general/LazyListView.js Show resolved Hide resolved
src/platform/web/ui/general/LazyListView.js Outdated Show resolved Hide resolved
src/platform/web/ui/general/LazyListView.js Outdated Show resolved Hide resolved
src/platform/web/ui/general/LazyListView.js Outdated Show resolved Hide resolved
src/platform/web/ui/general/LazyListView.js Show resolved Hide resolved
src/platform/web/ui/general/LazyListView.js Outdated Show resolved Hide resolved
src/platform/web/ui/general/LazyListView.js Outdated Show resolved Hide resolved
src/matrix/room/BaseRoom.js Outdated Show resolved Hide resolved
src/matrix/room/BaseRoom.js Outdated Show resolved Hide resolved
src/matrix/room/BaseRoom.js Show resolved Hide resolved
src/matrix/room/BaseRoom.js Outdated Show resolved Hide resolved
Copy link
Contributor

@bwindels bwindels 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, we're almost there!

src/domain/session/leftpanel/LeftPanelViewModel.js Outdated Show resolved Hide resolved
src/platform/web/ui/session/rightpanel/RightPanelView.js Outdated Show resolved Hide resolved
src/platform/web/ui/css/layout.css Outdated Show resolved Hide resolved
src/platform/web/ui/css/right-panel.css Outdated Show resolved Hide resolved
src/domain/session/rightpanel/MemberListViewModel.js Outdated Show resolved Hide resolved
src/platform/web/ui/general/LazyListView.js Outdated Show resolved Hide resolved
src/platform/web/ui/general/LazyListView.js Outdated Show resolved Hide resolved
src/platform/web/ui/general/LazyListView.js Show resolved Hide resolved
src/platform/web/ui/general/LazyListView.js Outdated Show resolved Hide resolved
src/platform/web/ui/session/rightpanel/LoadingView.js Outdated Show resolved Hide resolved
@MidhunSureshR
Copy link
Contributor Author

MidhunSureshR commented Jul 15, 2021

TODO: Rebase against master to incorporate avatar fix and anything else.

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
- TODO: Remove duplication

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
- Ensure that rightpanel does not show in the URL.
- Create an action of details to insert the rightpanel segment.
- Make sure rightpanel can be a child of room.

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
- Also remove old methods used in RoomDetails

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
- Do not disambiguate name on room rejoin

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
@bwindels
Copy link
Contributor

Fantastic work, this is good to go!

@bwindels bwindels merged commit da7dff1 into element-hq:master Jul 16, 2021
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.

None yet

2 participants