Skip to content

Writing skill: bare post dates now display correctly - #95

Closed
MaxGhenis wants to merge 7 commits into
max/report-guidance-charts-covers-gradingfrom
max/post-dates-bare-safe
Closed

MaxGhenis wants to merge 7 commits into
max/report-guidance-charts-covers-gradingfrom
max/post-dates-bare-safe

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

Stacked on #94. It targets max/report-guidance-charts-covers-grading, the only branch where the "Post dates" note exists. GitHub retargets this PR to main when #94 merges.

PolicyEngine/policyengine-app-v2#1237 (merged) now formats post dates from the year, month and day in the string, so a bare posts.json date shows as its own day in every time zone. The note's advice to always add a time of day is therefore obsolete. The new note says:

  • Bare dates and zone-less timestamps are both fine.
  • Leave out time zone offsets. The research list sorts date as text, and website/src/__tests__/lib/postDate.test.ts in app-v2 fails on any date that is not YYYY-MM-DD or YYYY-MM-DD HH:MM[:SS].

No version bump; #94 already carries the 4.0.3 release. uv run pytest tests/test_no_stale_references.py passes.

🤖 Generated with Claude Code

MaxGhenis and others added 7 commits September 29, 2026 20:50
policyengine-writing gains two sections and four checklist items:
- Figures, covers and replication in posts: ```chart blocks for charts (no
  matplotlib PNGs or Plotly in new posts); newsletter and social chart images
  screenshot from the live post; photographic still-life covers with nothing
  legible, never a chart (with the prompt used for the 2025 SPM posts);
  replication detail in footnotes; posts.json dates with a time of day.
- Grading forecasts and explaining misses: grade the registered quantity with
  published margins; every rerun a full model run; totals first and
  order-dependent splits labelled; per-recipient, age-adjusted survey
  comparisons across CPS population-control changes; sampling error before
  claiming a pattern; exact rate definitions; independent review.

policyengine-design: posts on policyengine.org use ```chart blocks, the website's
tw: Tailwind prefix leaves ui-kit utility classes unstyled there, and the
Plotly house style is for notebooks and standalone outputs.

Plugin version 4.0.2 -> 4.0.3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…in body, grading wording, covers, dates)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…prompt, decomposition orders, cover wording)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
policyengine-app-v2#1237 formats post dates from their calendar fields,
so a bare posts.json date shows as its own day in every time zone. Drop
the advice to always add a time of day; keep dates free of offsets,
which the website's data test rejects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…review nit)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Heads-up: #107 merged into main (8315e46). It adds a CI job, manifest, that fails when dashboard/src/data/manifest.json differs from a fresh build. This PR changes files the manifest reads, so its next CI run will fail that job until the branch is rebased and the manifest rebuilt. Please don't hand-merge the manifest; run:

git fetch origin && git rebase origin/main
uv run python scripts/build_manifest.py
uv run python scripts/build_manifest.py --check

Then commit the rebuilt manifest. The builder now needs PyYAML, which uv run installs, and it stops on frontmatter that isn't valid YAML.

@MaxGhenis
MaxGhenis force-pushed the max/report-guidance-charts-covers-grading branch 2 times, most recently from c14a25c to 456454e Compare November 11, 2026 19:25
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Closing: #94 now carries this PR's two commits (cherry-picked as 8713724 and 2177a5f), with the "Post dates" note word for word as it stands here. #94 had to drop its stale advice to always add a time of day before it could merge on its own, since PolicyEngine/policyengine-app-v2#1237 already shows bare dates as their own day. Folding the fix in let #94 do that, so this stacked PR has nothing left to add.

@MaxGhenis MaxGhenis closed this Nov 11, 2026
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