Skip to content

Name program files after their save date#30

Merged
clementrx merged 1 commit into
mainfrom
dated-program-filenames
Jul 17, 2026
Merged

Name program files after their save date#30
clementrx merged 1 commit into
mainfrom
dated-program-filenames

Conversation

@clementrx

Copy link
Copy Markdown
Owner

Summary

  • Program files are now named after their save date: programs/program-20260718.md (+ .html, .plan.yaml); a second version saved the same day gets a -2 (then -3) suffix instead of being refused.
  • The version number lives only in the frontmatter and plan yaml: the store indexes versions by reading each file's frontmatter, so pre-0.7 program-vN.* files remain readable and adaptable in place — no migration.
  • Report PDFs keep their program-vN-<mode>-<locale>.pdf names; the athlete-facing files are the ones renamed.
  • README + fr/de/es/it docs updated; version bumped to 0.7.0.

Test Plan

  • uv run pytest — 1275 passed (new: same-day suffix chain, clean names across days; legacy program-v1.md fixtures unchanged and passing)
  • ruff check, ruff format --check, ty check — clean

🤖 Generated with Claude Code

programs/program-20260718.md (+.html, .plan.yaml); a same-day second
version gets -2, then -3. The version number lives in the frontmatter and
plan yaml only — the store indexes versions by reading frontmatter, so
pre-0.7 program-vN.* files stay readable in place. Bump to 0.7.0.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@clementrx
clementrx merged commit cecd0d9 into main Jul 17, 2026
1 check passed
@clementrx
clementrx deleted the dated-program-filenames branch July 17, 2026 14:18
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