PM-34544: bug: Handle large attachments in preview#6757
Conversation
Bitwarden Claude Code ReviewOverall Assessment: APPROVE This PR adds handling for large attachments (>10MB) in the preview screen. Large files now display a "too large to preview" error with an illustration instead of attempting to load, and a confirmation dialog is shown before downloading. The navigation API was simplified by passing a Code Review DetailsNo findings. The changes are well-structured, follow established codebase patterns (UDF, route-based navigation, sealed dialog states), and include comprehensive test coverage for the new behavior. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #6757 +/- ##
==========================================
- Coverage 85.85% 85.60% -0.26%
==========================================
Files 846 821 -25
Lines 59082 58248 -834
Branches 8517 8512 -5
==========================================
- Hits 50725 49861 -864
- Misses 5405 5436 +31
+ Partials 2952 2951 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
New Issues (128)Checkmarx found the following issues in this Pull Request
Fixed Issues (1)Great job! The following issues were fixed in this Pull Request
|
fe6a617 to
09e6c03
Compare
09e6c03 to
01655ac
Compare


🎟️ Tracking
PM-34544
📔 Objective
This PR updates the way we handle image attachments that are larger than 10 MB for preview.
📸 Screenshots
Screen_recording_20260402_125513.mp4