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 right panel with Room information #365

Merged
merged 91 commits into from Jun 24, 2021

Conversation

MidhunSureshR
Copy link
Contributor

No description provided.

@bwindels
Copy link
Contributor

So, I just tried it out, and it looks really nice!! Exciting to see this 😄 A few functional things I noticed:

  • it would be great if you switch room, that it keep the details panel open or closed, based on the current URL. See "open-room" in parseUrlPath in src/domain/navigation/index.js.
  • I'd put the button to open the right panel as a menu option in the menu that is already there, especially given there is not much functionality there yet. Also, I think ideally it would be a link rather than a button. You'll probably need to adjust the CSS to have the same styling for links with a given class than for menu option buttons.
  • I'm not sure about showing the room id as a fallback of the room alias... I think if there is no alias, we should not show the subtitle. It might be useful to still (always) show the room id somewhere small & grey though, just so you can relate the id to other things if needed, perhaps below encryption?

Haven't looked at the code recently, will do so later.

src/domain/session/room/RoomViewModel.js Outdated Show resolved Hide resolved
src/domain/session/SessionViewModel.js Outdated Show resolved Hide resolved
@bwindels bwindels marked this pull request as ready for review June 2, 2021 10:42
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.

Thank you for your changed @MidhunSureshR! This is shaping up nicely! I did a full code review, don't be intimidated by the many comments, most should be very easy to address.

src/platform/web/ui/session/room/RoomView.js Outdated Show resolved Hide resolved
src/platform/web/ui/session/rightpanel/RoomInfoView.js Outdated Show resolved Hide resolved
src/domain/navigation/index.js Outdated Show resolved Hide resolved
src/domain/session/RoomGridViewModel.js Outdated Show resolved Hide resolved
src/domain/session/RoomGridViewModel.js Outdated Show resolved Hide resolved
src/platform/web/ui/css/right-panel.css Outdated Show resolved Hide resolved
src/platform/web/ui/css/themes/element/theme.css Outdated Show resolved Hide resolved
src/platform/web/ui/css/themes/element/theme.css Outdated Show resolved Hide resolved
src/domain/session/rightpanel/RoomInfoViewModel.js Outdated Show resolved Hide resolved
src/domain/session/SessionViewModel.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.

Had a look at the styling as well, mostly looks good, just a few suggestions.

src/platform/web/ui/css/themes/element/theme.css Outdated Show resolved Hide resolved
src/platform/web/ui/css/themes/element/theme.css Outdated Show resolved Hide resolved
src/platform/web/ui/css/themes/element/theme.css Outdated Show resolved Hide resolved
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>
- Move related parameters closer together.
- Remove unused parameter.

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>
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.

Thank you for addressing all the comments, just went over those and resolved accordingly. Came across one issue and a little remaining nit. I'll do another review of the whole thing (rather than just going over the comments as I did now), but I think we're mostly good to go.

src/domain/session/room/RoomViewModel.js Outdated Show resolved Hide resolved
src/domain/session/rightpanel/RoomDetailsViewModel.js Outdated Show resolved Hide resolved
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
@bwindels
Copy link
Contributor

Can you also fix some of the lint warnings in your new code? The current warning count is 16 and it'd be good if it didn't go up.

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
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 great, found a few more things, but after that we're good to merge I think.

src/platform/web/ui/css/themes/element/theme.css Outdated Show resolved Hide resolved
@@ -65,7 +72,7 @@ the layout viewport up without resizing it when the keyboard shows */
.middle .close-middle { display: none; }
/* mobile layout */
@media screen and (max-width: 800px) {
.SessionView:not(.middle-shown) {
.SessionView:not(.middle-shown, .right-shown) {
Copy link
Contributor

Choose a reason for hiding this comment

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

selector lists in :not are not supported in IE apparently. Can you write this out?

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>
@@ -183,6 +189,7 @@ export class RoomGridViewModel extends ViewModel {

import {createNavigation} from "../navigation/index.js";
import {ObservableValue} from "../../observable/ObservableValue.js";
import { Segment } from "../navigation/Navigation.js";
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: only the imports needed for the tests should be below here, the others up at the top. You can also avoid the import by doing this.navigation.segment(...) fwiw.

@@ -72,7 +72,7 @@ the layout viewport up without resizing it when the keyboard shows */
.middle .close-middle { display: none; }
/* mobile layout */
@media screen and (max-width: 800px) {
.SessionView:not(.middle-shown, .right-shown) {
.SessionView:not(.middle-shown) {
Copy link
Contributor

Choose a reason for hiding this comment

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

is the .right-shown not needed then in here?

MidhunSureshR and others added 4 commits June 24, 2021 13:48
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
- This will stop the code from throwing when opening /details on
  UnknownRoomView.

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
@bwindels bwindels merged commit 80fff87 into element-hq:master Jun 24, 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