Skip to content

No-login trial period#54

Open
DarrenJiaImbue wants to merge 7 commits into
mainfrom
cinxw/anonymous-trial
Open

No-login trial period#54
DarrenJiaImbue wants to merge 7 commits into
mainfrom
cinxw/anonymous-trial

Conversation

@DarrenJiaImbue

Copy link
Copy Markdown
Collaborator

No description provided.

@millanatimbue millanatimbue changed the title Cinxw/anonymous trial No-login trial period Jun 29, 2026
@millanatimbue

Copy link
Copy Markdown
Collaborator

From testing:

  1. Make sure that login actually unlocks the user after they hit the rate limit . Probably need to open a new websocket
  2. Make the grey background in the "you need to login" popup immediately cover the screen, rather than expanding to the edge

Comment thread Bouncer/src/background/index.ts Outdated
case 'skipAuth': {
// "Skip for now" — sign in anonymously so the user can use Bouncer
// without a Google/Apple account.
if (process.env.HAS_IMBUE_BACKEND !== 'true') {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why is this being checked? I don't get why this should make the "skip" button fail

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

if this was an issue it would be handled elsewhere ? so we could just delete

// the limit, prompt every content tab to sign in.
const isIOS = typeof window !== 'undefined'
&& typeof (window as unknown as Record<string, unknown>).__ff_getAppCheckToken === 'function';
if (evalResult.shouldHide && !isIOS && isAnonymousUser()) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Note for the future: we should handle differences in iOS vs Chrome vs Android in a more centralized way

Comment thread Bouncer/src/content/ui.ts
console.log('[Bouncer] Launching Google sign-in...');
const response: { success?: boolean } = await chrome.runtime.sendMessage({ type: 'launchAuth' });
if (response?.success) {
// Real Google sign-in — clears the guest gate permanently.

@millanatimbue millanatimbue Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Note from irl discussion: this doesn't entirely clear the guest gate. To do this you need to start a new websocket with the new google-account-connected Firebase token.

@cinxw

cinxw commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

fixed gray UI, renewed websocket on sign-in

cinxw and others added 6 commits June 29, 2026 13:27
Adds a small grey "Skip for now" text button under the Google/Apple
sign-in button on the startup screen, letting users access Bouncer
without a Google/Apple account via Firebase anonymous auth.

- auth.ts: add signInAnon() using Firebase signInAnonymously
- auth.stub.ts: matching no-op for no-backend builds
- background/index.ts: handle new 'skipAuth' message, broadcast auth state
- types.ts: add 'skipAuth' to the message union
- content/ui.ts: render skip button in both sign-in prompts, wire skipSignIn()
- content.css: style .skip-signin-btn (theme-aware grey text)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Anonymous ("Skip for now") users can now filter 300 posts before being
prompted to sign in, instead of 3.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cinxw cinxw force-pushed the cinxw/anonymous-trial branch from 5e09398 to baf4b1f Compare June 29, 2026 20:32

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Vet found 0 issues.

@millanatimbue

millanatimbue commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

Frontend code looks good to me, now looking at backend code. Don't merge yet

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Vet found 0 issues.

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.

3 participants