Skip to content

feat(phase4): marketing surface + Inngest cron + PostHog/Sentry wiring#1

Open
RexOwenDev wants to merge 1 commit into
mainfrom
phase4-deploy
Open

feat(phase4): marketing surface + Inngest cron + PostHog/Sentry wiring#1
RexOwenDev wants to merge 1 commit into
mainfrom
phase4-deploy

Conversation

@RexOwenDev

Copy link
Copy Markdown
Owner

Summary

Phase 4 buyer-facing demo polish: net-new marketing surface, instrumentation wiring, Inngest cron. The autoflow app itself is unchanged — all changes are additive scaffolding around it.

  • 11-section (marketing) route group: /, /how-it-works, /security, /compliance, /accessibility, /tech-stack, /metrics, /case-study, /source, /hire. Each ~50–120 lines, fintech-leaning compliance copy.
  • Sticky dismissible demo banner; cross-demo footer with env-driven sister-demo links.
  • PostHog provider with pageview tracker; Sentry client + server/edge init; both no-op when env vars absent.
  • Inngest client + /api/inngest serve handler + nightly-fixture-reset cron at 0 3 * * *.
  • Cross-link env vars (NEXT_PUBLIC_*_DEMO_URL) so Phase 9 URL swap is config-only.
  • CSP relaxed for PostHog, Sentry, Loom, Cal.com.
  • Root redirect (//dashboard) retired; root now serves marketing landing.

Verification

  • npx tsc --noEmit — clean
  • npx biome check — 0 errors / 0 warnings on new code
  • npm run build — green; 11 marketing pages prerendered as static; /api/inngest registered
  • npm test — 120/120 passing

Deferred (Owen-in-loop / next session)

  • Vercel project creation + env var population + first prod deploy
  • Inngest dashboard registration of /api/inngest endpoint
  • PostHog / Sentry account credentials
  • 2-min Loom walkthrough recording (deferred per session scope)
  • Live Lighthouse + axe-core audits (require deployed URL)

Full deploy notes: .claude/plans/foundation-outputs/04-deploys/autoflow-studio.md (in studio workspace).

Test plan

  • vercel link --project autoflow-studio-demo succeeds
  • Production env has APP_MODE=fixture
  • First deploy returns HTTP 200 on /
  • All 9 marketing sub-routes return 200
  • /dashboard still loads (existing app surface unaffected)
  • Demo banner appears on every route, dismisses + persists per session
  • Inngest dashboard shows nightly-fixture-reset registered after endpoint sync
  • PostHog (if key set) records $pageview on a route nav
  • Sentry (if DSN set) captures a manually thrown test error

Adds the Phase 4 buyer-facing demo polish layer:

- 11-section (marketing) route group: hero, how-it-works, security,
  compliance, accessibility, tech-stack, metrics, case-study, source, hire
- Sticky dismissible demo banner ("resets nightly", links to walkthrough + source)
- PostHog provider with pageview tracker (no-op when key absent)
- Sentry client + server/edge init wired through instrumentation-client.ts
  and the existing instrumentation.ts; withSentryConfig conditional on auth
  token presence so dev builds stay quiet
- Inngest client + nightly-fixture-reset cron (0 3 * * *) + /api/inngest serve
- Cross-link env vars (NEXT_PUBLIC_*_DEMO_URL) so Phase 9 URL swap is config-only
- CSP relaxed for PostHog, Sentry, Loom, Cal.com endpoints
- Root /-redirect retired; / now serves the marketing landing

Build green, 120/120 tests pass, biome clean. Loom recording deferred.

Deploy notes: .claude/plans/foundation-outputs/04-deploys/autoflow-studio.md
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.

1 participant