Skip to content

Combine upload action into the "New" menu - #18630

Merged
jancborchardt merged 4 commits into
masterfrom
files-combineuploadbutton
Sep 7, 2015
Merged

jancborchardt merged 4 commits into
masterfrom
files-combineuploadbutton

Conversation

@PVince81

Copy link
Copy Markdown
Contributor

Combine upload action into the "New" menu.

Also refactored the new menu to be encapsulated in the more portable NewFileMenu JS class.
Moved directory and file creation logic to the FileList class instead of having it floating in file-upload.js.

This is a simplified version of #18589 where the menu stays where it is. We can move it to the sidebar later.

  • TODO: write JS unit tests

@jancborchardt @MorrisJobke please review.
If we agree on the design/placement I'll write the missing unit tests.

@PVince81 PVince81 added this to the 8.2-current milestone Aug 28, 2015
Refactored the new menu to be encapsulated in the NewFileMenu JS class
@PVince81

Copy link
Copy Markdown
Contributor Author

Let me rebase this onto master first so we get the latest styles.

@PVince81
PVince81 force-pushed the files-combineuploadbutton branch from c9194b9 to 59273a8 Compare August 28, 2015 15:28
@PVince81

Copy link
Copy Markdown
Contributor Author

Rebased. (Jenkins will stumble and fall)

@MorrisJobke

Copy link
Copy Markdown
Contributor

bildschirmfoto von 2015-08-28 17-53-25

Text file icon is missing.

@karlitschek

Copy link
Copy Markdown
Contributor

where are we with that? We need this for 8.2

@jancborchardt

Copy link
Copy Markdown
Contributor

Fixed some layout issues.

@PVince81 when I click New file or Folder, the input field does not show right away, but this:
capture du 2015-09-03 00-58-22
As soon as that is fixed, I can do the input field detail positioning.

@PVince81

PVince81 commented Sep 3, 2015

Copy link
Copy Markdown
Contributor Author

Strange, works fine in Chromium but Firefox shows the three dots

@PVince81

PVince81 commented Sep 3, 2015

Copy link
Copy Markdown
Contributor Author

There's a text-overflow: ellipsis on every menu item. For some reason it kicks in in Firefox but not Chromium. I'll disable it for this specific menu.

Last time I checked that all possible translations of "New file" would fit the current width, so it should be fine.

@PVince81

PVince81 commented Sep 3, 2015

Copy link
Copy Markdown
Contributor Author

@jancborchardt I removed the ellipsis, should work now.

I'll take care of unit tests.

- added unit tests for NewFileMenu
- use generateUrl for FileList.createFile and FileList.createDirectory
- added unit tests for FileList.createFile and FileList.createDirectory
@scrutinizer-notifier

Copy link
Copy Markdown

A new inspection was created.

@PVince81

PVince81 commented Sep 3, 2015

Copy link
Copy Markdown
Contributor Author

Unit tests were added.

@jancborchardt when you're done with the design, please set the label to "to review".
Thanks.

@karlitschek

Copy link
Copy Markdown
Contributor

Can we review and merge this? Quite important :-)

@MorrisJobke

Copy link
Copy Markdown
Contributor

Tested and works 👍

@jancborchardt

Copy link
Copy Markdown
Contributor

Nice! :) 👍 any details we can fix in follow-up PRs.

jancborchardt added a commit that referenced this pull request Sep 7, 2015
Combine upload action into the "New" menu
@jancborchardt
jancborchardt merged commit 004de14 into master Sep 7, 2015
@jancborchardt
jancborchardt deleted the files-combineuploadbutton branch September 7, 2015 12:03
@karlitschek

Copy link
Copy Markdown
Contributor

nice!

@jancborchardt jancborchardt mentioned this pull request Sep 15, 2015
2 of 3 tasks
@lock lock Bot locked as resolved and limited conversation to collaborators Aug 10, 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.

5 participants