Skip to content

feat!: hex maps, dashboard site, guides and repo files - #1

Merged
CodeWithBehnam merged 4 commits into
mainfrom
feat/site-and-guides
Nov 10, 2026
Merged

CodeWithBehnam merged 4 commits into
mainfrom
feat/site-and-guides

Conversation

@CodeWithBehnam

Copy link
Copy Markdown
Owner

What changed

  • Hex maps. Every OA, LSOA and MSOA map now also comes as a hexmap, and every LSOA and MSOA map as a geogrid (75 map files in total, each with a preview image).
  • New layout (breaking). Files move to maps/<year>/<level>/<council>/<type>/, where type is geographic, hexmap or geogrid.
  • Sample data. data/synthetic/ holds one made-up CSV per level and version.
  • Dashboard. site/ is a dependency-free page with slicers for map type, version, level, area and measure. pages.yml deploys it from main.
  • Guides. docs/ covers using the maps in Power BI, what a map file needs, mapshaper (how-to and cheat sheet) and preparing your own map as a Power BI file, hexmap or geogrid.
  • Repo files. MIT licence, contributing guide, issue and pull request templates, and a check.yml workflow (type check, output check, site build).

How it was checked

  • bun run typecheck
  • bun run check: all 75 map files, their images and the sample data are in step
  • bun run site:build, and the dashboard looked right in headless Chrome (geographic, hexmap, geogrid, dark mode, geogrid fallback for OA)
  • 109 relative links across the README and guides resolve
  • Every mapshaper command in the guides was run against mapshaper 0.7.101

Notes for the reviewer

  • Nothing was tested in Power BI itself.
  • geogrid is not built for Output Areas: about 2 minutes for 240 areas, and not finished after 8 minutes for 1,291. HEX_LEVELS in scripts/sources.ts switches it on.
  • The dashboard was not checked at true phone width (headless Chrome will not go below about 500 px).
  • The site goes live at https://codewithbehnam.github.io/map-powerbi/ once this is merged.
  • CLAUDE.md is no longer tracked, but it remains in the first commit's history.

Behnam added 4 commits November 10, 2026 16:05
Map files move to maps/<year>/<level>/<council>/<type>/, where type is geographic, hexmap or geogrid. Hexagons are computed in R (scripts/hex.R) and cached. geogrid is built for LSOA and MSOA only, because it takes hours for Output Areas. Adds a check script for the generated outputs, and stops tracking CLAUDE.md.

BREAKING CHANGE: every map and image path has changed.
One made-up CSV per level and version, and a dependency-free dashboard that previews every map file with slicers for map type, version, level, area and measure.
Guides cover using the maps in Power BI, what a map file needs, mapshaper (how-to and cheat sheet) and preparing your own map as a Power BI file, hexmap or geogrid.
@CodeWithBehnam
CodeWithBehnam merged commit 9c28d04 into main Nov 10, 2026
1 check passed
@CodeWithBehnam
CodeWithBehnam deleted the feat/site-and-guides branch November 10, 2026 16:56
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