-
Notifications
You must be signed in to change notification settings - Fork 31
Remove email text field from Support form #2095
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
base: main
Are you sure you want to change the base?
Conversation
private var editor: some View { | ||
if #available(iOS 16.0, *) { | ||
TextEditor(text: text) | ||
.scrollContentBackground(.hidden) | ||
.background(Color.clear) | ||
.padding(.horizontal, 12) | ||
} else { | ||
TextEditor(text: text) | ||
.padding(.horizontal, 12) | ||
.background(Color.clear) | ||
.onAppear { UITextView.appearance().backgroundColor = .clear } | ||
.onDisappear { UITextView.appearance().backgroundColor = nil } | ||
} |
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.
Borrowed this fix from ViewExtension.hideScrollContentBackground()
|
||
if let url { | ||
NSWorkspace.shared.open(url) | ||
Application.appDelegate.windowControllersManager.show(url: url, source: .ui, newTab: true) |
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.
Nicer way to open the URL in a new tab
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.
Pull Request Overview
This PR removes the email text field from the unified feedback form across both macOS and iOS platforms, replacing it with a simple support link. The goal is to simplify the feedback form by eliminating the optional email field while still providing users with a way to contact support if needed.
Key Changes
- Removed email field UI components and validation logic
- Replaced email field with a support link that opens the DuckDuckGo subscription support page
- Removed all email-related API submission logic since feedback is now anonymous
- Updated test cases to reflect the removal of email functionality
Reviewed Changes
Copilot reviewed 15 out of 15 changed files in this pull request and generated 2 comments.
Show a summary per file
File | Description |
---|---|
macOS/DuckDuckGo/UnifiedFeedbackForm/UnifiedFeedbackFormViewModel.swift |
Removed email properties, API submission logic, and added support link functionality |
macOS/DuckDuckGo/UnifiedFeedbackForm/UnifiedFeedbackFormView.swift |
Replaced email field UI with support link component |
macOS/DuckDuckGo/UnifiedFeedbackForm/UnifiedFeedbackFormViewController.swift |
Removed API service dependency from view model initialization |
iOS/DuckDuckGo/Subscription/Feedback/UnifiedFeedbackFormViewModel.swift |
Mirror of macOS changes - removed email handling and API submission |
iOS/DuckDuckGo/Subscription/Feedback/UnifiedFeedbackRootView.swift |
Replaced email field with support link in iOS UI |
Various test files | Updated test cases to remove email-related assertions and API mocking |
Localization files | Added support link text and marked email-related strings as stale |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
macOS/DuckDuckGo/UnifiedFeedbackForm/UnifiedFeedbackFormViewModel.swift
Outdated
Show resolved
Hide resolved
…del.swift Fine Co-authored-by: Copilot <[email protected]>
🌍 Smartling Translation Job CreatedJob ID: Next:
|
❌ Smartling Approval FailedJob ID: Next steps: |
⏳ Smartling Job StatusJob ID: |
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.
Overall looks great! Tested on iOS, iPadOS in both regular and windowed mode, and macOS. A couple notes:
- The iOS/iPadOS implementation won't open support tab in the browser if the browser isn't the default (instead opening in Safari)
- The macOS implementation opens the support link in a new tab, but doesn't dismiss the feedback modal, which feels a little strange (iOS does dismiss the modal)
No blockers otherwise though and the implementation looks good on iOS 26, 18, and 17. I haven't been able to test older iOS versions as I'm having issues downloading those SDKs.
This PR has been inactive for more than 7 days and will be automatically closed 7 days from now. |
✅ Smartling Job StatusJob ID: 🔗 View in Smartling Dashboard Next: Download translations with: |
Task/Issue URL: https://app.asana.com/1/137249556945/task/1211485803691789?focus=true
Tech Design URL:
CC:
Description
Testing Steps
Impact and Risks
Low
What could go wrong?
Note
Removes email input and direct API submission from the unified feedback forms on iOS/macOS, adds a contact-support link, and updates UI, localizations, docs, and tests accordingly.
userEmail
, email UI, validation, and direct API submission (dropNetworking/APIService
deps) fromUnifiedFeedbackFormViewModel
and views; enable submit when text is present.contactSupportClick
) openinghttps://duckduckgo.com/subscription-support
; wire into iOS/macOS views.TextField
; improve iOSTextEditor
background handling; macOS opens FAQ/support via app window manager.ppro.feedback-form.support.text
.MockAPIService { ... }
style; minor Net Protection tests updated.Networking/README.md
mock example to closure-basedMockAPIService
.Written by Cursor Bugbot for commit 805d826. This will update automatically on new commits. Configure here.