Image description authoring (rebased) #2427

Closed
xenofem wants to merge 0 commits from gitlab-mr-iid-1160 into develop
Member

Rebased version of #1864 with a couple of syntax/style fixes to make Vue happy. There was some mention of #1864 needing UX enhancement, I'm pretty happy with the current UX and feel like getting this long-overdue feature out there in any form should be the priority, unless there are any glaring usability issues that need fixing. I've got this patch deployed on my personal instance and haven't run into any problems yet.

Rebased version of #1864 with a couple of syntax/style fixes to make Vue happy. There was some mention of #1864 needing UX enhancement, I'm pretty happy with the current UX and feel like getting this long-overdue feature out there in any form should be the priority, unless there are any glaring usability issues that need fixing. I've got this patch deployed on my personal instance and haven't run into any problems yet.
Member

the UI for entering the description is pretty nice imo, but I can't see the description when I mouseover the image I posted

edit: ok it worked on the png I posted but not the gif I posted

edit2: tested again, a gif and a jpg, both are showing their filename instead of the description I wrote, I wonder if that's a BE issue

the UI for entering the description is pretty nice imo, but I can't see the description when I mouseover the image I posted edit: ok it worked on the png I posted but not the gif I posted edit2: tested again, a gif and a jpg, both are showing their filename instead of the description I wrote, I wonder if that's a BE issue
Member

hitting enter when entering description posts, need to prevent that

hitting enter when entering description posts, need to prevent that
Author
Member

Do you think we should make the input element into a multi-line text field, so that problem is sidestepped and also it's easier to write longer descriptions? Or should it stay a single-line field but just suppress that event handler?

Do you think we should make the input element into a multi-line text field, so that problem is sidestepped and also it's easier to write longer descriptions? Or should it stay a single-line field but just suppress that event handler?
Member

single-line is just fine imo, just suppress the event

single-line is just fine imo, just suppress the event
Member

ok @lambadalambda you might be interested, I post where the image descrption is given like this "muumit"

image

but the mouseover shows the filename "moominbowl.jpg"

ok @lambadalambda you might be interested, I post where the image descrption is given like this "muumit" ![image](/attachments/b4c77bf7-31fe-45b1-b959-265df3ce16f5) but the mouseover shows the filename "moominbowl.jpg"
Author
Member

What do you think of this approach, adding a hidden disabled submit button at the top of the form so that the default submit action triggered by hitting Enter is a no-op: https://stackoverflow.com/questions/895171/prevent-users-from-submitting-a-form-by-hitting-enter/51507806#51507806 ? It'll also fix the same bug on the subject input field.

What do you think of this approach, adding a hidden disabled submit button at the top of the form so that the default submit action triggered by hitting Enter is a no-op: https://stackoverflow.com/questions/895171/prevent-users-from-submitting-a-form-by-hitting-enter/51507806#51507806 ? It'll also fix the same bug on the subject input field.
Member

you should just add @keydown.prevent.enter="" to the description input

you should just add @keydown.prevent.enter="" to the description input
Author
Member

Huh, can't reproduce this on backend 2.0.7-stable. PNGs, JPGs, and static GIFs are all showing the descriptions I give them when I mouseover.

Huh, can't reproduce this on backend 2.0.7-stable. PNGs, JPGs, and static GIFs are all showing the descriptions I give them when I mouseover.
Member

this was on dontbulling.me

this was on dontbulling.me
Author
Member

sent you a status with an image description from my instance so we can debug further, try sending me one back?

sent you a status with an image description from my instance so we can debug further, try sending me one back?
Member

ok the UI can get quite awkward sometimes too, I think it needs some attention, I can take a look at it and play around

image

ok the UI can get quite awkward sometimes too, I think it needs some attention, I can take a look at it and play around ![image](/attachments/3d204f9b-dc52-429c-a061-a6c78aa607e9)
189 KiB
Member

I made some minor visual adjustments and got around some code debt by making the upload previews use the attachment component, so you can actually expand the images now

image

I made some minor visual adjustments and got around some code debt by making the upload previews use the attachment component, so you can actually expand the images now ![image](/attachments/03b4c18c-d3fc-4f67-84a4-14bdea40bc37)
374 KiB
Member

hey, that's mildly adequate :DDDD

hey, that's mildly adequate :DDDD
Member

there's still some issues I need to iron out, then I'll push back to this branch, or do new MR, depending on which is easier

there's still some issues I need to iron out, then I'll push back to this branch, or do new MR, depending on which is easier
Member

getting carried away with fixing existing issues with attachments, like the not useful [UNKNOWN] placeholder link, as well as trying to open non-images/videos in modal image

getting carried away with fixing existing issues with attachments, like the not useful [UNKNOWN] placeholder link, as well as trying to open non-images/videos in modal ![image](/attachments/02cc1940-1536-4868-a492-59cff5a57c50)
Member

still need a way for mobile to actually see the descriptions, thinking of making modal always display it under the image, not sure what to do with video

although I don't want to scope creep this particular MR more than that, so maybe do that later

still need a way for mobile to actually see the descriptions, thinking of making modal always display it under the image, not sure what to do with video although I don't want to scope creep this particular MR more than that, so maybe do that later
Member

can confirm that the descriptions work correctly on older version, on shpposter.club it works right, but on dontbulling.me it doesn't.

can confirm that the descriptions work correctly on older version, on shpposter.club it works right, but on dontbulling.me it doesn't.

the unknown -> filename thing is great! I agree with the scope creep though, this already seems useful and is long overdue.

the unknown -> filename thing is great! I agree with the scope creep though, this already seems useful and is long overdue.
Member

(more exactly unknown -> description so people can still trick others to download crazyfrog.mp3.exe

(more exactly unknown -> description so people can still trick others to download crazyfrog.mp3.exe
Member

the unknown -> filename thing is great!

wait i thought filenames were bad???????

image

>the unknown -> filename thing is great! wait i thought filenames were bad??????? ![image](/attachments/3f52ea68-d436-41b8-bf61-dfd581da04c5)
486 KiB
Member

it's description, gives user the ability to change it to whatever, instead of leaking filename

changed the rest of the placeholder style attachments

image

it's description, gives user the ability to change it to whatever, instead of leaking filename changed the rest of the placeholder style attachments ![image](/attachments/dfe59ef8-823c-4304-afd3-7361c6e7f2e6)
Member

OFFTOPIC: will we ever get actual filename support in addition to description?

**OFFTOPIC:** will we ever get actual filename support in addition to description?
Member

some tweaks, + examples of NSFW and no-description image
image

some tweaks, + examples of NSFW and no-description image ![image](/attachments/0a8717b5-b9f0-4fc5-a3aa-a55da7152574)

@hj please stop with the sarcasm, it's not funny to me and actually insulting, which i have told you multiple times.

@hj please stop with the sarcasm, it's not funny to me and actually insulting, which i have told you multiple times.
Member

it wasn't sarcasm, i just want my filenames back

it wasn't sarcasm, i just want my filenames back
Member

looks like I can't push to the remote branch, I guess I'll just make another MR lol

looks like I can't push to the remote branch, I guess I'll just make another MR lol

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 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
pleroma/pleroma-fe!2427
No description provided.