Agnostic media modal
- Allows media modal to display more than just activity entities. Now can take objects (image/video/blog) too, so it can be used for Pro
- Display comment attachments in media modal
#1822
ClosesTESTING:
To get to the testing site: click the 'view app' button on this MR page. If there isn't one, click the 4th icon on the pipeline (the row of primarily green checkmarks. The 4th one should be 'review:'). From the dropdown that appears, select 'review:start'
Step 1: Do a bunch of media-related stuff with a test user account
- Make some posts that have image and video attachments (videos might not work if Mark hasn't enabled them in the staging environment yet, so you might not be able to test videos)
- In the comment sections of those posts, add comments that have image and video attachments
- Some posts/comments should be accompanied with text titles/descriptions, others should just be a single media attachment without any words
- Remind one of the posts from the newsfeed
- Remind one of the posts from its media page
- Make a group and make an image/video comment in group chat
Step 2: Try to break it
- Go through your posts on a desktop and make sure they open the modal when you click on them
- Make sure the modal opens when you click on image/video comments from:
- The comments section of a post in your newsfeed
- The comments section of an open modal
- The comments section of a media page
- The comments section of a group chat
- Any other kind of comments section that isn't listed here
- Click the action buttons (wire/thumbs/remind)
- Do anything that isn't included in this list that I haven't thought of
- Do everything in this 'try to break it' section in a variety of browsers (chrome/brave/firefox/safari)
- If you have access to a tablet, try that out too
0/1 thread resolved
added MR::Awaiting Review Product::Media Squad::Blue Type::Feature scoped labels
changed title from WIP: Feat/media modal service 1822 to WIP: Agnostic media modal
changed the description
unmarked as a Work In Progress
- Reporter
hey, whats the link to test this?
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
changed the description
- Last updated by Olivia Madrid
249 this.stageWidth = this.mediaWidth; 250 this.modalWidth = this.stageWidth + this.contentWidth; 251 252 if (this.isLoading) { 253 this.isLoaded(); 254 } 255 256 return; 257 } 258 211 259 this.setHeightsAsTallAsPossible(); 212 260 213 261 // After heights are set, check that scaled width isn't too wide or narrow 214 262 this.maxStageWidth = Math.max( 215 window.innerWidth - this.contentWidth - this.padding * 2, 263 window.innerWidth - this.contentWidth + this.padding * 2, - Owner
Looks like this should be a minus?
changed this line in version 6 of the diff
changed the description 5 times within 7 minutes
changed the description
approved this merge request