Skip to content

Conversation

@rummatee
Copy link
Contributor

This Pull Request intends to solve Issue #7629 .
It adds a button to the file picker next to the breadscrumbs. When clicking on this button it opens a popup that asks for the folders name. After submitting the form, it closes the popup and reloads the file picker's content.
There is one small bug, that I couldn't fix: OC.hideMenus(); prevents the file picker from reacting to keyboard button presses until it is clicked again. So after creating a new folder the enter and escape key will only work again after the user clicked the file picker again.

Please review @MariusBluem @jancborchardt

@jancborchardt
Copy link
Member

Great stuff @rummatee, cool that you work on these important design enhancements! Also cc @nextcloud/designers for review.

There is one small bug, that I couldn't fix: OC.hideMenus(); prevents the file picker from reacting to keyboard button presses until it is clicked again. So after creating a new folder the enter and escape key will only work again after the user clicked the file picker again.

Can anyone from @nextcloud/javascript help here?

@jancborchardt
Copy link
Member

Nice! This seems to work well, only some feedback:

  • When navigating with the keyboard (via tab to switch elements and enter to "click"), pressing enter on the "New folder" button closes the dialog
  • The distance of the button to the end of the breadcrumbs is a bit much. Should be the same as in the Files app
    screenshot from 2018-12-20 22-55-33
    move copy dialog
  • When choosing a new folder name and pressing enter to confirm, the folder shows up twice or more initially (of course only exists once):
    screenshot from 2018-12-20 22-55-17
  • When you create a new folder, and then another one, the input placeholder should be reset to "New folder"

What do you think @rummatee? :)

@rummatee
Copy link
Contributor Author

thanks for your feedback.

* The distance of the button to the end of the breadcrumbs is a bit much. Should be the same as in the Files app

I tried to change as little of the design of the file picker as possible. This also means that the button is slightly bigger than in the files app, as it uses the same height as the breadcrumbs. However I agree that a more uniform look would be better.

* When choosing a new folder name and pressing enter to confirm, the folder shows up twice or more initially (of course only exists once)

I totally missed this in my testing. Thank you for pointing it out.

* When you create a new folder, and then another one, the input placeholder should be reset to "New folder"

Yes, good point.

* When navigating with the keyboard (via tab to switch elements and enter to "click"), pressing enter on the "New folder" button closes the dialog

The keyboard control keeps being the trickiest part of this feature. Maybe opening the folder name prompt on pressing enter will also be difficult.

@jancborchardt
Copy link
Member

Also @MariusBluem @fermulator for review since you were active in related issues. :)

@kesselb
Copy link
Contributor

kesselb commented Dec 22, 2018

image

Button looks a bit off to me (Chromium 70+). Maybe related to your last changes because @jancborchardt screenshots looks ok or a local issue on my side.

Copy link
Contributor

@kesselb kesselb left a comment

Choose a reason for hiding this comment

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

Good stuff 👍 Please align the button 😎

@rummatee
Copy link
Contributor Author

Button looks a bit off to me (Chromium 70+). Maybe related to your last changes because @jancborchardt screenshots looks ok or a local issue on my side.

It seems to be related to Chrome. In Firefox it showed the position correctly. However my last commit should fix the position for both chrome and Firefox

@jancborchardt
Copy link
Member

@nextcloud/designers can we have another review? :)

@violoncelloCH
Copy link
Member

violoncelloCH commented Dec 30, 2018

@rummatee Could this be rebased on current master? My dev setup instance complains that downgrading to 15.0.5 is unsupported, so I don't know how I should test this actually.

or how do you test this @jancborchardt @danielkesselberg ?

@kesselb
Copy link
Contributor

kesselb commented Dec 30, 2018

I merged master into this branch locally.

@violoncelloCH
Copy link
Member

violoncelloCH commented Dec 30, 2018

thank you @danielkesselberg! this finally worked...

Copy link
Member

@violoncelloCH violoncelloCH left a comment

Choose a reason for hiding this comment

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

otherwise it looks and works great!

@violoncelloCH
Copy link
Member

Also, if you create a folder in this "choose target folder" dialog, you normally want to place the file inside of this folder. So wouldn't it make sense to directly enter into the just created folder? What do you think @jancborchardt ?

@jancborchardt
Copy link
Member

jancborchardt commented Jan 1, 2019

So wouldn't it make sense to directly enter into the just created folder?

@violoncelloCH Yeah, that would be a nice addition! :) Good suggestion!

@rummatee do you want to add that to this pull request, or want to do a separate one for that?

@kesselb
Copy link
Contributor

kesselb commented Jan 1, 2019

Some tests are failing. Could you rebase this branch onto master?

@rummatee
Copy link
Contributor Author

rummatee commented Jan 1, 2019

Some tests are failing. Could you rebase this branch onto master?

Did I do it correctly? I see that one test is still failing.

@kesselb
Copy link
Contributor

kesselb commented Jan 1, 2019

Some tests are failing. Could you rebase this branch onto master?

Did I do it correctly? I see that one test is still failing.

Yes 👍 Litmus-Test is failing on master as well.

Copy link
Member

@violoncelloCH violoncelloCH left a comment

Choose a reason for hiding this comment

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

perfect from my view otherwise! 👍

@kesselb
Copy link
Contributor

kesselb commented Jan 5, 2019

Another rebase should fix the litmus test. Not sure about the other tests. Restarted the build just in case.

@kesselb
Copy link
Contributor

kesselb commented Jan 5, 2019

A different test fails now. I don't see how these changes are related to the failing test.

@rummatee
Copy link
Contributor Author

rummatee commented Jan 5, 2019

I rebased again and again a different test is failing. I also can't see any relation to my changes.

@rummatee rummatee force-pushed the issue7629 branch 2 times, most recently from 1f15e4c to fea3104 Compare January 8, 2019 10:42
@jancborchardt
Copy link
Member

@MorrisJobke @rullzer could you check what it is about the failing tests? 👨‍🎤

@MorrisJobke
Copy link
Member

@MorrisJobke @rullzer could you check what it is about the failing tests? 👨‍🎤

Those are all hiccups of our test suite 🙈 We should maybe get rid of them, because they are a major annoyance. cc @juliushaertl @danxuliu @rullzer

@jancborchardt
Copy link
Member

@MorrisJobke ok, so in light of the reviews it would be fine to merge this? :)

@jancborchardt
Copy link
Member

@rummatee please avoid force-pushing by the way as it makes it difficult to see which changes occured since the last time someone checked. :)

@jancborchardt
Copy link
Member

Ah ok, now the test runs through, that’s why you force-pushed. Sorry and nevermind! :)

@jancborchardt jancborchardt merged commit 707cb68 into nextcloud:master Jan 9, 2019
@welcome
Copy link

welcome bot commented Jan 9, 2019

Thanks for your first pull request and welcome to the community! Feel free to keep them coming! If you are looking for issues to tackle then have a look at this selection: https://github.com/nextcloud/server/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22
Most developers hang out on IRC. So join #nextcloud-dev on Freenode for a chat!

@rummatee
Copy link
Contributor Author

rummatee commented Jan 9, 2019

@rummatee please avoid force-pushing by the way as it makes it difficult to see which changes occured since the last time someone checked. :)

I'm supposed to rebase the pull request, right? Is there a different way to do it?

@MorrisJobke
Copy link
Member

I'm supposed to rebase the pull request, right? Is there a different way to do it?

Typically if changes are added, then we do fixup commits and then a final rebase with --interactive --autosquash so that they will get squashed into one or multiple commits. That makes it usually easier. In this case if you want to get master stuff in the rebase is still fine IMO.

@MorrisJobke
Copy link
Member

Ah ok, now the test runs through, that’s why you force-pushed. Sorry and nevermind! :)

That's why @jancborchardt also said that ^ 😉

@jancborchardt
Copy link
Member

jancborchardt commented Jan 10, 2019

And @rummatee @danielkesselberg do you know about our next Contributor Week in Stuttgart, March 11–15? Contributors like you can apply for travel/accomodation support, find more info in the blog post at https://nextcloud.com/blog/the-contributor-week-is-over-time-to-plan-for-the-next-one/ 🙂

Would be really cool to have you! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants