Skip to content

Add CPM popup logic - #9446

Closed
CrisBarreiro wants to merge 2 commits into
feature/cris/cpm-prompt/pixel-triagefrom
feature/cris/cpm-prompt/add-popup
Closed

CrisBarreiro wants to merge 2 commits into
feature/cris/cpm-prompt/pixel-triagefrom
feature/cris/cpm-prompt/add-popup

Conversation

@CrisBarreiro

@CrisBarreiro CrisBarreiro commented Aug 10, 2026 •

Copy link
Copy Markdown
Collaborator

Task/Issue URL:
Tech Design URL (if applicable):
API Proposals URL(s) (if applicable):

Description

Steps to test this PR

Feature 1

  • [ ]
  • [ ]

UI changes

Before After
!(Upload before screenshot) (Upload after screenshot)

Stack created with GitHub Stacks CLI • Give Feedback 💬


Note

Medium Risk
New modal can interrupt browsing when the toggle is on, and confirm does not yet apply cookie-popup settings—product behavior may be incomplete until follow-up logic lands.

Overview
Adds a Cookie Pop-up Protection opt-in flow gated by a new cookiePopUpOptInPrompt remote toggle (default INTERNAL). When enabled, CookiePopupOptInEvaluator registers with the prompts coordinator (ModalEvaluator, priority 6), delays briefly, and launches a translucent bottom-sheet CookiePopupOptInActivity with slide animations.

The sheet uses onboarding-themed UI: two selectable options, copy that switches between protection on vs off variants based on Autoconsent.isSettingEnabled(), and confirm handling that only closes the activity today (no persistence of the selected choice in this diff).

Supporting changes: prompts-coordinator-api dependency; settings header swaps cookie_popups_check_128 for cookie_popups_check_96; onboarding InputType background now references the shared CommonR drawable.

Reviewed by Cursor Bugbot for commit adfd13b. Bugbot is set up for automated code reviews on this repo. Configure here.

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 4230730. Configure here.


fun onConfirmClicked() {
viewModelScope.launch { command.send(Command.Close) }
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Confirm ignores selected option

High Severity

onConfirmClicked only emits Close and never applies the selected choice via autoconsent. The copy offers enabling protection / accepting non-rejectable cookies (MAX) vs leaving things unchanged (KEEP_CURRENT), so Confirm currently discards the choice and leaves settings untouched.


Please tell me if this was useful or not with a 👍 or 👎.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 4230730. Configure here.

applicationContext.startActivity(intent, options)
}

return@withContext ModalEvaluator.EvaluationResult.ModalShown

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Prompt can reappear forever

High Severity

evaluate returns ModalShown whenever cookiePopUpOptInPrompt is enabled, with no local already-shown / dismissed gate. Peer modal evaluators persist eligibility after display. While the toggle stays on, this prompt can resurface after each coordinator cooldown and keep claiming the modal slot.


Please tell me if this was useful or not with a 👍 or 👎.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 4230730. Configure here.

@CrisBarreiro
CrisBarreiro force-pushed the feature/cris/cpm-prompt/add-popup branch from 4230730 to adfd13b Compare August 18, 2026 14: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.

1 participant