From 645929fa57b94ce9169ff007cfaea686fdc12e8b Mon Sep 17 00:00:00 2001 From: Dan Ziegler Date: Fri, 1 May 2026 14:44:50 -0500 Subject: [PATCH] chore: align with wr-canon v0.4.1 Closes #34 Co-Authored-By: Claude Sonnet 4.6 --- .claude/.worldrover-check | 2 -- .claude/.wr-canon | 2 ++ .github/PULL_REQUEST_TEMPLATE.md | 4 ++-- .github/release.yml | 2 +- .gitignore | 5 +++++ CHANGELOG.md | 1 + README.md | 26 +++++++++++++------------- scripts/init-labels.sh | 8 ++++++++ 8 files changed, 32 insertions(+), 18 deletions(-) delete mode 100644 .claude/.worldrover-check create mode 100644 .claude/.wr-canon diff --git a/.claude/.worldrover-check b/.claude/.worldrover-check deleted file mode 100644 index f672e9f..0000000 --- a/.claude/.worldrover-check +++ /dev/null @@ -1,2 +0,0 @@ -canon: v0.2.6 -checked: 2026-04-30 diff --git a/.claude/.wr-canon b/.claude/.wr-canon new file mode 100644 index 0000000..6e74ae1 --- /dev/null +++ b/.claude/.wr-canon @@ -0,0 +1,2 @@ +canon: v0.4.1 +checked: 2026-05-01 diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 4fe5028..e39ca69 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,3 +1,5 @@ +Closes # + ## Summary @@ -13,5 +15,3 @@ - -Closes # diff --git a/.github/release.yml b/.github/release.yml index b99f46a..c0e11a2 100644 --- a/.github/release.yml +++ b/.github/release.yml @@ -11,6 +11,6 @@ changelog: - title: "Documentation" labels: ["type: docs"] - title: "Maintenance" - labels: ["infra", "chore"] + labels: ["infra", "type: refactor"] exclude: labels: ["duplicate", "invalid", "wontfix"] diff --git a/.gitignore b/.gitignore index dd9870d..30e6323 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,8 @@ Thumbs.db # Per-user Claude Code settings (allow lists, machine-specific overrides) .claude/settings.local.json + +# Claude Code worktrees (temporary working directories, never committed) +.claude/worktrees/ + +# Add stack-specific patterns below (node_modules/, dist/, __pycache__/, target/, etc.) diff --git a/CHANGELOG.md b/CHANGELOG.md index 752d722..ca9aab3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ All notable changes to this project are documented here. Format based on [Keep a - `.claude/settings.json` — retire old pre-commit changelog hook; update pre-push hook to canon v0.2.5 (issue number optional in slug, allow `chore/release-v*` branches). - `.github/PULL_REQUEST_TEMPLATE.md` — add `## Follow-ups` section; update test plan comment to canon v0.2.5 wording. - `.markdownlint.json` and `.editorconfig` from the WorldRover canon. Initial scaffold missed these; CI was red on default markdownlint MD013 (line-length) until the configs landed. Plus a local `MD024: {siblings_only: true}` override so the standard Keep a Changelog repeated `### Added` headings under different version sections don't trigger duplicate-heading errors. Closes #1. +- Align with wr-canon v0.4.1: rename `.claude/.worldrover-check` → `.claude/.wr-canon`, add `.claude/worktrees/` to `.gitignore`, fix `release.yml` Maintenance label (`chore` → `type: refactor`), move `Closes #` to top of PR template, add standard labels block to `init-labels.sh`, rename `README.md` headings to canon schema (`## Overview`, `## Getting started`, `## Usage`). Closes #34. ## [0.1.0] - 2026-04-26 diff --git a/README.md b/README.md index e418a00..24350d0 100644 --- a/README.md +++ b/README.md @@ -4,18 +4,7 @@ Block-based US sovereignty history — a static D3 visualization that paints the Hover any cell for the full sequence (e.g. `France → Spain → France → USA` for the Louisiana Purchase, or `Spain → Mexico → Bear Flag Republic → USA` for California). Scroll/pinch to zoom. Drag to pan. -## Run it - -No build, no install — just serve the directory over HTTP and open it. - -```bash -python3 -m http.server 8080 -# open http://localhost:8080 -``` - -`file://` won't work — `data/us-states.json` is fetched, so the page must be served via HTTP. - -## What it covers +## Overview 15 sovereignty sequences, including: @@ -35,7 +24,18 @@ python3 -m http.server 8080 Continental US only. AK / HI / territories are deliberately excluded. -## How it's organized +## Getting started + +No build, no install — just serve the directory over HTTP and open it. + +```bash +python3 -m http.server 8080 +# open http://localhost:8080 +``` + +`file://` won't work — `data/us-states.json` is fetched, so the page must be served via HTTP. + +## Usage | Path | What's there | |---|---| diff --git a/scripts/init-labels.sh b/scripts/init-labels.sh index 55c3b6c..85f4b72 100755 --- a/scripts/init-labels.sh +++ b/scripts/init-labels.sh @@ -49,6 +49,14 @@ create "type: docs" "Documentation only" "999999" create "type: enhancement" "Refinement of existing functionality" "7057ff" create "type: refactor" "Behavior-preserving restructuring" "e4e669" +# Standard +create "duplicate" "This issue or pull request already exists" "cfd3d7" +create "good first issue" "Good for newcomers" "7057ff" +create "help wanted" "Extra attention is needed" "008672" +create "invalid" "This doesn't seem right" "e4e669" +create "question" "Further information is requested" "d876e3" +create "wontfix" "This will not be worked on" "ffffff" + # Remove the GitHub default labels that overlap with the type:- variants. # These deletions are also non-fatal — if they don't exist, gh prints a warning. echo "Removing redundant default labels"