cb2d503e84
Phase A: Google Consent Mode v2 in cookie-banner-embed.ts
- gtag('consent', 'default', {...denied}) before banner loads
- gtag('consent', 'update', {...}) after user decision
- Automatic mapping: statistics→analytics_storage, marketing→ad_storage
Phase B: 5 Developer Portal pages at /sdk/consent/cookie-banner/
- Overview page with 4 cards
- Integration Guide: 3-step setup, script-tag, categories
- Google Consent Mode: automatic integration, parameter mapping
- Script Blocking: type=text/plain pattern, GA/FB/Hotjar examples
- Compliance Checklist: 12 points, 9 automatic
Sidebar navigation extended with Cookie-Banner section.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
developer-portal
Next.js 15 public API documentation portal — integration guides, SDK docs, BYOEH, development phases. Consumed by external customers.
Port: 3006 (container: bp-compliance-developer-portal)
Stack: Next.js 15, React 18, TypeScript.
Run locally
cd developer-portal
npm install
npm run dev
Tests
0 test files today. Phase 4 adds Playwright smoke tests for each top-level page and Vitest for lib/ helpers.
Architecture
Follow ../AGENTS.typescript.md. MD/MDX content should live in a data directory, not inline in page.tsx.
Known debt
- Several page files under
app/development/exceed the 300 LOC soft target and are candidates for splitting as refactoring continues.