Skip to content

Release 1.6.0: count the last day down from 100% - #17

Merged
rogadev merged 8 commits into
mainfrom
dev
Oct 8, 2026
Merged

rogadev merged 8 commits into
mainfrom
dev

Conversation

@rogadev

@rogadev rogadev commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Releases 1.6.0 (minor bump from 1.5.0).

What changes for users

  • The last day before the weekly reset counts down like any other day. Today's budget is everything left in the week, shown as t 99% of 68%, instead of the old "last day" label. (3137c26)

Also in this merge (no release effect)

  • The README gets an animated status line graphic, generated from the real renderer by go run ./tools/demo (docs: generate the status line graphic from the real renderer #16). Its data, docs/demo/scenes.json, is versioned for the website demo.
  • renderToday uses an if instead of a one-case switch, which fixes golangci-lint's singleCaseSwitch finding. Behavior is unchanged.

Commits

Bump Commit
minor feat: count today down from 100% on the last day instead of showing "last day"
none docs: add an animated status line graphic to the README
none chore: add tools/demo to generate the demo graphic from the renderer
none docs: regenerate the status line graphic from scenes.json
none chore: keep the generated demo files LF and font and video files binary
none chore: harden the demo SVG's reduced motion and width checks
none refactor: replace a one-case switch in renderToday with an if

Checked locally on dev: go test ./..., go vet ./..., gofmt -l ., and golangci-lint v2.14.0 (0 issues) all pass.

…last day"

The final partial day before the weekly reset now uses the normal budget
(everything left in the week), so the today segment reads "t 100% of 68%" and
counts down like the other days, and goes "over N%" if overspent.

- pace: drop the LastDay kind; clamp days left to 1
- render: remove the hourglass "last day, resets" segment
- paceline-mcp: get_today_budget returns a budget answer on the last day
- README, tests, and the last-day parity fixture updated
docs/paceline-states.svg cycles a Claude Code window through seven states
(fresh day, light week, session running dry, over budget, cache cold, last
day, agent job) using the current countdown format, the "over N%" form, the
last-day budget, and the progress bar. It holds on the first state when
reduced motion is on.
tools/demo renders every step of eight scenes with render.Render, using a
fixed Now, the default config, and a fixed today's-budget snapshot, then
writes docs/demo/scenes.json and docs/paceline-states.svg from the result.

- scenes.go: the scene script and the builder
- ansi.go: parses the renderer's SGR output into styled runs
- svg.go: draws a mock Windows Terminal on a column grid and fails when a
  line is wider than 110 columns or uses a glyph the font lacks
- font.go: reads the embedded Cascadia Mono subset (WOFF, SIL OFL 1.1)
- a test fails when either committed output differs from a regeneration
docs/paceline-states.svg is now generated by `go run ./tools/demo` from
real renderer output, drawn as Windows Terminal with Claude Code's prompt
box, and plays eight scenes: fresh day, working through the day, over
budget, session running low, cache went cold, agent job, several windows,
and last day.

- docs/demo/scenes.json: the scene data the README graphic and the website
  share, versioned
- docs/demo/README.md: the regenerate command, the scenes.json schema, and
  the font, its licence, and the subsetting command
- README.md: alt text lists the new scenes
- CONTRIBUTING.md: describes tools/demo
- reduced motion uses animation:none!important, so it beats each element's
  inline animation-name instead of relying on the shorthand's reset
- a run that is both dim and colored fails generation instead of being
  drawn grey
- the width check gives bold titles 5% for Firefox's synthetic bold
- the font subset keeps its licence-description name record and drops an
  unused character
docs: generate the status line graphic from the real renderer
@rogadev
rogadev merged commit eca6c63 into main Oct 8, 2026
21 checks passed
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

🎉 This PR is included in version 1.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant