Skip to content

v0.4.0 - Marketing Analytics Explorer (Feature 004)

Latest

Choose a tag to compare

@bryan-db bryan-db released this 07 Oct 15:18
· 3 commits to 004-data-exploration-frontend since this release

Marketing Analytics Explorer - Live Databricks Integration

Complete implementation of Feature 004 with 5 React dashboards fetching live data from Unity Catalog.

🎯 Features Implemented

Analytics Dashboards (5 total)

  • βœ… DataOverview: Summary metrics across all data sources
  • βœ… CampaignPerformance: Campaign analytics with role-based filtering
  • βœ… ContentEngagement: Event tracking and content analysis
  • βœ… AudienceInsights: Segment demographics and comparison
  • βœ… AttributionAnalysis: Funnel metrics and attribution models

Data Integration

  • βœ… Unity Catalog integration (bryan_li.synthetic_datasets, bryan_li.analytics)
  • βœ… SQL Warehouse queries via Statement Execution API 2.0
  • βœ… React Query hooks for caching and state management
  • βœ… Role-based access control (CMO vs Analyst)
  • βœ… Sync table fallback to Delta Lake

πŸ”§ Infrastructure Improvements

CORS & API Configuration

  • βœ… Vite proxy configuration for local development
  • βœ… dbsqlClient with relative URLs in dev mode
  • βœ… Environment validation (warehouse ID, tokens, catalog)
  • βœ… Dev mode mock authentication

Schema Corrections

  • βœ… Fixed: raw_data β†’ synthetic_datasets
  • βœ… Fixed: target_segments β†’ target_segment
  • βœ… Fixed: total_engagements β†’ event_count
  • βœ… Removed _sync suffix assumptions
  • βœ… Added schema validation with DESCRIBE commands

πŸ“š Documentation

Project Constitution

  • βœ… 14 core principles for Databricks development
  • βœ… Mandatory Unity Catalog, serverless compute, Asset Bundles
  • βœ… Schema validation and testing practices
  • βœ… Version control and release management requirements
  • βœ… Lessons learned from implementation

πŸ§ͺ Testing

  • βœ… Contract tests for all 5 gold table schemas
  • βœ… Real Databricks infrastructure validation
  • βœ… Schema mismatch detection and prevention

πŸ“¦ Tech Stack

  • React 18 + Vite + Material-UI v5
  • TanStack React Query
  • Recharts + Nivo (visualizations)
  • Databricks SQL Warehouse (03560442e95cb440)
  • Unity Catalog with medallion architecture

πŸš€ Deployment

Access dashboards at: http://localhost:5173/dashboards/overview

Environment Variables Required:

VITE_DATABRICKS_HOST=https://e2-demo-field-eng.cloud.databricks.com
VITE_DATABRICKS_TOKEN=<your-pat-token>
VITE_DATABRICKS_WAREHOUSE_ID=03560442e95cb440
VITE_DATABRICKS_CATALOG=bryan_li

πŸ”„ Rollback

To rollback to previous version: git checkout v0.3.0


Full Changelog: v0.3.0...v0.4.0