-
Notifications
You must be signed in to change notification settings - Fork 806
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
Add thumbnails for files in the activity view #4189
Conversation
ed346af
to
855e6bb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool feature. Could you also test it with previews disabled from the server side?
src/gui/tray/ActivityItem.qml
Outdated
width: parent.width * 0.66 | ||
height: parent.height * 0.66 | ||
anchors.centerIn: parent | ||
cache: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make sure that the cache works across restart? Generating a thumbnail is a bit expensive on the server side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eyeballing it, it seems to work across computer restarts but I'm not sure, is there some way to tell if QML is loading the image from cache/if the server is receiving a GET request for the thumbnail?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@CarlSchwan are those previews cached on server side ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the cache is not kept after a restart
I always see that we download the preview images
e13ce96
to
10a2b60
Compare
d8748a1
to
0b9a680
Compare
Yeah, really great! Only a small enhancement: Could you give the image thumbnails 3px border radius so it's the same as on server? |
@claucambra this PR needs a rebase to solve the existing conflicts |
src/gui/tray/ActivityItem.qml
Outdated
width: parent.width * 0.66 | ||
height: parent.height * 0.66 | ||
anchors.centerIn: parent | ||
cache: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the cache is not kept after a restart
I always see that we download the preview images
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge branch 'master' into feature/activity_thumbnails
Please rebase, not merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good stuff @claucambra, just 2 more things:
- The thumbnails seem a bit small, could you increase the size of them so that their left edge lines up with the left edge of the search field (of course they should still be centered, so they will also extend to the right as well as top and bottom)
- Maybe to make it look nice, the mimetype icons also have to be made larger a bit if possible – or is that their native pixel size from the SVG so they don’t get blurry?
- (In the screenshot below, the "Tasks" icon for example looks good, and the thumbnails too small)
- All text should left-align with the username in the header, so the "All synced" status and Search field text needs to move a bit right, and the text of the entries a bit to the left
@jancborchardt is there anything else I should address in this PR? :) |
@claucambra can you rebase it on top of master ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few comments and we should be good to go
sorry for the delay
a8b4aa6
to
74e2379
Compare
988ae6d
to
25545cf
Compare
25545cf
to
a885d71
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small extra comments
8d2543f
to
3cd784c
Compare
@claucambra can you clean history before approval ? |
3cd784c
to
592e1aa
Compare
Yup, squashed |
@jancborchardt Are there any other changes that need to be made before approval? :) |
/rebase |
Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
592e1aa
to
65f2bad
Compare
AppImage file: Nextcloud-PR-4189-65f2bada3e3095eb88c2e9b494ff8b87a72b5227-x86_64.AppImage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks all good! :)
SonarCloud Quality Gate failed. |
This PR adds thumbnails for file changes in the activity list.
Partially addresses #3666