Skip to content
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

chore: "Take a picture" button now distinguishes "Take a picture" VS "Take a new picture" #5396

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

g123k
Copy link
Collaborator

@g123k g123k commented Jun 17, 2024

Hi everyone,

As explained in #5393, the button to take a picture asks for a new photo, which may be confusing.
Now, there's a distinction between "taking the first photo" and "taking a new photo".

Existing picture:
Screenshot 2024-06-17 at 18 40 13

No picture:
Screenshot 2024-06-17 at 18 39 51

@g123k g123k self-assigned this Jun 17, 2024
@g123k g123k requested a review from a team as a code owner June 17, 2024 16:50
@g123k g123k linked an issue Jun 17, 2024 that may be closed by this pull request
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.

Project coverage is 7.26%. Comparing base (4d9c7fc) to head (e24f4d9).
Report is 200 commits behind head on develop.

Files Patch % Lines
...es/smooth_app/lib/pages/product/edit_ocr_page.dart 0.00% 6 Missing ⚠️
...th_app/lib/pages/product/product_image_viewer.dart 0.00% 6 Missing ⚠️
.../lib/pages/product/product_image_local_button.dart 0.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           develop   #5396      +/-   ##
==========================================
- Coverage     9.54%   7.26%   -2.29%     
==========================================
  Files          325     391      +66     
  Lines        16411   20034    +3623     
==========================================
- Hits          1567    1456     -111     
- Misses       14844   18578    +3734     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@monsieurtanuki monsieurtanuki left a comment

Choose a reason for hiding this comment

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

Hi @g123k!
It would be much much simpler to just rename the unique label as "Take a new picture". Would always work. No bad interpretation possible. Easier to maintain.

Copy link
Member

@teolemon teolemon left a comment

Choose a reason for hiding this comment

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

Thanks @g123k , small merge conflict before merging

@g123k
Copy link
Collaborator Author

g123k commented Jun 19, 2024

Thanks @g123k , small merge conflict before merging

Ok will do.
Do you have an opinion on @monsieurtanuki suggestion?

@teolemon
Copy link
Member

  • I've been slightly bothered by the new picture thing when none exists. Instructions are more easily followed when specific and unambiguous
  • I also want us to encourage photo refresh across off with specific nudges, which is a vital issue to keep the db up to date.

@monsieurtanuki
Copy link
Contributor

I've been slightly bothered by the new picture thing when none exists. Instructions are more easily followed when specific and unambiguous

The less ambiguous is "Take a new picture", in all cases (instead of "take another picture").

  • I also want us to encourage photo refresh across off with specific nudges, which is a vital issue to keep the db up to date.

That would deserve a specific issue.

@teolemon teolemon merged commit 7ee3a26 into openfoodfacts:develop Jun 20, 2024
6 checks passed
@g123k g123k deleted the capture_new_button branch June 20, 2024 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

[Bug ?] When there is no photo, the button ask me for "another" photo
4 participants