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

fix: 4123 - dedicated widget and page for robotoff question images #4135

Merged
merged 1 commit into from
Jun 13, 2023

Conversation

monsieurtanuki
Copy link
Contributor

What

  • Much smoother hunger games experience: a click on the image gives access to a read-only full page zoomable image.

Screenshot

question page question image page ...with zoom
Screenshot_2023-06-13-18-41-30 Screenshot_2023-06-13-18-41-34 Screenshot_2023-06-13-18-41-55

Part of

Files

New files:

  • question_image_full_page.dart: Zoomable full page of a question image.
  • question_image_thumbnail.dart: Thumbnail of a question image.

Impacted files:

  • product_image_carousel.dart: removed a now unreachable case.
  • question_card.dart: now displays the question image with a new zoomable read-only widget

New files:
* `question_image_full_page.dart`: Zoomable full page of a question image.
* `question_image_thumbnail.dart`: Thumbnail of a question image.

Impacted files:
* `product_image_carousel.dart`: removed a now unreachable case.
* `question_card.dart`: now displays the question image with a new zoomable read-only widget
@codecov-commenter
Copy link

Codecov Report

Merging #4135 (5c34f78) into develop (abab934) will decrease coverage by 0.03%.
The diff coverage is 0.00%.

@@             Coverage Diff             @@
##           develop    #4135      +/-   ##
===========================================
- Coverage    10.88%   10.86%   -0.03%     
===========================================
  Files          273      275       +2     
  Lines        13568    13599      +31     
===========================================
  Hits          1477     1477              
- Misses       12091    12122      +31     
Impacted Files Coverage Δ
...ib/cards/product_cards/product_image_carousel.dart 0.00% <0.00%> (ø)
...ooth_app/lib/pages/hunger_games/question_card.dart 0.00% <0.00%> (ø)
...b/pages/hunger_games/question_image_full_page.dart 0.00% <0.00%> (ø)
...b/pages/hunger_games/question_image_thumbnail.dart 0.00% <0.00%> (ø)

... and 5 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

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.

Looks good feature wise

@monsieurtanuki monsieurtanuki merged commit e1912c8 into openfoodfacts:develop Jun 13, 2023
@monsieurtanuki
Copy link
Contributor Author

Thank you @teolemon for your review and for your lecture at Collège de France!

@g123k
Copy link
Collaborator

g123k commented Jun 13, 2023

I'm a bit too late on this, but the back button on the bottom right is an antipattern, it should also be at the top/left

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

Successfully merging this pull request may close these issues.

4 participants