feat(companion): add browsing context consent prompt#5841
Open
feat(companion): add browsing context consent prompt#5841
Conversation
Add one-time consent prompt in the companion widget asking whether browsing context can be used for personalized content recommendations. - Add browsingContextEnabled to frontend SettingsFlags type and enum - Add companion_browsing_consent GrowthBook feature flag - Add analytics events: show, accept, decline - Create useCompanionBrowsingConsent hook following useNoAiFeed pattern - Integrate hook into Companion component - Opt-in only: absence of flag = no consent, decline persists dismiss state via flags.prompt without writing false - GrowthBook gated for A/B testing before full rollout Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
showPrompt() modals are not visible inside the companion shadow DOM. Replace with an inline CompanionBrowsingConsentBanner rendered directly in CompanionContent so the consent prompt is visible to users. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…adge Pass loadedSettings and updateSettings to companion SettingsContextProvider so the browsing consent hook can read and write flags. Lift consent hook to Companion component and add a purple notification dot on the toggle icon when the banner is pending (hidden on hover). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
browsingContextEnabledto frontendSettingsFlagstype andSidebarSettingsFlagsenumcompanion_browsing_consentGrowthBook feature flag for A/B testingbrowsing consent prompt show,accept,declineuseCompanionBrowsingConsenthook (followsuseNoAiFeedpattern) that shows a one-timeshowPrompt()modal in the companion widgetCompanioncomponentBasically collect permission for now, collection implemented later if enough users are interested. (API side flag merged already)
Key decisions
browsingContextEnabledflag = no consent; declining does not writefalseflags.prompt.browsing_context_consent_prompt, never re-triggersflagscolumnTest plan
companion_browsing_consentin GrowthBook, open companion on any page, verify prompt appears oncebrowsingContextEnabled: truein settings flagsCloses ENG-1231
Created by Huginn 🐦⬛
Preview domain
https://eng-1231-add-companion-consent-p.preview.app.daily.dev