Skip to content

feat: AI/BI dashboard, country in gold layer, randomized seed data - #33

Merged
andre-salvati merged 5 commits into
mainfrom
feat/dashboard-and-country
Jun 4, 2026
Merged

feat: AI/BI dashboard, country in gold layer, randomized seed data#33
andre-salvati merged 5 commits into
mainfrom
feat/dashboard-and-country

Conversation

@andre-salvati

@andre-salvati andre-salvati commented Jun 4, 2026

Copy link
Copy Markdown
Owner

Summary

  • Added `country` to `curated.order_enriched` and `report.order_agg` (and SDP equivalents) so the gold layer carries the full customer dimension; unit and integration tests updated.
  • Added an AI/BI (Lakeview) dashboard with three line charts (total value by date × country/product/category), three KPI counters (total value, orders, customers), and a global filter page (date range, country, customer, product, category). Dashboard JSON and DAB resource are generated by `sdk_generate_template_job.py` at deploy time — both files are gitignored.
  • Randomized seed data: `qty` (1–5) and `total_item` ($10–$200) now use `F.rand` with fixed seeds instead of hardcoded constants, so chart lines no longer overlap.
  • Completed README documentation: added "Databricks Dashboards" to the Technologies section, dashboard screenshot block, and replaced the placeholder dashboard Features bullet with a full description of the charts and filter panel.

Migration note

First deploy requires dropping the stale-schema gold tables before re-running `job1`:
```sql
DROP TABLE IF EXISTS ``.`curated`.`order_enriched`;
DROP TABLE IF EXISTS ``.`report`.`order_agg`;
```

Test plan

  • `make test` — 9 unit tests pass
  • `make deploy env=dev` — bundle validates and dashboard deploys
  • `make run env=dev` — integration job passes (setup → run + run_sdp → validate)
  • Open deployed dashboard, confirm KPI counters update with date filter
  • Confirm line charts show distinct (non-overlapping) lines across countries/products/categories

🤖 Generated with Claude Code

andre-salvati and others added 5 commits June 4, 2026 11:01
Added `country` to `curated.order_enriched` and `report.order_agg` (and SDP
equivalents) so the gold layer carries the full customer dimension needed for
country-based reporting; unit and integration tests updated accordingly.

Added an AI/BI (Lakeview) dashboard with three line charts (total value by
date × country, by date × product, by date × category), three KPI counters
(total value, number of orders, number of customers), and a global filter page
(date range, country, customer, product, category). Dashboard JSON and its DAB
resource are generated by sdk_generate_template_job.py at deploy time with the
target catalog embedded — both files are gitignored.

Randomized seed data: qty (1–5) and total_item ($10–$200) now use F.rand with
fixed seeds instead of hardcoded constants, so aggregated values differ across
countries/products/categories and chart lines no longer overlap.

Note: first deploy after this change requires DROP TABLE on curated.order_enriched
and report.order_agg (schema change — country column added) before re-running job1.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…s in seed data

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@andre-salvati
andre-salvati merged commit 69f74a3 into main Jun 4, 2026
1 check 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.

1 participant