Skip to content

Fix invalid SQL and incomplete viz options in dashboard example#9

Open
Lexirieru wants to merge 1 commit into
duneanalytics:mainfrom
Lexirieru:fix/dashboard-workflow-example
Open

Fix invalid SQL and incomplete viz options in dashboard example#9
Lexirieru wants to merge 1 commit into
duneanalytics:mainfrom
Lexirieru:fix/dashboard-workflow-example

Conversation

@Lexirieru

Copy link
Copy Markdown

Summary

The "Build a Dashboard from Scratch" example in skills/dune/SKILL.md had two issues that would cause the workflow to fail if followed verbatim.

Invalid SQL. The example used FROM trades (no such table) with SUM(amount) (no such column) and no partition filter on block_time, violating the skill's own partition filter rule in dunesql-cheatsheet.md. Fixed to use dex.trades with amount_usd and a 30-day partition filter.

Incomplete chart options. The --options JSON omitted the required fields sortX, seriesOptions, xAxis, yAxis, legend, and series listed in visualization-management.md. The file itself flags missing seriesOptions as a common mistake. Aligned the example with the minimum required template in the reference.

Test plan

  • Run the updated SQL via dune query run-sql to confirm dex.trades.amount_usd resolves and the query completes
  • Run dune viz create with the updated --options JSON and verify the resulting chart renders correctly

The "Build a Dashboard from Scratch" example in SKILL.md had two issues that would cause the workflow to fail if followed verbatim.

First, the SQL referenced FROM trades (no such table) with SUM(amount) (no such column) and had no partition filter on block_time. This violates the skill's own partition filter rule in dunesql-cheatsheet.md. Fixed to use dex.trades with amount_usd and a 30-day partition filter.

Second, the chart --options JSON omitted required fields (sortX, seriesOptions, xAxis, yAxis, legend, series) listed in visualization-management.md. The file itself flags missing seriesOptions as a common mistake. Aligned the example with the minimum required template in the reference.
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.

1 participant