Repository navigation
fix(LinkPreviewList): take the preview thumbnail from image_url or thumb_url - #3392
MartinCupela wants to merge 1 commit into
Conversation
β¦umb_url LinkPreviewCard used title_link, the page URL, as the image source. It now uses image_url, then thumb_url, the same order as the sent message's Card. A preview with neither shows no thumbnail. Refs REACT-1298
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Size Change: -18 B (0%) Total Size: 975 kB π¦ View Changed
βΉοΈ View Unchanged
|
Codecov Reportβ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3392 +/- ##
=========================================
Coverage 89.00% 89.00%
=========================================
Files 575 599 +24
Lines 17339 18512 +1173
Branches 5294 5759 +465
=========================================
+ Hits 15432 16476 +1044
- Misses 1907 2036 +129 β View full report in Codecov by Harness. π New features to boost your workflow:
|
π― Goal
Fixes REACT-1298. The link preview card in the composer used
title_link, the page's URL, as its image. The browser then tried to load a web page as an image.π Implementation details
LinkPreviewCardtakes its thumbnail fromimage_url, thenthumb_url. That is the same order the sent message'sCarduses. A preview with neither shows no thumbnail.LinkPreviewList.test.tsxcover all three cases. Each fails on the old code.π¨ UI Changes
A preview whose page has an image shows that image. Before, it showed a broken image. A preview with no image now shows no thumbnail.
Summary by CodeRabbit