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

Update BSK with AI Chat deeplink feature flag #3786

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Conversation

Bunn
Copy link
Contributor

@Bunn Bunn commented Jan 10, 2025

Task/Issue URL: https://app.asana.com/0/1204167627774280/1209108545833453/f

Description:
Update BSK with AI Chat deeplink feature flag

Steps to test this PR:

  1. This was already tested on Duck.ai deeplink #3775, the change is the feature flag that's being used. Instead of the core .aichat feature flag, we changed to a subfeature specific just for deeplink
  2. If you want to validate, check the instructions from the PR above, you can also use the config files bellow to validate it against live config files

aichat enabled, deeplink disabled -> http://jsonblob.com/api/1327200110144315392
aichat enabled, deeplink enabled -> http://jsonblob.com/api/1327200251714658304

@Bunn Bunn requested a review from afterxleep January 10, 2025 09:13
@@ -53,7 +53,7 @@ final class TabURLInterceptorDefault: TabURLInterceptor {
]

func allowsNavigatingTo(url: URL) -> Bool {
if url.isDuckAIURL {
if featureFlagger.isFeatureOn(.aiChatDeepLink), url.isDuckAIURL {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added extra check to prevent this flow in case the FF is off.

Bunn added a commit to duckduckgo/BrowserServicesKit that referenced this pull request Jan 10, 2025
**Required**:

Task/Issue URL:
https://app.asana.com/0/1204167627774280/1209108545833453/f
iOS PR: duckduckgo/iOS#3786
macOS PR: duckduckgo/macos-browser#3720
What kind of version bump will this require?: Minor

**Optional**:

Tech Design URL:
CC:

**Description**:
Add deeplink feature flag for AI Chat
@Bunn Bunn closed this Jan 10, 2025
@Bunn Bunn force-pushed the bunn/aichat/deeplink-ff branch from 3439d92 to bac8c86 Compare January 10, 2025 14:57
@Bunn Bunn reopened this Jan 10, 2025
@Bunn Bunn merged commit 482dc58 into main Jan 10, 2025
20 checks passed
@Bunn Bunn deleted the bunn/aichat/deeplink-ff branch January 10, 2025 16:16
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.

2 participants