Skip to content
This repository was archived by the owner on Oct 27, 2026. It is now read-only.

feat(site): optional email on /try (amw-test-signup) - #848

Merged
PetrefiedThunder merged 3 commits into
mainfrom
site/try-email
Oct 22, 2026
Merged

PetrefiedThunder merged 3 commits into
mainfrom
site/try-email

Conversation

@PetrefiedThunder

@PetrefiedThunder PetrefiedThunder commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Follow up to #845. Adds an optional email field to /try. After the demo key is displayed, one fire and forget POST goes to the existing Supabase function amw-test-signup with wallet_id, email if given, and UTM/referrer. The api_key is never sent (the function also strips it). Signup failure never blocks the key display. Adds https://cqtlzicxmaklslvxderm.supabase.co to /try CSP connect-src and bumps try asset versions.

Tests: node --test site/test_.mjs (28 passed), pytest tests/test_site.py (88 passed). No live insert was made. Made via Codex CLI on the Mac.


Note

Medium Risk
Introduces client-side collection of optional PII and a new third-party connect target in CSP; signup is best-effort and does not send API keys, but attribution/email handling should stay aligned with privacy expectations.

Overview
Adds an optional email field on /try so visitors can opt into updates without blocking demo key issuance.

After a test key is shown, the page fires a credential-free POST to the Supabase amw-test-signup function with wallet_id, UTM/referrer attribution, and trimmed email only when it passes a simple format check; invalid email shows a non-blocking status message and is omitted from the payload. The api_key is never included, and signup errors are swallowed so the key UI stays usable.

CSP connect-src is extended to allow https://cqtlzicxmaklslvxderm.supabase.co, with matching site header tests updated. Try page asset versions are bumped (try-2 → try-3, try.js try-1 → try-2). Node and Python tests cover signup payload shape, email edge cases, silent signup failure, and new markup.

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

After a key is shown, one fire and forget POST sends wallet_id, optional
email and UTM/referrer to the amw-test-signup function. api_key is never
sent. Adds the Supabase origin to /try CSP connect-src, with tests.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T03:02:45.314005Z 4b5663e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4b5663e337

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread site/try/try.js
@PetrefiedThunder
PetrefiedThunder enabled auto-merge (squash) October 22, 2026 06:10
@PetrefiedThunder
PetrefiedThunder merged commit 9289867 into main Oct 22, 2026
29 checks passed
@PetrefiedThunder
PetrefiedThunder deleted the site/try-email branch October 22, 2026 07:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant