Frontend: Proof of concept for image preview #2266

Open
Elscrux wants to merge 2 commits from Elscrux/vikunja:feature/image-preview into main
Contributor

Adds a proof of concept preview for all images inside the task itself (not related to the cover image feature). Basically it is very convenient to show all images in a task when you click on it, rather than having to individually open images when you search for a specific one or if you want to get a quick overview.
This implementation shows how it could work, but is probably not the best way to do it. Please let me know what you think!

Adds a proof of concept preview for all images inside the task itself (not related to the cover image feature). Basically it is very convenient to show all images in a task when you click on it, rather than having to individually open images when you search for a specific one or if you want to get a quick overview. This implementation shows how it could work, but is probably not the best way to do it. Please let me know what you think!
Elscrux added 1 commit 2024-04-10 22:52:09 +00:00
continuous-integration/drone/pr Build is passing Details
4da881aa99
Proof of concept for image preview
Member

Hi Elscrux!

Thank you for creating a PR!

I've deployed the frontend changes of this PR on a preview environment under this URL: https://2266-feature-image-preview--vikunja-frontend-preview.netlify.app

You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somewhere. The easiest to use is https://try.vikunja.io/.

This preview does not contain any changes made to the api, only the frontend.

Have a nice day!

Beep boop, I'm a bot.

Hi Elscrux! Thank you for creating a PR! I've deployed the frontend changes of this PR on a preview environment under this URL: https://2266-feature-image-preview--vikunja-frontend-preview.netlify.app You can use this url to view the changes live and test them out. You will need to manually connect this to an api running somewhere. The easiest to use is https://try.vikunja.io/. This preview does not contain any changes made to the api, only the frontend. Have a nice day! > Beep boop, I'm a bot.
Owner

Needs some styling, but I like the idea!

Needs some styling, but I like the idea!
konrad reviewed 2024-04-11 15:40:04 +00:00
@ -67,6 +67,12 @@
{{ a.file.mime }}
</span>
</p>
<img
Owner

I would extract this out into its own component, which takes the attachment, fetches the image and shows it next to the attachment. We could extend this further to show some kind of icon for pdfs or other file types later on.

I would extract this out into its own component, which takes the attachment, fetches the image and shows it next to the attachment. We could extend this further to show some kind of icon for pdfs or other file types later on.
Author
Contributor

Good point, I did that

Good point, I did that
Owner

It also seems like the preview is not shown when the file is initially uploaded.

It also seems like the preview is not shown when the file is initially uploaded.
Elscrux force-pushed feature/image-preview from 4da881aa99 to be50d3d7b3 2024-04-26 17:05:28 +00:00 Compare
Elscrux changed title from WIP: Frontend: Proof of concept for image preview to Frontend: Proof of concept for image preview 2024-04-26 17:05:54 +00:00
Author
Contributor

@konrad

It also seems like the preview is not shown when the file is initially uploaded.

This should be fixed now.

Needs some styling, but I like the idea!

I styled it in a way so it's displaying like a table. I'm not super used to doing styling so please feel free to touch this up :)

@konrad > It also seems like the preview is not shown when the file is initially uploaded. This should be fixed now. > Needs some styling, but I like the idea! I styled it in a way so it's displaying like a table. I'm not super used to doing styling so please feel free to touch this up :)
Some checks failed
continuous-integration/drone/pr Build is failing
Required
Details
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#2266
No description provided.