Skip to content

feat(link previews): link previews implementation rendering and generation (WPB-26861)#5039

Open
yamilmedina wants to merge 23 commits into
developfrom
feat/preview/featureflagpreviews
Open

feat(link previews): link previews implementation rendering and generation (WPB-26861)#5039
yamilmedina wants to merge 23 commits into
developfrom
feat/preview/featureflagpreviews

Conversation

@yamilmedina

@yamilmedina yamilmedina commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

https://wearezeta.atlassian.net/browse/WPB-26861


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

This adds the implementation from ui side for link previews

  • Considers build config
  • User preferences
  • UI generation display of link previews on the sender side
  • UI rendering if the client sends a link preview
  • Security and logic concerns in kalium

Needs release

Testing

Test Coverage (Optional)

  • I have added automated test to this contribution

Attachments (Optional)

Screen_recording_20260708_171840.webm

PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@yamilmedina yamilmedina self-assigned this Jul 8, 2026
@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 54.73684% with 43 lines in your changes missing coverage. Please review.
✅ Project coverage is 49.45%. Comparing base (ba5c450) to head (0c2ac29).

⚠️ Current head 0c2ac29 differs from pull request most recent head b43a291

Please upload reports for the commit b43a291 to get more accurate results.

Files with missing lines Patch % Lines
.../conversations/sendmessage/SendMessageViewModel.kt 70.68% 5 Missing and 12 partials ⚠️
.../home/settings/privacy/PrivacySettingsViewModel.kt 30.76% 9 Missing ⚠️
...e/android/ui/home/conversations/model/UIMessage.kt 30.00% 4 Missing and 3 partials ⚠️
...android/ui/home/messagecomposer/LinkPreviewCard.kt 0.00% 5 Missing ⚠️
.../conversations/ConversationCoreViewModelFactory.kt 0.00% 4 Missing ⚠️
...in/kotlin/com/wire/android/mapper/MessageMapper.kt 50.00% 0 Missing and 1 partial ⚠️

❌ Your patch check has failed because the patch coverage (54.73%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5039      +/-   ##
===========================================
- Coverage    49.52%   49.45%   -0.08%     
===========================================
  Files          651      653       +2     
  Lines        23458    23567     +109     
  Branches      3602     3629      +27     
===========================================
+ Hits         11617    11654      +37     
- Misses       10767    10824      +57     
- Partials      1074     1089      +15     
Files with missing lines Coverage Δ
...ndroid/ui/home/conversations/model/MessageTypes.kt 14.28% <ø> (ø)
...oid/ui/home/messagecomposer/model/MessageBundle.kt 79.06% <100.00%> (+0.49%) ⬆️
...d/ui/home/settings/privacy/PrivacySettingsState.kt 100.00% <100.00%> (ø)
...in/kotlin/com/wire/android/mapper/MessageMapper.kt 61.81% <50.00%> (-0.57%) ⬇️
.../conversations/ConversationCoreViewModelFactory.kt 0.00% <0.00%> (ø)
...android/ui/home/messagecomposer/LinkPreviewCard.kt 0.00% <0.00%> (ø)
...e/android/ui/home/conversations/model/UIMessage.kt 41.07% <30.00%> (-0.22%) ⬇️
.../home/settings/privacy/PrivacySettingsViewModel.kt 46.91% <30.76%> (-3.09%) ⬇️
.../conversations/sendmessage/SendMessageViewModel.kt 75.70% <70.68%> (-1.29%) ⬇️

... and 7 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ba5c450...b43a291. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yamilmedina yamilmedina changed the title feat(link-previews): link previews implementation (WPB-26861) feat(link previews): link previews implementation rendering and generation (WPB-26861) Jul 9, 2026
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant