Skip to content

Open-source polish: remove Stripe, fix newcomer setup & CodeQL, add EN/FR showcase screenshots - #52

Merged
tomtomgo92 merged 3 commits into
mainfrom
cursor/e2e-verification-bb1c
Dec 1, 2026
Merged

tomtomgo92 merged 3 commits into
mainfrom
cursor/e2e-verification-bb1c

Conversation

@tomtomgo92

Copy link
Copy Markdown
Contributor

What changed

  • Newcomer setup, local Supabase, auth & CI fixes:
    • Updated .github/workflows/codeql.yml to skip SARIF upload on private repositories (upload: ${{ github.event.repository.private && 'never' || 'always' }}), avoiding CodeQL workflow failure without GitHub Advanced Security while preserving SARIF uploads on public repos.
    • Added supabase/config.toml preconfiguring local Supabase auth (site_url, localhost & 127.0.0.1 redirect URLs, 1s email rate limit) and ignored supabase/.temp / supabase/.branches.
    • Updated app/connexion/login-form.tsx so local NEXT_PUBLIC_SITE_URL values do not override the active browser origin during PKCE magic-link login (localhost vs 127.0.0.1).
    • Added top header clearance across app-layout.css, auth-layout.css, and sidebar.css so the .chrome-tools language/theme switcher never overlaps top-right page actions.
    • Added fail-fast environment checks: encryptionConfigured() in lib/crypto.ts (HTTP 500 on /api/connexions when ENCRYPTION_KEY is missing) and GOOGLE_AI_API_KEY check in /api/articles/[id]/images (HTTP 502 before prompt generation).
    • Added opt-in AI_DEMO_MODE=1 (lib/ai-demo.ts, lib/ai.ts) so newcomers can test the full onboarding, strategy, planning, streaming article draft, rewrite, and social post flow without API keys.
  • Complete Stripe removal & unlimited self-hosted defaults:
    • Removed the stripe package and all Stripe/billing code, routes (/api/stripe/*, /api/abonnement/*), /abonnement UI pages, nav links, docs/STRIPE.md, and Stripe tests.
    • Added migration supabase/migrations/0022_open_source_illimite.sql dropping billing/plan columns, dropping the hardcoded 3-site DB trigger, and updating quota_left(p_kind, p_limit) / consume_quota(p_kind, p_limit) to track monthly counters while defaulting to unlimited (NULL).
    • Enabled inline section images and social post drafts for all deployments, with optional environment caps (MONTHLY_ARTICLES_LIMIT, MONTHLY_IMAGES_LIMIT, MONTHLY_ANALYSES_LIMIT, MAX_SITES).
  • Bilingual showcase screenshots & docs galleries:
    • Captured 22 optimized 1440x900 .webp screenshots under docs/screenshots/en/ and docs/screenshots/fr/ (using strictly fictional demo data on example.com) covering dashboard (light/dark), onboarding, brand profile, generator outline, article editor + SEO panel (light/dark), content calendar, keyword opportunities, account AI model selector, and team invitations.
    • Added hero images and screenshot galleries to README.md (EN) and README.fr.md (FR), and referenced relevant screens in docs/INTEGRATIONS.md and docs/ROADMAP.md.

Related issues

None.

How it was tested

  • Static & unit checks: bash scripts/check-public.sh, npm run lint (0 errors, 3 pre-existing warnings), npm run typecheck, npm test (24 files / 199 tests passed), and npm run build (with NEXT_PUBLIC_* cleared before build).
  • Local Supabase migrations: supabase db reset cleanly applied all 22 migrations (0001 through 0022) from scratch.
  • Playwright E2E tests (against next start + local Supabase + Mailpit + local OpenAI-compatible stub):
    • Verified full newcomer PKCE flow on both 127.0.0.1 and localhost, multi-site creation (>3 sites), unlimited generation + unlocked inline images & social posts, team invites/auto-claim, 404 on removed billing/Stripe routes, and 0 console/page errors.
    • Verified optional quota cap mode (MONTHLY_ARTICLES_LIMIT=1, MAX_SITES=1) and zero-key AI_DEMO_MODE=1 mode.
    • Not verified locally (requires production credentials): live Anthropic/OpenAI/Gemini/Mistral API calls, Gemini image generation (GOOGLE_AI_API_KEY), live WordPress/Sanity publishing, Google Search Console OAuth, production SMTP delivery, and GitHub public-repository CodeQL SARIF upload.

Checklist

  • Tests pass (npm test, npm run lint, npm run typecheck, npm run build)
  • Docs updated
  • French and English catalogs stay in sync when interface copy changed
  • No secrets committed (no key, token, project id, or personal data)
Open in Web Open in Cursor 

cursoragent and others added 3 commits December 1, 2026 20:05
…and demo mode

Co-authored-by: Thomas Millet <tmillet@thatmuch.fr>
…d by default

Co-authored-by: Thomas Millet <tmillet@thatmuch.fr>
Co-authored-by: Thomas Millet <tmillet@thatmuch.fr>
@tomtomgo92
tomtomgo92 merged commit 2859b8b into main Dec 1, 2026
3 checks passed
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