Files
werkregie/doc/prs/2026-10-14-PR#81-demo-merges.md
claude-code bbb06bc69c
werkator build succeeded after 00:51
werkator/deploy build succeeded after 00:25
The demo shows the merge chart (#81)
Co-authored-by: claude-code <claude-code@javagil.de>
2026-10-14 21:04:02 +02:00

2.1 KiB

PR#81: The Demo Shows the Merge Chart

Version: patch

WARNING: This document describes only the change applied in this PR. It may already be outdated once the next PR is merged. Historic PR documentation is not maintained along with new PRs; treat it as a snapshot.

Problem

A visitor without the access token sees the demo; it has no merges, so the merge chart is missing there. Werkregie PR#78 deferred this, as Demo.snapshot was above a Mutation-CRAP of 15; werkregie PR#77 split it since.

Non-Goals

  • No real merges in the demo; the authors and their merges are invented.

Specification

Feature: the demo shows the merge chart

Scenario#81.01: the demo shows invented merges of a developer and of a coding agent

… so that a visitor sees what the merge chart shows.

  • Given a visitor without the access token
  • When the visitor opens the dashboard
  • Then the merge chart of the Gitea "acme" shows a year of merges of "anna" and the last 8 weeks of merges of "coding-agent", with their changed lines
Verified by

Solution

  • Demo.merges invents the merges by formula, so that the demo stays the same for each visitor: "anna" merges on two of three days of the last year, "coding-agent" 2 to 8 times a day in the last 8 weeks, each merge with 40 to 399 changed lines.

On 2026-10-14, a local server without the access token showed the demo with the merge tile of "Gitea acme": 30 merges of "anna" and 149 of "coding-agent" in the last 30 days, stacked, with mean and median of the lines.

Release Notes

The public demo shows the merge chart, with invented merges of a developer and of a coding agent.

Open Questions

None.