Spreed: Mobile View: should open the chat list first

Created on 2 Jul 2019  ·  7Comments  ·  Source: nextcloud/spreed

Is your feature request related to a problem? Please describe.
The default side when opening the chat app on mobile isn't very compelling: I'm not seeing the chats.

Describe the solution you'd like
A clear and concise description of what you want to happen.
I think on mobile view when I open the talk app it should open the chat list first.

Additional context
Add any other context or screenshots about the feature request here.

  1. The default view when opening the chat app:
    20190702_014048

  2. Probably a better default site:
    20190702_014637

1. to develop bug enhancement frontend 🖌️

Most helpful comment

Just a little comment, when you directly load into a conversation it should also hide the left sidebar

All 7 comments

@nextcloud/designers You can test this feature by adding

})(OC, OCA, Marionette, Backbone, _, $);

$(document).ready(function () {
    if ($(window).width() <= 600) {
        $('#app-navigation-toggle').click();
    }
});

at the bottom of _app.js_.

It is a bit hacky, but it is necessary to wait until the snapper is initialized by Nextcloud server (which is done in a jQuery ready handler), and I am not aware of any events that could be listened to for that.

If this behaviour should be added to Talk, which window width should trigger it? Note that when the navigation bar is opened it moves the app contents of Talk to the right, so the _Join a conversation or start a new one_ message is cut with some width sizes which, in my opinion, does not look good for the starting page (that is why I used 600px in that example code instead of the standard 1024px of the mobile breakpoint; at 600px the message is cut too, but most of it is hidden anyway which in my opinion looks better than just cutting the final letters ;-) ).

@danxuliu good one! I’d say let’s always make sure the sidebar shows on views where it wouldn’t be, so 1024. We can always enhance the emptycontent view.

This is quite messed up on my screen on Firefox, Android 10 Samsung a6 NC19.0.1

Screenshot_20200722-005147_Firefox

@rubo77 I think this is doesn't have anything to do with this issue.
Could you please open another issue with that?

@ma12-co something for you :)

@szaimen that's related because that's what you actually see on first load since the rewrite to vue.
Ok, so as discussed, the sidebars behavior on mobile should be:

  • On first load, the conversations list is displayed;
  • A click on a conversation routes to it and automatically closes the left sidebar;
  • The right sidebar is never shown unless toggled;

Just a little comment, when you directly load into a conversation it should also hide the left sidebar

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PVince81 picture PVince81  ·  3Comments

llamallama picture llamallama  ·  4Comments

nickvergessen picture nickvergessen  ·  3Comments

nickvergessen picture nickvergessen  ·  5Comments

FramboisePi picture FramboisePi  ·  3Comments