feat(files): show count and total size of selected files in bottom bar (issue #1683)#1754
feat(files): show count and total size of selected files in bottom bar (issue #1683)#1754ChonkyMonkey wants to merge 5 commits into
Conversation
…r (issue pop-os#1683) Signed-off-by: toni.buch <a.buchholz.1@campus.tu-berlin.de>
|
The PR template is mandatory, please fill it in: https://github.com/pop-os/cosmic-files/blob/master/.github/PULL_REQUEST_TEMPLATE.md |
|
this is actually amazing, I've been missing this feature in cosmic files |
|
I have finally been able to look into this since there were additional considerations with File details context drawer and footers we use in Trash and Networks. The designs are here: #1766 in case you might be interested in working on it. |
|
Yep, I will start adjusting the design. Thanks for your suggestion! |
|
I pushed the new changes! Wasn't able to test it with network folders yet. |
|
Could you post screenshots of the selections with the File details context drawer on, without it, with Settings context drawer open and with the selection inside the Trash folder? |
|
Everything looks good on the screenshots, just a few minor things. I only just realized you edited the initial comment.
The design for File details context drawer when multiple files are selected was pretty intentional. So the difference in the number of details provided is also intentional. It should be obvious the information changes as more files is selected. I am not sure we want to show the type unless all files are the same type. And combined file size doesn't seem to provide a lot of useful information while cluttering the view. Created, modified and accessed would need to be provided as ranges and again, not sure there is much benefit to seeing it. But here is an example of how it might look like: Looks like we're missing the footer with the "Empty" button on the last two screenshots of the Trash folder with File details drawer. One more suggestion, we don't need to always show how many folders are selected unless there are any. If only files are selected we should omit "0 folders selected" from the message. Same goes for files when only folders are selected. |
|
Conflicts must be resolved |
|
@maria-komarova Got it, I will patch the few remaining things and probably push tomorror. |
|
Thank you for making the adjustments.
Do you have a screenshot? Please make sure the conflicts are resolved as @mmstick mentioned since the PR won't get a review until then. |
I can do that, I did it this way so it is consistent with the current details view. But I agree your order makes more sense. |
|
I just noticed the links in the code map where broken and fixed them. |
|
Count and total size works, and look like they conform with everything @maria-komarova requested. I do also have a screenshot of what the footer looks like when the window width is reduced. If this looks alright @maria-komarova I'll approve this. Regression testing passed:ChecklistBasic navigation
File operations
Advanced navigation & view settings
External filesystems
Integrations
|
|
whoops, also I think another PR that just got merged introduced conflicts that will again need to be resolved. |
jackpot51
left a comment
There was a problem hiding this comment.
I believe the code can be cleaned up significantly. Also please document any and all use of LLMs (also known as generative AI) in the creation of this PR.
Thanks for sharing this @jacobktm. It actually needs spacing between standard buttons on the left and two icon buttons on the right. The text below should be centered when footer is that narrow. I believe there was a mockup of this in Figma. |
|
Thank you for your feedback @jackpot51, @maria-komarova and @jacobktm. I tried to address the things you mentioned in a new draft PR. My reasoning was that this had turned into a fairly large rewrite, and I wanted to check whether you agree with the structure before replacing the current implementation in this PR. The cleanup mainly reduces churn in If this direction looks good, I will fold it back into |
|
any updates on this? |
|
I am still waiting for a decision from @jackpot51, @jacobktm or someone on my last post. |










Alright, this is an edit of the original message because the inital design got quite an overhaul.
This PR implements the file size + counter as described in issue #1683 and with additional UI/UX suggestions from #1766.
Key Features
-- the available actions are
Select all,Delete,Open,DuplicateandMove to...Select all,Delete permanently,Restore from trashandMove to...Behaviour Details
Select allbutton changes to aDeselect allbuttonMove to...action from trash will restore the items in the specified directoryImage gallary
A couple of notes:
FileDialogContext, rather than adding a separate dialog/result path for trashed items.I'm not 100% happy with the current details page implementation. When only one item is selected I chose to show the old page to avoid dealing with coming up with a new UI. #1766 unfortunatly omitted the file details display (type, size, created, modified, accessed) in their design, so I couldn't take theirs 1 for 1.
This causes a huge UI shift when selecting 1 item vs selecting multiple, which should be changed at a later stage I guess.