How audeoinc/ccp works
CCP is a bilingual campaign-content planning app: teams plan email and push campaigns, develop content with AI, review and approve weekly plans, then inspect delivery results and alerts. The React client edits campaign cards and accesses table-oriented data and AI APIs; the FastAPI server validates and persists data and coordinates cloud services. The graph preserves the README’s documented calendar, card editing, templates, review, results, alerts, and localization capabilities. Some UI links are documented rather than source-sampled; those edges cite the README.
Main entry points: App.tsx Application shell · data Table data services · CardDetail.tsx Campaign editor · main.py FastAPI application
Components 26
Planning UI
- Application shell
src/App.tsx - Campaign calendar
src/Calendar.tsx - Campaign list
src/ListView.tsx
Content authoring
- Campaign editor
src/CardDetail.tsx - Template manager
src/TemplateManager.tsx - Template definitions
src/templates.ts - AI drafting workflow
src/useAiDrafts.ts - AI content proposals
src/aiSelect.ts - AI copy proposals
src/aiDraft.ts - Campaign preview
src/Preview.tsx
Review and insights
- Weekly review
src/WeekReviewBar.tsx - Delivery results
src/ResultsPage.tsx - Inventory alerts
src/AlertsPage.tsx
Data and services
- Domain models
src/models - Table data services
src/data - API client
src/gcp/services.ts - FastAPI application
server/ccp/main.py - Data API
server/ccp/data_api.py - Schema validation
server/ccp/schema.py - Database access
server/ccp/db.py - PostgreSQL
- Database lifecycle
server/ccp/dbctl.py - Cloud Storage state
- AI API
server/ccp/ai.py - Gemini Vertex AI
Other components
- Campaign planner
Connections 29
- Campaign planner → Application shell: plans campaigns
README.md - Application shell → Campaign calendar: shows calendar
src/App.tsx - Application shell → Campaign list: shows list
src/App.tsx - Application shell → Campaign editor: edits campaign
README.md - Campaign editor → Campaign preview: renders preview
README.md - Campaign editor → AI drafting workflow: requests drafts
README.md - AI drafting workflow → AI content proposals: proposes content
src/useAiDrafts.ts - AI drafting workflow → AI copy proposals: proposes copy
src/useAiDrafts.ts - Template manager → Template definitions: saves template
src/TemplateManager.tsx - Application shell → Weekly review: reviews week
README.md - Application shell → Delivery results: opens results
src/App.tsx - Application shell → Inventory alerts: opens alerts
src/App.tsx - Campaign calendar → Table data services: loads campaigns
README.md - Campaign editor → Table data services: edits campaign data
README.md - Delivery results → Table data services: loads results
README.md - Inventory alerts → Table data services: loads alert data
src/AlertsPage.tsx - Table data services → Domain models: uses row types
src/data/deliveryProducts.ts - Table data services → API client: calls API client
src/data/cardNotes.ts - API client → FastAPI application: requests endpoints
src/gcp/services.ts - FastAPI application → Data API: registers router
server/ccp/main.py - FastAPI application → AI API: registers router
server/ccp/main.py - Data API → Schema validation: validates table fields
server/ccp/data_api.py - Data API → Database access: queries database
server/ccp/data_api.py - Database access → PostgreSQL: reads and writes
README.md - FastAPI application → Database lifecycle: checks database state
server/ccp/main.py - Database lifecycle → Cloud Storage state: stores activity state
server/ccp/dbctl.py - Database lifecycle → PostgreSQL: starts and stops
server/ccp/dbctl.py - AI API → Gemini Vertex AI: generates suggestions
README.md - API client → AI API: requests AI