feat(dashboard): add interactive complaints analysis dashboard#6
Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Open
feat(dashboard): add interactive complaints analysis dashboard#6devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
Conversation
- Add Streamlit app with live Supabase connection and 5-minute caching - Implement filter dropdowns: category, severity, status, date range, customer segment - Add dynamic KPI statistics that update with filters - Create interactive time series chart with daily/weekly/monthly toggle - Add category breakdown bar chart and severity donut chart - Include resolution time distribution visualization - Add outlier highlights section (>60 days, >£300, same-day) - Include repeat complainers analysis (3+ complaints) - Add requirements.txt with dependencies - Add README with setup instructions Co-Authored-By: Joao Esteves <joao.esteves@cognition.ai>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(dashboard): add interactive Streamlit complaints analysis dashboard
Summary
This PR adds an interactive Streamlit dashboard for analyzing customer complaints data from Supabase. The dashboard replaces the static HTML report with a live, filterable application featuring:
Review & Testing Checklist for Human
SUPABASE_URLandSUPABASE_KEYenvironment variables and runstreamlit run dashboard/app.pyto confirm data loads correctlysantander_customer_complaintstable has all expected columns (complaint_id, customer_id, category, severity, status, complaint_date, resolution_date, resolution_days, compensation_amount, customer_segment)compensation_amountis formatted as "£X.XX" (line 113). Verify this matches actual data format - if values are already numeric or use different formatting, this will failRecommended test plan:
pip install -r dashboard/requirements.txtexport SUPABASE_URL=... SUPABASE_KEY=...streamlit run dashboard/app.pyNotes