How jplindsey/ingecal-dashboard works
Purpose and Entry Point
Ingecal Dashboard is a Streamlit-based analytics application. The primary runtime entry point is app.py; Streamlit behavior and presentation are configured in .streamlit/config.toml. The app is organized as a multi-page dashboard rather than a separate frontend/backend web service.
Application Shell and Access Boundary
app.py likely owns Streamlit initialization, navigation, and composition of dashboard pages. Authentication is separated into auth.py, forming the access-control boundary before users reach analytics views. Shared language or localization behavior is centralized in translations.py.
Key paths:
• app.py
• auth.py
• translations.py
Page-Level Analytics Domains
The app_pages/ package divides the product into distinct user workflows: landing/home, data upload, data quality review, business analytics, academy analytics, and webinar analytics. These pages are the presentation and orchestration layer; they should consume shared data, metrics, filters, and charts rather than duplicating calculation or persistence logic.
Key paths:
• app_pages/home.py
• app_pages/upload_data.py
• app_pages/data_quality.py
• app_pages/business_analytics.py
• app_pages/academy_analytics.py
• app_pages/webinar_analytics.py
Data Ingestion, Storage, and Processing
Data movement appears to begin with the upload workflow and pass through loader, pipeline, and database layers. data_loader.py is the likely file/input normalization boundary; pipeline.py is the transformation or processing stage; database.py abstracts persistent storage access. This separation is important: UI pages should not directly encode storage or ingestion mechanics.
Key paths:
• app_pages/upload_data.py
• data_loader.py
• pipeline.py
• database.py
Shared Dashboard Data and Quality Layer
dashboard_data.py provides common data access or dashboard-ready datasets across analytics pages. app_pages/data_quality.py is the visible validation/review stage, likely operating on uploaded or processed data before it is relied upon for reporting. The main boundary is between raw/uploaded data and trusted, analytics-ready data.
Key paths:
• dashboard_data.py
• app_pages/data_quality.py
• pipeline.py
Metrics, Filtering, and Visualization
Business-facing computations are separated into reusable metric modules: general dashboard metrics in metrics.py and webinar-specific calculations in webinar_metrics.py. filters.py likely owns shared selection/filter state or query constraints, while charts.py translates prepared datasets and metrics into visual components. Analytics pages should coordinate these modules, not reimplement them.
Key paths:
• metrics.py
• webinar_metrics.py
• filters.py
• charts.py
Webinar-Specific Data Path
Webinar reporting has its own data and metric boundary, indicating a specialized domain model alongside the general dashboard flow. webinar_data.py likely supplies webinar-oriented datasets to webinar_metrics.py, which is then surfaced by the webinar analytics page.
Key paths:
• webinar_data.py
• webinar_metrics.py
• app_pages/webinar_analytics.py
Runtime and Infrastructure
The material runtime dependency is Streamlit, indicated by app.py, .streamlit/config.toml, and the page-oriented layout. Python package dependencies are declared in requirements.txt. A persistence integration is implied by database.py, but the provided repository metadata does not identify the specific database engine or external service.
Main entry points: app.py Application shell · dashboard_data.py Dashboard data · charts.py Charts · filters.py Filters
Components 20
App Shell
- Streamlit runtime · Hosts the multi-page dashboard.
- Application shell · Initializes navigation and composes pages.
app.py - Authentication · Guards access to analytics views.
auth.py - Translations
translations.py - Python dependencies
requirements.txt
Dashboard Pages
- Home
app_pages/home.py - Data upload · Starts the uploaded-data workflow.
app_pages/upload_data.py - Data quality · Reviews data before reporting.
app_pages/data_quality.py - Business analytics
app_pages/business_analytics.py - Academy analytics
app_pages/academy_analytics.py - Webinar analytics
app_pages/webinar_analytics.py
Data Platform
- Data loader · Normalizes uploaded inputs.
data_loader.py - Processing pipeline · Transforms ingested data into reporting-ready data.
pipeline.py - Database access · Abstracts persistent storage.
database.py - Dashboard data · Supplies common analytics-ready datasets.
dashboard_data.py - Webinar data · Supplies webinar-oriented datasets.
webinar_data.py
Analytics Components
- Filters
filters.py - Dashboard metrics · Computes reusable general metrics.
metrics.py - Webinar metrics · Computes webinar-specific metrics.
webinar_metrics.py - Charts · Renders prepared data and metrics.
charts.py
Connections 28
- Python dependencies → Streamlit runtime: declares
- Streamlit runtime → Application shell: runs
- Authentication → Application shell: protects
- Translations → Application shell: localizes
- Application shell → Home: navigates to
- Application shell → Data upload: navigates to
- Application shell → Data quality: navigates to
- Application shell → Business analytics: navigates to
- Application shell → Academy analytics: navigates to
- Application shell → Webinar analytics: navigates to
- Data upload → Data loader: submits files
- Data loader → Processing pipeline: normalizes input
- Processing pipeline → Database access: persists processed data
- Processing pipeline → Dashboard data: prepares datasets
- Database access → Dashboard data: reads stored data
- Data quality → Dashboard data: reviews
- Dashboard data → Dashboard metrics: supplies datasets
- Filters → Dashboard data: constrains queries
- Business analytics → Filters: applies
- Academy analytics → Filters: applies
- Dashboard metrics → Charts: provides metrics
- Business analytics → Charts: renders
- Academy analytics → Charts: renders
- Database access → Webinar data: reads webinar data
- Webinar data → Webinar metrics: supplies datasets
- Webinar metrics → Charts: provides metrics
- Webinar analytics → Filters: applies
- Webinar analytics → Charts: renders