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

Table view doesn't show modified files in list #286

Closed
3 tasks done
albanyacademy opened this issue Jun 4, 2019 · 10 comments
Closed
3 tasks done

Table view doesn't show modified files in list #286

albanyacademy opened this issue Jun 4, 2019 · 10 comments

Comments

@albanyacademy
Copy link

albanyacademy commented Jun 4, 2019

Latest SS version.

Table view:

image

Tile view:
image

Missing that orange circle on table view indicating modified/draft files.

Pulls request

(Merge in this order)

@newleeland
Copy link

Potential design

List

When sorting by status:

  • Default sort order: Folders, Draft, Modified, Published.
  • Sorted: Folders, Published, Modified, Draft.

@newleeland newleeland removed their assignment Aug 22, 2019
@maxime-rainville maxime-rainville self-assigned this Aug 28, 2019
@maxime-rainville
Copy link
Contributor

@newleeland @clarkepaul Do you mind if we make the column unsortable? Sorting by status is not something Versioned support out of the box, it could be tricky to implement. If you want it, it probably needs to be a separate card.

@albanyacademy
Copy link
Author

albanyacademy commented Aug 29, 2019 via email

@maxime-rainville maxime-rainville removed their assignment Aug 29, 2019
@clarkepaul
Copy link

We could add a filter for status at a later stage so fine that it isn't sortable here. In the UI it shows quite clearly which columns are sortable and not with arrows e.g. size is not sortable for some reason.
image

@newleeland with them not being sortable, which way do you prefer? (icon or text).

@maxime-rainville
Copy link
Contributor

I've implemented it as a column. Here's what it looks like https://youtu.be/i96_f7JvzOs

Is our collective wisdom that sorting by size should be possible?

@clarkepaul
Copy link

@maxime-rainville if its easy to add, yes please.

@newleeland
Copy link

I think that table view is good as it more obvious! bummer we can't do sort for this story. I can see issues with us having it in the image as a dot here:

  • Dot will cover alot of the image as image is smaller
  • Dot harder to see on image as a lot of detail would be cramped together
  • Tricky to position do in the same spot of images as aspect ratios vary

@maxime-rainville
Copy link
Contributor

@clarkepaul Just had a look, we don't actually tracked the size of files in the DB. We read it from the physical file each time we need to display it.

This makes it impractical to sort by size. I'll create a separate issue for storing the File size in the DB to make sorting by size easier.

@maxime-rainville
Copy link
Contributor

I created to track the file size sorting silverstripe/silverstripe-asset-admin#996

@maxime-rainville
Copy link
Contributor

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

No branches or pull requests

7 participants