Skip to content

Add CPM popup logic - #9446

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

Add CPM popup logic#9446
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 CLIGive Feedback 💬


Note

Medium Risk
New modal can interrupt browsing when the toggle is on, and confirm does not apply preferences yet—worth validating against follow-up logic before wide rollout.

Overview
Adds a Cookie Pop-Up Protection opt-in bottom sheet, gated by a new internal cookiePopUpOptInPrompt remote toggle and shown through the prompts coordinator (CookiePopupOptInEvaluator at priority 6).

The modal is onboarding-styled (translucent activity, slide animations, two selectable options) with copy that switches between protection on vs off based on Autoconsent.isSettingEnabled(). Confirm currently only dismisses the sheet—it does not persist the selected option in this diff.

Also wires prompts-coordinator-api into autoconsent-impl, refreshes the enabled-state header asset to cookie_popups_check_96, and points onboarding’s input-type background at the shared CommonR drawable.

Reviewed by Cursor Bugbot for commit 4230730. 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.

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