-
-
Notifications
You must be signed in to change notification settings - Fork 299
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
feat: Fully working lifecycle for the Robotoff question in the Product page #4198
feat: Fully working lifecycle for the Robotoff question in the Product page #4198
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4198 +/- ##
===========================================
- Coverage 10.88% 10.87% -0.02%
===========================================
Files 277 277
Lines 13600 13652 +52
===========================================
+ Hits 1481 1484 +3
- Misses 12119 12168 +49
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Looks good 👍
As noted in #4199, this PR is critical as it fixes the performance issue of an infinite redraw |
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.
Code wise looks good to me, but you mentioned the shimmer to not jump when the question is loaded. What happend when there is no question, then the list jumps, doesn't it
// TODO(jasmeet): Use Material icon or SVG (after consulting UX). | ||
Text( | ||
'🏅 ${appLocalizations.tap_to_answer}', |
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.
Guess we can apply that some time, jasmeet0817 no longer is working on the app
When there is no question, -> the |
Hi everyone,
Currently, when we scroll up/down on the Product page, the Robotoff Widget is reloaded every time.
My PR fixes this with a
KeepAlive
, but as an improvement over #3326, during the loading time, a Shimmer is shown to prevent the List from being offset when the content is ready.Better than words, a video: robotoff_lifecycle.webm
EDIT: I've also changed a little bit the animation of the question page (I know it's meaningless from the product page, but may be used elsewhere) Zoom.webm