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

feat: added feedback form links #3487

Merged
merged 8 commits into from
Jan 14, 2023

Conversation

Omegaviv
Copy link
Contributor

Add a feedback form in case the user says (s)he doesn't like the app #3419

Screenshot

@Omegaviv Omegaviv requested a review from a team as a code owner December 28, 2022 17:21
@github-actions github-actions bot added the 👥 User management Account login, signup, signout label Dec 28, 2022
@Omegaviv
Copy link
Contributor Author

Omegaviv commented Dec 28, 2022

I was thinking to put all the links into a constant file, or should it same?

@codecov-commenter
Copy link

codecov-commenter commented Dec 28, 2022

Codecov Report

Merging #3487 (157673d) into develop (8c2dbc0) will increase coverage by 0.00%.
The diff coverage is 0.00%.

@@           Coverage Diff            @@
##           develop    #3487   +/-   ##
========================================
  Coverage    11.08%   11.08%           
========================================
  Files          263      264    +1     
  Lines        13089    13086    -3     
========================================
  Hits          1451     1451           
+ Misses       11638    11635    -3     
Impacted Files Coverage Δ
...s/smooth_app/lib/helpers/user_feedback_helper.dart 0.00% <0.00%> (ø)
...pp/lib/pages/preferences/user_preferences_faq.dart 7.22% <0.00%> (-0.28%) ⬇️
...ooth_app/lib/pages/user_management/login_page.dart 49.10% <0.00%> (+3.54%) ⬆️

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

@Omegaviv
Copy link
Contributor Author

@M123-dev any update on this?

@VaiTon
Copy link
Member

VaiTon commented Dec 31, 2022

I was thinking to put all the links into a constant file, or should it same?

I would too. Maybe extracting the function that generates the url and then calling it where needed would be the best solution.

@Omegaviv
Copy link
Contributor Author

Omegaviv commented Jan 1, 2023

yes that sounds like a good idea

@M123-dev
Copy link
Member

M123-dev commented Jan 2, 2023

Yes sounds good. For other links we have put them in the translation files because the link was translated completely true. For this I'm also a fan of just storing them in the code

Comment on lines 60 to 75
static String getFeedbackFormLink() {
final String languageCode = ProductQuery.getLanguage().code;
if (languageCode == 'en') {
return 'https://forms.gle/AuNZG6fXyAPqN5tL7';
} else if (languageCode == 'de') {
return 'https://forms.gle/vCurhD2Y3ewS1YPv5';
} else if (languageCode == 'es') {
return 'https://forms.gle/CSMmuzR8i4LJBjbM9';
} else if (languageCode == 'fr') {
return 'https://forms.gle/cTR4wqGmW7pGUiaBA';
} else if (languageCode == 'it') {
return 'https://forms.gle/9HcCLFznym1ByQgB6';
} else {
return 'https://forms.gle/AuNZG6fXyAPqN5tL7';
}
}
Copy link
Member

Choose a reason for hiding this comment

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

Heyy @Omegaviv these changes look good, could we only move the getFeedbackFormLink method, currently it's in the haptic feedback helper, though this is only meant for vibrations not for "real" feedback.

You could create a new UserFeedbackHelper clas in a new lib/helpers/user_feedback_helper.dart file

Copy link

@adilwahla adilwahla 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

@VaiTon VaiTon requested a review from M123-dev January 14, 2023 13:37
@M123-dev
Copy link
Member

There were some import problems due to changes on the master branch, fixes them

Copy link
Member

@M123-dev M123-dev 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, thanks @Omegaviv

@M123-dev M123-dev merged commit c607be9 into openfoodfacts:develop Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👥 User management Account login, signup, signout
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants