-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Conversation
@lfbrock asked @lisakycho to work on this without a ticket |
Thanks @jwilander, @esethna we had some customers requesting this one after the image thumbnail changes were shipped, would you be able to help out with reviewing the UX for it when you have a chance? |
4275718
to
3e5ba6c
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.
Thanks Lisa! A few comments:
- I think all image attachments should be expanded by default after they post (currently they are following the account setting for "Default appearance of image link previews"). Then after post they can follow the /collapse /expand.
- Looks like the button to collapse/expand isn't working in some cases:
@esethna Do you mind letting me know the cases that didn't work for you? Thanks! |
@lisakycho having trouble identifying the exact repro, but I can repro occasionally if:
|
@lisakycho let me know if you are still having trouble reproing and we can try to narrow it down further |
@esethna sorry, i was super busy finishing final exams, i will work on this soon! |
3e5ba6c
to
5228315
Compare
@esethna, I'm having some problem reproing it. Do you mind helping me narrow it down? Also what did you want to do with the ticket if we can't repro it? |
That's strange, I can repro quite consistently by pasting an image from the clipboard, posting and trying to click the arrows. @lindalumitchell if you would have a chance to try this PR and let us know if you can identify any issues with the collapse/expand arrows using the mouse? |
b2084e9
to
3706f35
Compare
Hey @esethna, I pushed a new version of the code where all uploaded images are expanded by default. I’ll keep testing to see if I can find cases where the collapse button does not work. |
|
Spinmint test server created at: http:https://i-03863fdacc82e0252.spinmint.com Test Admin Account: Username: Test User Account: Username: Instance ID: i-03863fdacc82e0252 |
Spinmint test server destroyed |
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.
@lisakycho nice work solving that issue! Looks great. Moving to dev review.
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.
Thanks @lisakycho! Just a few comments.
}; | ||
|
||
static defaultProps = { | ||
fileInfo: {}, | ||
previewEnabled: false, |
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.
Is this necessary?
<a | ||
key='toggle' | ||
className='post__embed-visibility' | ||
data-expanded={this.props.isEmbedVisible} |
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.
Is data-expanded
needed?
settings. Clean code for collapsing uploaded images. Collapse icon is on the same line as image name. Image uploaded can be collapsed using icon.
… image is loaded.
2f1b36b
to
4bd11ef
Compare
Hey, @saturninoabril! Made the changes you requested! Please let me know if there is anything else! |
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, thanks!
Summary
Added a feature to allow the image uploaded to be collapsed using an icon and using /collapse command
Ticket Link
N/A
Checklist
[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]
make check-style
to check for style errors (required for all pull requests)Screenshots
Left: Image is collapsed