Skip to content

Release polish: README, demo mode, screenshots, GHCR image - #14

Merged
rooty-bot merged 4 commits into
mainfrom
claude/7-release-polish-readme-screenshots-ghcr-i
Nov 30, 2026
Merged

rooty-bot merged 4 commits into
mainfrom
claude/7-release-polish-readme-screenshots-ghcr-i

Conversation

@rooty-bot

@rooty-bot rooty-bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Demo mode (DUMPDOWN_DEMO=1, src/lib/server/demo.ts): on start, fills an empty database with sample dumps (new, waiting for review with proposals, triaged), tasks (open and done), five categories with rules, and every weekday of the previous month plus the current month to date as time entries from all four sources (calendar, timer, manual, import). It does nothing if the database already has data, so it never mixes with real data and is safe to leave on. It is passed through in docker-compose.yml.
  • Screenshots: npm run screenshots builds the app, starts it in demo mode on a temp DB and captures each page with playwright-core (new dev dependency) using the installed Chrome (CHROME_PATH to override). The PNGs are committed under docs/screenshots/.
  • Release workflow (.github/workflows/release.yml): on v* tags it builds linux/amd64,linux/arm64 with QEMU and Buildx and pushes to ghcr.io/rootstrap/dumpdown, tagged {{version}}, {{major}}.{{minor}}, {{major}} and latest.
  • README rewritten: who it's for, features, screenshots, docker compose quick start (with and without the bundled Ollama, demo mode), prebuilt image, env var table (now with DUMPDOWN_DEMO), API example, privacy statement, roadmap and contributing. The existing feature docs are kept.
  • CONTRIBUTING.md and issue templates (bug report, feature request, private security contact).

Testing

  • npm run lint, npm run check, npm test (157 tests, including new demo.spec.ts: env parsing, fills every page, previous month complete and current month up to now, wall-clock times across DST, report fully categorized with overlaps, no-op on a non-empty DB, idempotent) and npm run build.
  • Ran npm run screenshots against the production build: the server logged Demo mode: added 7 dumps, 7 tasks and 213 time entries, and I checked the PNGs (Sankey renders, review queue populated).
  • Docker isn't available locally, so CI's docker job covers the image build and smoke test. The release workflow only runs on tags, so it wasn't exercised here.

Maintainer notes

  • ghcr.io/rootstrap/dumpdown will exist only after the first v* tag is pushed (there are no tags yet). New GHCR packages usually start private, so set its visibility to public once it appears.
  • CONTRIBUTING.md and the issue templates link to private security advisories, but private vulnerability reporting is currently disabled for this repo. Enable it under Settings → Security for those links to work.

Closes #7

🤖 Generated with Claude Code

rooty-bot and others added 4 commits November 30, 2026 14:25
DUMPDOWN_DEMO=1 seeds an empty database with sample dumps, review
proposals, tasks, categories with rules and the previous plus current
month of time entries from every source. scripts/screenshots.ts starts
the production build in demo mode and captures each page with
playwright-core and the installed Chrome into docs/screenshots/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rewrite the README for self-hosters: who it is for, features,
screenshots, a docker compose quick start (with demo mode), the
prebuilt GHCR image, the env var table, privacy statement and roadmap.
Pass DUMPDOWN_DEMO through docker-compose.yml.

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

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

Copy link
Copy Markdown
Collaborator Author

Thanks for this, it's a really thorough release-polish PR! I reviewed it against #7 item by item.

Scope vs. #7

  • ✅ README: covers who it's for (self-hosters with Ollama), features, a docker compose quick start (with and without --profile llm), the env var table (now with DUMPDOWN_DEMO), the API example, privacy, roadmap and contributing. Fixing the Ollama exec command to include --profile llm was a good catch.
  • ✅ Demo mode: DUMPDOWN_DEMO=1 (src/lib/server/demo.ts) seeds dumps in all three states, tasks (todo/done), categories with rules and a month-plus of entries from all four sources. The whole seed runs in one transaction and is guarded by isEmpty, so it can't mix with real data and is idempotent.
  • ✅ Screenshots: taken with Playwright (scripts/screenshots.ts) and committed under docs/screenshots/. I opened report.png and review.png: the Sankey renders and the review queue is populated. Starting the server with a minimal env so local tokens and LLM URLs can't leak into the pictures was a nice touch.
  • ✅ GHCR workflow: .github/workflows/release.yml runs on v* and builds linux/amd64,linux/arm64 with QEMU and Buildx. It pushes to ghcr.io/${{ github.repository }} with least-privilege permissions (contents: read, packages: write) and uses GITHUB_TOKEN, so no extra secrets. All the pinned action major tags exist, and metadata-action's default latest=auto adds latest for stable semver tags, as the README says.
  • ✅ CONTRIBUTING.md and issue templates: both present, and both warn people not to paste tokens or ICS URLs.
  • ✅ CI: green (test and docker, where the docker job smoke-tests the image from a clean build).

Tests: demo.spec.ts covers the behavior that matters: env parsing, every page populated, a complete previous month (22 weekdays), no future entries, wall-clock times kept across the Oct 25 DST change, a report with no "Uncategorized" and non-zero overlap, a no-op on a non-empty DB, and idempotency. 👍

Security: No concerns. Demo seeding only happens on an empty DB and adds no routes or auth bypass. Nothing new makes network calls at runtime, and no lint or type checks were disabled. (Adding scripts to tsconfig actually widens checking.)

Non-blocking nits / suggestions

  1. isEmpty only checks dumps, tasks, time entries and categories. Someone who has only added a calendar subscription (before its first sync) or changed settings and then turns on DUMPDOWN_DEMO would still get demo data. That's harmless in practice, but you could add those tables to the check if you want to be strict.
  2. report.png shows the current, partial month (November). Clicking ← once before taking the screenshot would show the full previous month, which makes for a nicer hero image.
  3. The release workflow can only be tested by pushing a tag. Adding a workflow_dispatch trigger (or a PR job that builds multi-arch with push: false) would catch arm64 build problems before the first real release.
  4. As your PR notes say, the GHCR package visibility and private vulnerability reporting need a maintainer to change them in settings. Until private reporting is on, the security links will lead nowhere.

None of these block merging. LGTM, nice work!

-- OpenSourcerer (Rootshift review)

@rooty-bot
rooty-bot merged commit 7e85021 into main Nov 30, 2026
2 checks passed
@rooty-bot
rooty-bot deleted the claude/7-release-polish-readme-screenshots-ghcr-i branch November 30, 2026 13:33
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.

Release polish: README, screenshots, GHCR image

1 participant