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: Useless swipe to refresh with an empty product #4608

Merged

Conversation

g123k
Copy link
Contributor

@g123k g123k commented Mar 25, 2022

If a product doesn't exist, the app shows a dedicated screen to create it.
On this screen, a swipe to refresh is available: but to refresh what?

That's why this PR disables the swipe to refresh

@g123k g123k requested a review from a team as a code owner March 25, 2022 09:37
@teolemon
Copy link
Member

teolemon commented Mar 25, 2022

This view normally holds search results that you can refresh @g123k
EDIT: I read too quickly, LGTM

@teolemon
Copy link
Member

Ah the other case could be server issues.

@teolemon
Copy link
Member

Actually, could we jump directly to the product addition screen ?

@g123k g123k linked an issue Mar 25, 2022 that may be closed by this pull request
@sonarcloud
Copy link

sonarcloud bot commented Mar 25, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@g123k
Copy link
Contributor Author

g123k commented Mar 25, 2022

You're right, it would be better to open the edition screen instead.
I change that

@g123k
Copy link
Contributor Author

g123k commented Mar 25, 2022

Mmmm actually I think we should stay on the current implementation (= this PR is still relevant).

How it works right now:

  • If this is a valid barcode -> create a new product
  • If this is an invalid barcode (the case here) -> error message asking to take a picture -> create a new product

@teolemon teolemon merged commit 4befba4 into openfoodfacts:develop Mar 25, 2022
@teolemon
Copy link
Member

Merged as a result

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.

Product not found: infinite loader
2 participants