Skip to content

Feat/elo - #23

Open
deadlyjack wants to merge 13 commits into
mainfrom
feat/elo
Open

deadlyjack wants to merge 13 commits into
mainfrom
feat/elo

Conversation

@deadlyjack

Copy link
Copy Markdown
Member

No description provided.

- Require TCF Purpose 1 consent plus consent or legitimate interest for
  Purposes 2 and 7 before ads, on both the Android file fallback and
  host snapshots that include purpose bits. Reject non-string purpose
  values; a missing or empty LI value pauses ads instead of denying.
- Parse IABTCF_PurposeLegitimateInterests from the UMP preferences file.
- Make opt-in ownership private behind offerOptIn()/releaseOptIn(), notify
  other tabs when it changes, and release it when the owner chat's last
  tab closes.
- Extend the Android E2E to assert LI bits and exercise Manage options
  choices, with resilient startup discovery.
- Stop shipping contributing.md in plugin.zip; CI checks the packaged
  readme and changelog names from plugin.json.
- Update contributing.md and simplify the 0.6.0 changelog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B2v4xwEEmZKnfL7LU8JFaH
Comment thread src/suggestions/elo.ts
}

override async trackImpression(ad: AdCreative) {
if (!(await this.canTrack(ad))) return false;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If canTrack fails here for a temporary reason (the two preference-file reads differ while UMP is flushing, the 3s consent timeout, or a getState error), this returns false and the impression is never retried while the card stays on screen. mountEloAd only re-arms its one-second dwell timer when the card crosses the 50% visibility threshold, so nothing calls trackImpression again until the card leaves view or the app is backgrounded. budget.viewed is skipped too.

Consider retrying after a short delay while the view's signal is still live, or remounting the view on the next successful consent read.

reconnecting = false;
}
};
setMode("NORMAL", reconnect);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

When the user's keyboardMode is already "NORMAL", this still switches the mode and runs reconnect, which blurs and refocuses the editor on every composer focus. The keyboard can flicker and the selection is torn down and restored for no change in input type.

Return early (leaving restoreMode unset) when mode === "NORMAL".

This branch has not been deployed

No deployments
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