-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add feedback and broken site form to android #294
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
Conversation
app/src/main/res/values/strings.xml
Outdated
| <string name="feedbackModalDescription">Anonymously share your feedback to help us improve the DuckDuckGo Privacy Browser</string> | ||
| <string name="feedbackReportBrokenSite">Report a broken site</string> | ||
| <string name="feedbackDomainAdded">Domain Added to Feedback Report</string> | ||
| <string name="feedbackUrlHint">Enter url</string> |
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.
super-picky, but should URL be in uppercase?
brindy
left a comment
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.
Tested it and it worked. Code LGTM - just a couple of minor picky comments :)
| } | ||
|
|
||
| val viewState: MutableLiveData<ViewState> = MutableLiveData() | ||
| private val viewValue: ViewState get() = viewState.value!! |
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.
This is a personal thing, but I tend to group variables with similar access modifiers together, with private nearer to the constructor, if there is one. I don't know if there's a convention for this in Kotlin though?
|
@brindy I made some small final copy and layout changes, feel free to rereview. |
brindy
left a comment
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.
LGTM
Task/Issue URL: https://app.asana.com/0/361428290920652/688515420618259
Tech Design URL: N/A
Description:
Add a native feedback form for general and broken sites feedback.
Note: the UI uses native text fields, I will be validating that with design and expect to do a final pass to polish.
Steps to test this PR:
TEST 1: Broken site:
TEST 2: Broken site validation:
Note: we only do basic "empty" validation here (the same as extensions) as a user may just want to enter text e.g "facebook"
TEST 3: Feedback Message:
Internal references:
Software Engineering Expectations
Technical Design Template