-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feedback form: attachment pager #21121
Conversation
Generated by 🚫 Danger |
📲 You can test the changes from this Pull Request in WordPress by scanning the QR code below to install the corresponding build.
|
📲 You can test the changes from this Pull Request in Jetpack by scanning the QR code below to install the corresponding build.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## trunk #21121 +/- ##
==========================================
+ Coverage 40.56% 40.57% +0.01%
==========================================
Files 1535 1535
Lines 70529 70505 -24
Branches 11660 11659 -1
==========================================
Hits 28607 28607
+ Misses 39337 39313 -24
Partials 2585 2585 ☔ View full report in Codecov by Sentry. |
…m/wordpress-mobile/WordPress-Android into issue/21105-feedback-image-pager
Found 1 violations: The PR caused some dependency changes (expand to see details)
+\--- io.coil-kt:coil-video:2.4.0
+ +--- androidx.core:core-ktx:1.9.0 -> 1.13.0 (*)
+ +--- io.coil-kt:coil-base:2.4.0 (*)
+ \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.21 -> 1.9.10 (*)
Please review and act accordingly
|
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.
WordPress/src/main/java/org/wordpress/android/ui/compose/components/MediaUriPager.kt
Outdated
Show resolved
Hide resolved
@dcalhoun This may be due to a bug I just found. When I selected "Browse" and chose a file from Google Drive, it failed to create the temp file used for the preview. This is fixed now. |
Quality Gate passedIssues Measures |
Fixes #21124
This PR adds a reusable media pager to the feedback form which displays a preview of the attachments. I also fixed some issues determining the correct file extension for selected media that was causing upload to fail, as well as added better error handling for failed requests.
To test:
Note that I added a new dependency:
io.coil-kt:coil-video
. I try to avoid new dependencies, but since we already use Coil for images I felt okay with adding another Coil dependency (specifically for video thumbnails).attach.mp4