Skip to content

chore: sync develop → main - #206

Merged
ayoub3bidi merged 7 commits into
mainfrom
develop
Jul 22, 2026
Merged

chore: sync develop → main#206
ayoub3bidi merged 7 commits into
mainfrom
develop

Conversation

@ayoub3bidi

Copy link
Copy Markdown
Owner

Contribution workflow

  • Base branch is develop: This PR targets main, syncing all accumulated develop changes.
  • Guidelines and docs: I have read CONTRIBUTING.md and the docs relevant to my change.
  • This template: I kept the PR template structure and filled in the sections below.

Description

Routine sync of develop into main. This is not an official release — it brings all accumulated fixes, features, and infrastructure improvements from develop into production.

Type of Change

  • 🔧 Chore (maintenance, dependencies, etc.)

Related Issues

Changes Made

  • PostHog analytics migration (replacing Umami)
  • Agent-readiness infrastructure (llms.txt, MCP server card, Link headers, A2A compliance)
  • SaaS analytics: growth events, contact sync via Resend, Turnstile signup gate
  • CodeRabbit review hardening: rollback safety, async alerts, fail-open platform access, case-insensitive guards
  • CI workflow hardening: deploy guards, env usage, osv-scanner fixes
  • Whitelist/waitlist feature
  • All accumulated bug fixes and dependency updates from develop

Algorithm Details

Not applicable.

Testing

  • All existing tests pass (pnpm test:run)
  • Manual testing completed
  • New tests added for new functionality
  • Cross-browser testing (if UI changes)

Test Results

157 test files passed (1844 tests)

Code Quality

  • Code follows the project's coding standards
  • ESLint passes (pnpm lint)
  • Prettier formatting applied (pnpm format)
  • No console errors or warnings

Performance Impact

  • No performance impact

Breaking Changes

  • None

Checklist

  • I have completed the Contribution workflow checklist at the top of this template
  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

This is a develop → main sync PR, not a feature release. All changes have already been reviewed and merged into develop via individual PRs.

Track waitlist joins and anonymous viz-limit hits, enable SPA
pageviews via history_change, and sample session replay at 20%.
Add sync-contacts with atomic welcome_email_sent_at claim, styled
Resend templates, and Resend segment-based contact upsert. Drop
premature billing/referral scaffolding that was out of scope for 0.5.0.
Verify Cloudflare Turnstile in before-signup, send Telegram alerts on
signup rejects and new registrations, require email confirmation for
account deletion, and tighten edge-function CORS for production.
Block fork workflow_run deploys, move secrets into step env blocks,
and keep Supabase keepalive credentials out of inline shell expansion.
…c alerts, UX hardening

- Move syncContactToResend from AuthProvider to authService (service layer contract)
- Deduplicate displayName fallback in AuthProvider sign-in flow
- Add .catch() to fire-and-forget syncContactToResend call
- Wrap sendWelcomeEmail in try/finally so rollback always runs on failure
- Remove invalid_token fail-closed branch in platform-access (fail-open per contract)
- Make before-signup reject() async and await sendTelegramAlert in both edge functions
- Add 10s timeout to getTurnstileToken to prevent sign-in hanging
- Case-insensitive email confirmation in ProfileSettingsPage
- Remove unused deleteAccountConfirmPlaceholder/Word translation keys
- Defer syncContactToResend via setTimeout(0) to avoid Supabase auth lock contention
- Don't default unknown plan to 'free' — omit it and let edge function read from DB
- Wrap sync invocation in .catch() for unhandled rejection safety
- Update test to await async sync invocation via waitFor
feat: 0.5.0 growth analytics — PostHog events, Resend sync, waitlist
@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 6c00a38b-1203-40a3-9889-482c1b1c4c4a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch develop

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added documentation Improvements or additions to documentation ci Workflows tests labels Jul 22, 2026
@ayoub3bidi ayoub3bidi self-assigned this Jul 22, 2026
@ayoub3bidi
ayoub3bidi merged commit 29fdac8 into main Jul 22, 2026
24 checks passed
@codecov

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.11765% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/services/authService.js 94.82% 3 Missing ⚠️
src/contexts/AuthProvider.jsx 90.90% 1 Missing ⚠️
src/services/featureFlags.js 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Workflows documentation Improvements or additions to documentation tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant