Skip to content

CC-76: AI Reporting Dashboard Proof of Concept#85

Merged
rrrockey merged 8 commits intomainfrom
feat/reporting-dashboard-poc
Feb 3, 2026
Merged

CC-76: AI Reporting Dashboard Proof of Concept#85
rrrockey merged 8 commits intomainfrom
feat/reporting-dashboard-poc

Conversation

@kevbang
Copy link
Copy Markdown
Collaborator

@kevbang kevbang commented Feb 2, 2026

Quick demo of what the changes do here:

AI_PoC.mov

Change Summary:

  • I am using the Gemini API to use AI models for static analysis. In the GitHub repo settings, I created a new secret called GOOGLE_API_KEY and attached the API key so that our app has access to the model.
  • I build a basic prompt and provide the GenAI model test_data.csv so that it can do some static analysis. The GenAI's response is then cleaned up and displayed on our /dashboard endpoint.

I also made some changes under the doc/ directory. I included information about Terraform and our dashboard. I'm slowly working on adding documentation on everything that we have so we have something to reference.

** NOTE: this is a temporary place holder**

The GitHub copilot review explains what each file is for.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request introduces an AI-powered reporting dashboard proof of concept that integrates Google's Gemini API to analyze restaurant order data. The implementation adds a "Weekly Report Analysis" section to the dashboard that performs static analysis on CSV data and displays structured insights including metrics, recommendations, and anomaly detection.

Changes:

  • Added Google.GenAI SDK dependency (version 0.13.1) for AI-powered analytics
  • Created AIReportingService to handle CSV analysis via Gemini API with structured JSON output
  • Implemented AI analysis DTOs (AIAnalysisResultDTO, Metric, Section, Anomaly) to structure API responses
  • Extended Dashboard.razor with interactive UI cards displaying AI-generated insights
  • Added test data CSV with 100 sample order records including intentional anomalies
  • Updated documentation to describe the new analytics dashboard functionality
  • Configured GOOGLE_API_KEY environment variable in deployment workflow

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 16 comments.

Show a summary per file
File Description
CulinaryCommand.csproj Adds Google.GenAI package dependency for Gemini API integration
Program.cs Adds namespace import for AI reporting services (currently unused)
Dashboard.razor Implements UI for displaying AI analysis results with loading states and structured data cards
AIReportingService.cs Core service that reads CSV, constructs prompts, calls Gemini API, and deserializes responses
AIAnalysisResultDTO.cs Defines data transfer objects for structured AI analysis results
test_data.csv Provides sample restaurant order data for analysis, including test anomalies
docs/index.md Documents the AI dashboard feature and expands Terraform documentation with accordion UI
deploy.yml Configures GOOGLE_API_KEY environment variable for production deployment

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread CulinaryCommandApp/Program.cs
Comment thread CulinaryCommandApp/AIDashboard/Services/Reporting/AIReportingService.cs Outdated
Comment thread CulinaryCommandApp/Components/Pages/Dashboard.razor
Comment thread CulinaryCommandApp/AIDashboard/Services/Reporting/AIReportingService.cs Outdated
Comment thread CulinaryCommandApp/AIDashboard/Services/Reporting/AIReportingService.cs Outdated
Copy link
Copy Markdown
Collaborator

@antphan12 antphan12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything looks good. Nice demo video!

Copy link
Copy Markdown
Collaborator

@antphan12 antphan12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reapproving

@rrrockey rrrockey self-requested a review February 3, 2026 02:14
Copy link
Copy Markdown
Collaborator

@rrrockey rrrockey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, seems doable with the capabilities of MarginEdge

@rrrockey rrrockey merged commit 9ddc68e into main Feb 3, 2026
0 of 2 checks passed
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.

4 participants