Skip to content

Enhancing Multi-Upload Functionality for Consistent Depiction Categorization #5700

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

Merged

Conversation

vtalos
Copy link
Contributor

@vtalos vtalos commented Apr 22, 2024

Description

Fixes #5633

This pull request enhances the multi-upload functionality to ensure consistent categorization and depiction of media files. The following improvements have been implemented:

-AlertDialog Implementation: An AlertDialog has been added to prompt users uploading multiple media files, emphasizing the importance of assigning the same category to all pictures within the multi-upload. This serves to prevent mislabeling and ensures uniformity in depiction categories across all uploaded media.

-Unified Place Recognition: When a nearby place is detected, instead of querying if a single picture within the multi-upload refers to it, we now inquire whether the entire upload pertains to the identified location. Upon affirmative confirmation, the place attribute is updated for all pictures within the multi-upload.

-Efficient Location Handling: In scenarios where the entire multi-upload is confirmed to reference a specific location, redundant location handling for individual photos is eliminated. Subsequent photos within the same upload retain the same location attribution, optimizing efficiency without compromising accuracy.

-Modularized receiveSharedItems() Method in UploadActivity.java: The receiveSharedItems() method has been modularized to enhance code readability and maintainability.

Tests performed

Tested ProdDebug on Pixel 3 with API level 34

Screenshot

5f02e638-55f4-4a94-88a8-8368404d1fc0

@@ -810,4 +810,6 @@ Upload your first media by tapping on the add button.</string>
<item quantity="one">%d image selected</item>
<item quantity="other">%d images selected</item>
</plurals>
<string name="multiple_files_depiction">Please remember that all images in a multi-upload should belong to the same category/depiction. If the images do not share depictions and categories, please perform several uploads.</string>
<string name="multiple_files_depiction_header">Note about multi-uploads</string>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind adding a "Do not show again" checkbox on that dialog?
Thanks a lot and sorry for the delay! :-)

@nicolas-raoul
Copy link
Member

Also, would it be possible to use singular (instead of plural) when there is only one picture (not a multi-upload)? Thanks! 🙂

Screenshot_20240427-133812.png

@nicolas-raoul
Copy link
Member

Otherwise it is working great, I have been using this branch for a few days with no other issues. :-)

@vtalos vtalos requested a review from nicolas-raoul May 1, 2024 08:55
Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the issues I had mentioned are all solved, great job! :-)
I continue testing for a few days.

Copy link
Member

@nicolas-raoul nicolas-raoul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Working great, thanks! 🙂

@nicolas-raoul nicolas-raoul merged commit c178c5d into commons-app:main May 2, 2024
1 check passed
@karyotakisg karyotakisg deleted the one-category-for-a-multi-upload branch May 4, 2024 19:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Emphasize that depictions/categories apply to all pictures of a multi-upload
3 participants