refactor: update app code for domain-scoped schema migration
Some checks failed
CI / lint-and-test (pull_request) Has been cancelled

- Update dbt model references to use new schema naming (stg_toronto, int_toronto, mart_toronto)
- Refactor figure factories to use consistent column naming from new schema
- Update callbacks to work with refactored data structures
- Add centralized design tokens module for consistent styling
- Streamline CLAUDE.md documentation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-02 17:00:30 -05:00
parent cda2a078d9
commit dfa5f92d8a
21 changed files with 618 additions and 407 deletions

View File

@@ -5,11 +5,11 @@ models:
description: "Rental data enriched with time and zone dimensions"
columns:
- name: rental_id
tests:
data_tests:
- unique
- not_null
- name: zone_code
tests:
data_tests:
- not_null
- name: int_neighbourhood__demographics
@@ -17,11 +17,11 @@ models:
columns:
- name: neighbourhood_id
description: "Neighbourhood identifier"
tests:
data_tests:
- not_null
- name: census_year
description: "Census year"
tests:
data_tests:
- not_null
- name: income_quintile
description: "Income quintile (1-5, city-wide)"
@@ -31,7 +31,7 @@ models:
columns:
- name: neighbourhood_id
description: "Neighbourhood identifier"
tests:
data_tests:
- not_null
- name: year
description: "Reference year"
@@ -45,11 +45,11 @@ models:
columns:
- name: neighbourhood_id
description: "Neighbourhood identifier"
tests:
data_tests:
- not_null
- name: year
description: "Statistics year"
tests:
data_tests:
- not_null
- name: crime_rate_per_100k
description: "Total crime rate per 100K population"
@@ -61,7 +61,7 @@ models:
columns:
- name: neighbourhood_id
description: "Neighbourhood identifier"
tests:
data_tests:
- not_null
- name: year
description: "Reference year"
@@ -75,11 +75,11 @@ models:
columns:
- name: neighbourhood_id
description: "Neighbourhood identifier"
tests:
data_tests:
- not_null
- name: year
description: "Survey year"
tests:
data_tests:
- not_null
- name: avg_rent_2bed
description: "Weighted average 2-bedroom rent"