flarum / issue-archive

0 stars 0 forks source link

Revamp mobile UI #348

Open tobyzerner opened 8 years ago

tobyzerner commented 8 years ago

I've been thinking about this for a while... Flarum's mobile UI can be a little annoying sometimes:

The solution? A tab bar.

Google have just come around to this way of thinking too. Really, hamburger menus suck as a primary means of navigation.

Here's what I propose:

mobile

(Don't mind the out-of-date discussion list styles! I based this mockup on some old mockup files I had lying around :P)

The four tabs are inspired by Facebook's mobile web interface:

Additionally, discussion list sort-by and "mark all as read" would go into a dropdown menu.

The tab bar would be the same on every page, stuck to the top when scrolling down, with the current tab (if any) highlighted. When viewing a discussion, there would be an additional sticky bar below the tab bar with the reply button and the post index/count.

Technically speaking, we can probably make this work with (more or less) the same component structure/markup as the desktop UI uses currently:

Desktop Mobile
Header Tab bar
Forum logo Home tab
Primary header links (hidden)
Search box Search tab, linking to a mobile-only page
Notifications dropdown Notifications tab, linking to a mobile-only page
(hidden) More tab, linking to a mobile-only page

Any thoughts?

luceos commented 8 years ago

What's the difference between the tripple dot next to all discussions and the menu in the tab? I find that confusing.

For the rest it looks really good.

tobyzerner commented 8 years ago

@Luceos The hamburger menu tab is a global site menu - it shows a page with the forum title/logo, the user menu, and any other links found in the desktop header. The ellipsis next to all discussions is the controls that you usually see above the discussion list (sort by latest, mark all as read).

We could make it a cog icon instead of an ellipsis? That might make more sense.

luceos commented 8 years ago

We could make it a cog icon instead of an ellipsis

That would probably make more sense. Hamburger vs tripple dots don't differ that much in their meaning, at least not to me.

dcsjapan commented 8 years ago

Really, hamburger menus suck as a primary means of navigation.

I agree ... the only time that works is for a site with something that you want visitors to really focus on, such as artwork surrounded by a lot of white space.

I like this layout, with the same reservation that @Luceos expressed about the ellipsis. It works when it appears next to a conversation title (in which case it has a different meaning altogether), but in this context I'm not sure what to expect when I click it. It would be better to avoid it, due to the fact that it's being used with another meaning in the desktop layout.

I'm not sure about the cog either ... to me, that says "settings" such as notification preferences and such. Again, this could be confusing; another type of icon might be better:

There are probably some other possibilities worth considering. But please take this with a grain of salt; I don't use mobile apps enough to have good instincts where their design is concerned.

That said, I really like the tabs across the top. It's slick enough that people may stop asking if you'll ever do a Flarum mobile app. :smiley:

franzliedke commented 8 years ago

Well, "more" could also be the simple text.

I like it. But shouldn't this menu bar at the bottom, where it's easier to reach with the thumb?

dcsjapan commented 8 years ago

shouldn't this menu bar at the bottom, where it's easier to reach with the thumb?

See, that never occurred to me. But it's an interesting idea, not only for the ergonomics, but also because the non-alignment of the right- and leftmost tab icons with the icons below looks a bit awkward. Moving the tabs to the bottom would alleviate that as well.

Is it common to put tabs on the bottom in mobile apps? It does seem a sensible thing to do.

moutonnoireu commented 8 years ago

Is it common to put tabs on the bottom in mobile apps? It does seem a sensible thing to do.

That's a very insteresting thought, it always bothered me that people kept thinking that a mobile usage should be the same as a desktop usage. That's just wrong, you need to think in terms of usability before all. And, putting a menu at the top of the screen when the mobile's screen are being much and much bigger is keeping this wrong idea of "same thing across all devices", no, stop beating the dead horse, he's tired of it, now.

The funny thing is that 3 day ago, google started to encourage to put the menu in the bottom of the screen, where the thing should have been all that time, damn iOS guideline, eh.

So, i'm in favor of putting the menu at the bottom of the screen or making it swypable and it's the best case, both.

We could make it a cog icon instead of an ellipsis?

Cog = settings, can't do that.

tobyzerner commented 8 years ago

Ellipsis/cog button

OK, I think it's pretty clear that putting the sort/mark as read controls under a menu isn't going to work. How about this alternative:

mobile2

Tab bar at the bottom

In an ideal world, absolutely!

Unfortunately we don't live in an ideal world, but rather a world where Safari on iOS reveals its toolbar when you tap on the bottom of the viewport. A second tap is required to interact with an element on the page.

There is no workaround for this, so we simply can't have the tab bar on the bottom – it must stay on the top. Presumably this is the reason why Facebook have their tab bar on the top of the mobile web app too, because on their mobile native app, the tabs are moved to the bottom.

dcsjapan commented 8 years ago

How about this alternative:

That looks very nice! Making the All Discussions button bigger seems like a good idea.

That button will use the tag color when a tag is selected, right? How about coloring the New Discussion icon in Flarum orange, to match the appearance of the button in the desktop layout?

meetdilip commented 8 years ago

Can I ask for a wider " Start Discussion " button in mobile UI ? Something like in screen shot below

start discussion

luceos commented 8 years ago

The mark all read link is very risky. What if you tap on it by accident? I'm not too sure about having them right under the all discussions. Fat fingers and links 😁

franzliedke commented 7 years ago

For future reference: we need to revisit the discoverability of the sorting dropdown, once this is implemented (as explained by Toby in https://github.com/flarum/flarum-ext-english/pull/94#issuecomment-278279422).

ardacebi commented 6 years ago

[This issue needs the mobile tag]

gurjyot commented 5 years ago

Guys any update on this issue? Since nowadays 80% web traffic is from mobiles, thus is update would make a lot of sense. Right now the mobile users are not having the best time on Flarum due to that hidden search and hidden logo.

ekici23 commented 5 years ago

The mobile interface also requires this kind of update

askvortsov1 commented 4 years ago

Is this something that's remotely in progress? If not, I might be interested in working on it.

franzliedke commented 4 years ago

We don't have immediate plans to tackle this, no. You may, of course, send PRs. The smaller, the more iterative, the better. :wink:

But really, if you want to have the most impact in moving Flarum towards stable, your best bet is helping out with the extender API (#1891) - from what I've seen, you seem to know your way around PHP. (That said, we value any contributions - and you can feel free to tackle whatever is most interesting to you. However, our roadmap influences how much attention we can give to community contributions.)

askvortsov1 commented 4 years ago

Noted. I'm fairly new to this project, and have a bad habit of wanting to jump into absolutely everything :)

shawny43 commented 3 years ago

Maybe we needs to get the menu at bottom for one handed operations.

askvortsov1 commented 3 years ago

I did some research and thinking today on this, prompted by https://discuss.flarum.org/d/26283-short-surveyfeedback-from-first-time-users/5. A few immediate observations (all of this is purely about mobile):

Additionally, a few thoughts on the above UI proposal:

meetdilip commented 3 years ago

Not everyone is buying a big-screen phone. But whatever be screen size, the old Windows XP taught us a lot. Flarum can by default or by opt-in add a " Start Button ". As suggested before there will be issues with different screen size while choosing the local of the Start Button. When placed on left-bottom-corner, it will be a bit hard on right-hand users with a large screen.

I think a button which can expand to give options as described above will be a useful one

Flarum Mobile UI 2

tolgaaaltas commented 3 years ago

Not everyone is buying a big-screen phone. But whatever be screen size, the old Windows XP taught us a lot. Flarum can by default or by opt-in add a " Start Button ". As suggested before there will be issues with different screen size while choosing the local of the Start Button. When placed on left-bottom-corner, it will be a bit hard on right-hand users with a large screen.

I think a button which can expand to give options as described above will be a useful one

Flarum Mobile UI 2

It's looks like Office Mobile's bottom bar. I think it's looking good but i'm not a bottom bar fan on web sites. Most of mobile browser has a bottom navigation bar, when you browsing in a page they are hiding on interface. When they hiding on interface, sticky bottom bar moving without animation and it feels website as lagly.

zerosonesfun commented 3 years ago

At first I saw @askvortsov1’s comments and I was against a bottom nav bar. I’ve personally had small issues with these on my iPhone. Largely due to this black bar you’ll see in the following screenshot.

iOS does this, and other phones/browsers could do similar things in the future. And so, anything at the bottom could be a risk.

But, I like bottom navigations/options.

You could at least put the post counter at the bottom. And anytime something like All Discussions with arrows shows, it could be at the bottom, making way for a logo visible at the top.

That’s my biggest request. Let the site name or logo be visible at the top.

A possible option for those against anything at the bottom is something like the following. There’s always a logo and always a hamburger menu. Then other things below that.

.....................LOGO...................🍔 —————————————————- All Discussions.............⏳ ♻️ ☑️

Although, I was just in the Twitter app and no logo is shown. Because, you know you’re in the Twitter app. I go back and forth about whether or not a logo/site name should be visible at all times or not.

zerosonesfun commented 3 years ago

I like this. Notice how tall the bottom menu is. This is necessary due to iPhone’s black gesture bar.

zerosonesfun commented 3 years ago

Scratch dev.to as the example. I was just reading the news and realized that Google News is a better example. It has the user profile and search icon. Plus, an interesting idea... grid menu (maybe for tags or something?)

askvortsov1 commented 3 years ago

I wanted to add a few thoughts to https://github.com/flarum/core/issues/867#issuecomment-785483209

I've been thinking a bit about general mobile layout. On a phone screen, we can have: 1. A top bar 2. The page content (which depends on the page, so let's not talk about it here) 3. A bottom bar 4. Floating bubbles / chat heads 5. The hamburger nav menu I don't think (4) would be appropriate for Flarum's minimalistic approach. However, I think we should discuss how we could take advantage of the other features. A few thoughts: - A bottom bar could be dedicated to controls that the user would interact with often. This could include the "actions" dropdown on discussion/user pages, the "new post / reply" button, search, maybe hamburger nav?) - The top bar could include information elements (logo/current page controls) and elements that the user rarely interacts with (notifications, profile dropdown) - Anything that doesn't fit into these could go to the hamburger menu
luceos commented 3 years ago

@askvortsov1 I like that proposal. Would the dropdown allow vertical scrolling it would solve some issues with (future) extensions demanding an entry in discussion controls or on other pages.

askvortsov1 commented 3 years ago

Would the dropdown allow vertical scrolling it would solve some issues with (future) extensions demanding an entry in discussion controls or on other pages.

I don't see why not, I don't think we should limit ourselves to the vertical space immediately on the screen.

davwheat commented 3 years ago

A bottom bar could [...] include the "actions" dropdown on discussion/user pages, the "new post / reply" button, search, maybe hamburger nav?)

I don't like the idea of new post/reply being on the bottom nav alongside other navigation options. Bottom navs, in mobile apps, are used for navigation, not for taking actions.

Using something like a Floating Action Button is more appropriate, similar to the example(s) here: https://material.io/components/app-bars-bottom#behavior

I'm a fairly big fan of inset FABs. I haven't looked into how they can be implemented in CSS, but I'd assume it'd be with clip paths, or similar.

askvortsov1 commented 3 years ago

Using something like a Floating Action Button is more appropriate

I would be alright with this. If we centralize the controls for all (or most) actions in one place consistently across pages, but separately from nav, that would make things really clear to users.

On a somewhat tangential note, we should consider using some form of extender-based system to register / manage these entries. I'm not sure that just pulling elements with relevant CSS classes like we do now for the buttons and top nav is the best approach.

davwheat commented 3 years ago

Don't we use item lists for that? Or do you mean some easier way for admins to edit the list of controls?