-
Notifications
You must be signed in to change notification settings - Fork 423
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
AI Chat browsing menu #3635
AI Chat browsing menu #3635
Conversation
|
# Conflicts: # Core/FeatureFlag.swift
@@ -249,8 +249,9 @@ extension BrowsingMenuViewController: UITableViewDelegate { | |||
|
|||
switch menuEntries[indexPath.row] { | |||
case .regular(_, _, _, _, let action): | |||
dismiss(animated: true) | |||
action() | |||
dismiss(animated: 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.
Having the action called without waiting for the dismissal was causing problems with actions that depended on the view stack, like presenting a ViewController
# Conflicts: # Core/PixelEvent.swift
Task/Issue URL: https://app.asana.com/0/1204167627774280/1208896297203534/f **Description**: Add AI Chat settings UI to enable/disable the feature
LocalPackages/AIChat/Sources/AIChat/Public API/AIChatViewController.swift
Show resolved
Hide resolved
LocalPackages/AIChat/Sources/AIChat/Public API/AIChatViewController.swift
Outdated
Show resolved
Hide resolved
@objc private func closeAIChat() { | ||
chatModel.startCleanupTimer() | ||
dismiss(animated: 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.
One note that is probably not a problem: when this VC is dismissed, it triggers viewDidAppear
in MainViewController
. This causes various things to happen, like m.debug.app-did-show-ui-time-more
firing - I'd want to check with @jaceklyp whether this pollutes the data coming from that pixel, or whether this is not an issue.
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.
Added a few comments, only a couple are actionable though. Overall this looks solid, I've spent a bunch of time bashing on it on both iPhone and iPad, trying to break the lifecycle of it in various ways, no issues found. Once the comments are resolved where needed, I think we can approve this. |
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.
thank you!
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.
* main: Release 7.148.0-2 (#3676) Merge hotfix changes from 7.147.1 (#3674) Add `install` pixel (#3656) AI Chat browsing menu (#3635) Release 7.147.1-0 (#3672) Use actor isolation for `SubscriptionFeatureMappingCache` (#3670) cherry picked - already approved in #3666 fix suggestion scrolling (#3654) Update autoconsent to v12.1.0 (#3650) Malware protection: bump BSK (#3617) Release 7.148.0-1 (#3661) Make a simple state machine to identify incorrect transitions (#3660) support local storage fireproofing (#3612) Make NTP Grid layout adaptive for various screen sizes (#3657) Release 7.148.0-0 (#3659) Bump BSK, add Free Trials Feature Flag (#3655)
Task/Issue URL: https://app.asana.com/0/1204167627774280/1208794395441049/f
Description:
Add AI Chat entry point in the browsing menu
Steps to test this PR:
Testing the new settings page: