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

Update "External storages" to current file list layout #7658

Merged

Conversation

danxuliu
Copy link
Member

@danxuliu danxuliu commented Jan 2, 2018

When the checkbox was moved to where the favourite icon was shown before the layout of the file list was modified. The first column is no longer the file name, so neither the thumbnail nor the name link were found. Due to this the thumbnail was not set to the appropriate icon, and the dummy event handler was not removed from the name link, so clicks on the name were basically ignored.

The layout change also caused the checkbox to not be removed on the External storages file list; as the header has no checkbox column but the body rows do the file list looks broken. However, in this case the proper fix is to set _allowSelection: false in the file list object instead of explicitly removing the checkbox (it should have been done that way even before the layout change).

Fixes (theoretically; please test ;-) ) #7388 and #7437

When testing this please note that marking an external storage as a favourite and other actions do not work as expected in the External storage file list (although they do in All files). That is a different issue unrelated to the layout and it will be fixed in another pull request.

When the checkbox was moved to where the favourite icon was shown before
the layout of the file list was modified. The first column is no longer
the file name, so neither the thumbnail nor the name link were found.
Due to this the thumbnail was not set to the appropriate icon, and the
dummy event handler was not removed from the name link, so clicks on the
name were basically ignored. Now the selectors are based on the
".filename" CSS class instead of relying on the column position.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
When the checkbox was moved to where the favourite icon was shown before
the layout of the file list was modified. The checkbox is no longer a
descendant of the ".filename" element, so it is no longer removed by the
"External storages" file list.

However, even before the checkbox was moved, explicitly removing it was
not the best approach, as file list rows could still be selected using
"Ctrl/Shift+click". This did not provide much value, as the selection
header has no actions; it simply states the number of selected elements.
The proper way to disable the selection is by setting "_allowSelection"
to false in the file list instead.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

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

Works again here 🚀

Copy link
Member

@MorrisJobke MorrisJobke left a comment

Choose a reason for hiding this comment

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

Tested and works now 👍

@MorrisJobke MorrisJobke added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jan 2, 2018
@MorrisJobke MorrisJobke merged commit 7be9b38 into master Jan 2, 2018
@MorrisJobke MorrisJobke deleted the update-external-storages-to-current-file-list-layout branch January 2, 2018 23:37
@codecov
Copy link

codecov bot commented Jan 2, 2018

Codecov Report

Merging #7658 into master will increase coverage by 0.06%.
The diff coverage is 0%.

@@             Coverage Diff              @@
##             master    #7658      +/-   ##
============================================
+ Coverage     51.17%   51.23%   +0.06%     
- Complexity    24886    24927      +41     
============================================
  Files          1602     1602              
  Lines         94752    94889     +137     
  Branches       1368     1371       +3     
============================================
+ Hits          48486    48616     +130     
- Misses        46266    46273       +7
Impacted Files Coverage Δ Complexity Δ
apps/files_external/js/mountsfilelist.js 87.03% <ø> (-0.24%) 0 <0> (ø)
apps/files_external/js/statusmanager.js 1.81% <0%> (ø) 0 <0> (ø) ⬇️
apps/user_ldap/lib/LDAP.php 15.57% <0%> (-1.1%) 57% <0%> (+6%)
core/templates/login.php 0% <0%> (ø) 0% <0%> (ø) ⬇️
apps/dav/composer/composer/autoload_static.php 0% <0%> (ø) 2% <0%> (+1%) ⬆️
apps/files_sharing/js/public.js 49% <0%> (+0.25%) 0% <0%> (ø) ⬇️
core/js/js.js 65.88% <0%> (+2.33%) 0% <0%> (ø) ⬇️
lib/private/App/AppStore/Fetcher/Fetcher.php 94.04% <0%> (+2.52%) 21% <0%> (+1%) ⬆️
core/Controller/LoginController.php 84.02% <0%> (+6.16%) 39% <0%> (+1%) ⬆️
lib/private/Template/SCSSCacher.php 76.21% <0%> (+6.37%) 68% <0%> (+32%) ⬆️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish bug feature: external storage high regression
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants