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

Toggle app navigation not only on mobile, but on desktop as well #8620

Merged
merged 25 commits into from
Jun 5, 2014

Conversation

jancborchardt
Copy link
Member

Several reasons for this:

  • We now have a sidebar in Files, so there’s two sidebars taking space (most other apps have a sidebar already).
  • The app navigation is arguably not needed all the time.
  • If you have many apps installed, scrolling on the app navigation is clunky and gets ugly fast (too thin)
  • If you don’t have many apps installed, it looks like a waste of space (like for the Enterprise Edition)
  • We give apps the whole width, which alleviates a lot of issues we had in the past with CSS and sizing

@karlitschek
Copy link
Contributor

very nice 👍
Now the only thing that is missing is the dedicated apps menu on top.

@jancborchardt
Copy link
Member Author

Ok, I added the app name next to the logo. We probably need to tweak the look. Like this, big like the height of the »d« of ownCloud it looks ok. Better than small when it fits the x-height of the ownCloud logo – especially because it then is too low down.
I wanted to look into using a proper webfont with ownCloud (like Source Sans Pro), so we can control the font weights better. Maybe this is the time.

(Regarding the change that on desktop, clicking the ownCloud logo should go to »home« (Files), I would need help from @PVince81 – probably putting that media query back in the JS.)
BUT I really think it would be better if clicking on both logo and app name would trigger the menu – otherwise there will be confusion about which triggers what. Also, »Files« is always on the very top left, so very easy to reach.

@jancborchardt
Copy link
Member Author

(Fixed an overflow issue with the navigation I found while testing on iPod touch – should be fixed for iPhone/iPod now.)

@jancborchardt
Copy link
Member Author

Please review @owncloud/designers :)

@jancborchardt
Copy link
Member Author

@PVince81 I know what’s wrong with the tests – they expect $navigation.is(':visible')) to be false. But it’s not false, because it’s slid up and not hidden. But I don’t know how to fix them – can you help?

@PVince81
Copy link
Contributor

If the "slide up" navigation has a specific recognizable class you could try changing it to $navigation.hasClass('slideup-class') instead.
I don't like is(':visible') in general because sometimes unit tests use invisible elements when testing, so that will always fail. I recommend always using the hidden class, or in your case another name.

@PVince81
Copy link
Contributor

Hmmm, maybe you can simply remove the obsolete unit tests.
If I understand well, the menu is now always inside the logo, so no need to check for toggling any more.

@jancborchardt
Copy link
Member Author

@PVince81 can you maybe do this – you created the tests, right? I don’t really see which ones are obsolete and which ones are still needed.

@PVince81
Copy link
Contributor

I've removed the obsolete code, tests should pass now.

position: relative;
color: #fff;
font-size: 26px;
opacity: .4;
Copy link
Contributor

Choose a reason for hiding this comment

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

Drop that opacity (unused)

@MorrisJobke
Copy link
Contributor

I added OC.menuSpeed which controls the animation speed for the menu toggle. I would vote for 100 rather than 200. If you want to test just type into the JS console OC.menuSpeed=WHATEVER and the speed got applied.

@MorrisJobke
Copy link
Contributor

@jancborchardt We don't need the push item anymore, didn't we?

@karlitschek
Copy link
Contributor

Hmm. The apps name looks a bit strange. Perhaps a bit too big. Of course I have no better idea for a better design. :-)

@MorrisJobke
Copy link
Contributor

@karlitschek The font doesn't fit ... maybe we use the ownCloud font for this?

@MorrisJobke
Copy link
Contributor

Now:
owncloud-header
Open Sans Condensed:
owncloud-header-opensanscondensed

See this as a first try: Maybe we can find a better solution.

@schiessle
Copy link
Contributor

@MorrisJobke It looks already much better!

But personally I'm not sure if it is possible to make it look really good with the two strings next to each other. I wonder if it is really needed if the logo doesn't link to a different location than the app name (and I agree with @jancborchardt that this could be confusing). Maybe we should just drop the idea and don't display the app name at all? Or a different idea: remove the "ownCloud" string from the logo and just show the cloud together with the app name? This could look nice too.

@jbtbnl
Copy link
Contributor

jbtbnl commented May 19, 2014

I like the suggestion by @schiesbn to hide "ownCloud" and only display the ownCloud icon. It would be quite similar to my mock-ups in #8159 (comment).

Additionally we could show "ownCloud" instead of the app name when the menu is opened (with a subtle fade-in).

@jancborchardt
Copy link
Member Author

@MorrisJobke I will prepare a pull request to use Source Sans Pro as the general font for the ownCloud interface – wanted to do that anyway. I’ll fix the appname there as we a) shouldn’t introduce a font just for that part and b) it’s a separate topic.

@schiesbn I’m also fully ok with not displaying the app name at all. Maybe that will make the menu harder to discover though.

@jbtbnl naah – we won’t use images as text. ;)

@schiesbn @jbtbnl we shouldn’t change the icon which is displayed: It will require an additional logo for themes and existing ones will break.

@jancborchardt
Copy link
Member Author

Reduced the font size on the appname in the header, looks much better now.

Please review @karlitschek @owncloud/designers

#navigation {
top: 45px;
bottom: initial;
width: 265px;
Copy link
Contributor

Choose a reason for hiding this comment

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

3 * 80px + 2 * 5px = 250px, not 265px

Copy link
Member Author

Choose a reason for hiding this comment

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

It was like that before, but that broke it on mobile and showed only 2 columns. Remember there will be a scrollbar shown as well. :)

(Ref: 15e9081 )

Copy link
Contributor

Choose a reason for hiding this comment

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

It still looks bad though ;)

Copy link
Member Author

Choose a reason for hiding this comment

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

Seriously? Doesn’t look so bad to me. Slight spacing issue, but not jarring.

Let’s do it like this for now, we can check more sophisticated fixed in follow-up pull requests.

@jbtbnl
Copy link
Contributor

jbtbnl commented May 28, 2014

👍

@jancborchardt
Copy link
Member Author

@karlitschek what do you say to the improved app name display?

@karlitschek
Copy link
Contributor

Looks much better! What do you think about making a click on the ownCloud logo a "home" action that always goes to / on files ?

@jancborchardt
Copy link
Member Author

I still think that making a difference between clicking on the ownCloud logo and the appname part will be highly confusing. It will be even worse on mobile because of the little space we have. Files will always be in the top left so it’s quick to reach.

@karlitschek
Copy link
Contributor

O.K. give me a few more minutes to test and discuss!

@ghost
Copy link

ghost commented Jun 4, 2014

💣 Test Failed. 💣
Refer to this link for build results: https://ci.owncloud.org/job/pull-request-analyser/5321/

@ghost
Copy link

ghost commented Jun 4, 2014

💣 Test Failed. 💣
Refer to this link for build results: https://ci.owncloud.org/job/pull-request-analyser/5326/

@nickvergessen
Copy link
Contributor

If you install an app, it previously was added to the navigation with js.
Now you need to reload the page, before the app is listed

@MorrisJobke
Copy link
Contributor

@nickvergessen Your issue is fixed with the latest commit

👍 from my side for the other changes

@jancborchardt
Copy link
Member Author

Ok, let’s wait for Jenkins and then merge.

I’m fine with the »Clicking logo goes to Files« for now. We can still see how it fares and what feedback we get. That decision is not a blocker for merging though. :)

@jancborchardt jancborchardt mentioned this pull request Jun 4, 2014
7 tasks
@PVince81
Copy link
Contributor

PVince81 commented Jun 4, 2014

Looks good 👍

@ghost
Copy link

ghost commented Jun 4, 2014

💣 Test Failed. 💣
Refer to this link for build results: https://ci.owncloud.org/job/pull-request-analyser/5341/

@scrutinizer-notifier
Copy link

A new inspection was created.

@MorrisJobke
Copy link
Contributor

@PVince81 We have to look at the other failing test. I have no clue why it fails. The second failing test is fixed in the above commit.

@scrutinizer-notifier
Copy link

The inspection completed: 4 new issues

@ghost
Copy link

ghost commented Jun 5, 2014

💣 Test Failed. 💣
Refer to this link for build results: https://ci.owncloud.org/job/pull-request-analyser/5357/

@scrutinizer-notifier
Copy link

A new inspection was created.

@ghost
Copy link

ghost commented Jun 5, 2014

💣 Test Failed. 💣
Refer to this link for build results: https://ci.owncloud.org/job/pull-request-analyser/5366/

@scrutinizer-notifier
Copy link

A new inspection was created.

@DeepDiver1975
Copy link
Member

failing unit test is unrelated -> merge

DeepDiver1975 added a commit that referenced this pull request Jun 5, 2014
Toggle app navigation not only on mobile, but on desktop as well
@DeepDiver1975 DeepDiver1975 merged commit 1c20c72 into master Jun 5, 2014
@DeepDiver1975 DeepDiver1975 deleted the design-navigation-two branch June 5, 2014 08:53
@jancborchardt
Copy link
Member Author

YEAH! 🚀 now we can continue with the mobile stuff: #8159

Thanks to everyone

@lock lock bot locked as resolved and limited conversation to collaborators Aug 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet