Skip to content

feat: add Dune-style SQL analytics dashboard#156

Open
floxxih wants to merge 1 commit intoedehvictor:mainfrom
floxxih:feat/sql-analytics-dashboard-97
Open

feat: add Dune-style SQL analytics dashboard#156
floxxih wants to merge 1 commit intoedehvictor:mainfrom
floxxih:feat/sql-analytics-dashboard-97

Conversation

@floxxih
Copy link
Copy Markdown
Contributor

@floxxih floxxih commented Mar 31, 2026

Summary

  • Add a secure analytics backend route at POST /api/analytics/query that only accepts single-statement SELECT queries, blocks mutating SQL keywords, enforces default row limits, and applies execution timeout safeguards.
  • Add a new frontend analytics page with Monaco-based SQL editor, query execution flow, and dynamic chart rendering via Recharts.
  • Wire the analytics route into app navigation and backend routing so users can run custom read-only protocol analytics from the UI.

Notes

  • This implementation uses strict read-only validation and bounded query behavior for safer SQL execution.
  • No tests were added per your earlier instruction.

Closes #97

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 31, 2026

@floxxih is attempting to deploy a commit to the Edeh Victor's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 31, 2026

@floxxih Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@edehvictor
Copy link
Copy Markdown
Owner

@floxxih resolve conflicts and fix CI error

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.

Dune-Style Custom SQL Dashboard (Frontend/Backend)

2 participants