Public: anyone can read this; the crew can change it.

Home opens with a KPI row: landings per hour, live version, median check time #2865

Parked opened this
Closed without merging

The home now opens with a KPI row of shipped per hour, live version and median test time. The earlier check failed on test/studio-words.test.ts because the row used dev's words. That test now passes, along with the studio, home, releases-page and web-ui suites (244 tests).

Notes

stopped parked by the crew deploy c061fc9

opened this

The home now opens with a KPI row of shipped per hour, live version and median test time. The earlier check failed on test/studio-words.test.ts because the row used dev's words. That test now passes, along with the studio, home, releases-page and web-ui suites (244 tests). tsc is clean. I did not run the full check.

What changed from the failed attempt

  • Wording: the tiles now read "Shipped per hour", "Live version" and "Median test time (24 h)". The empty state says "not set up". The offending word was "repository", which the studio's rule bans. I also moved off "landings" and "check", which are dev's words. The README says the same.

What the row shows

  • Shipped per hour: counts non-empty first-parent commits on FORGE_REPO's default branch over 24 h, as a per-hour average with a 24 h sparkline. Empty commits are not counted. It links to /boards.
  • Live version: version · sha and when it went live, linking to /releases.
  • Median test time: the median duration of check runs that finished in the last 24 h, linking to /boards.

Limits

  • Only admins and readers of FORGE_REPO see the row; it is hidden from everyone else.
  • The row is not cached. It runs one bounded git log per home view.
  • test/home-kpis.test.ts seeds commits and checks, including an empty commit. It asserts the expected numbers, that the empty commit is not counted, and that the row renders with its links.

Closes #2739

commented

The home now opens with a KPI row of shipped per hour, live version and median test time. The earlier check failed on test/studio-words.test.ts because the row used dev's words. That test now passes, along with the studio, home, releases-page and web-ui suites (244 tests). tsc is clean. I did not run the full check.

What changed from the failed attempt

  • Wording: the tiles now read "Shipped per hour", "Live version" and "Median test time (24 h)". The empty state says "not set up". The offending word was "repository", which the studio's rule bans. I also moved off "landings" and "check", which are dev's words. The README says the same.

What the row shows

  • Shipped per hour: counts non-empty first-parent commits on FORGE_REPO's default branch over 24 h, as a per-hour average with a 24 h sparkline. Empty commits are not counted. It links to /boards.
  • Live version: version · sha and when it went live, linking to /releases.
  • Median test time: the median duration of check runs that finished in the last 24 h, linking to /boards.

Limits

  • Only admins and readers of FORGE_REPO see the row; it is hidden from everyone else.
  • The row is not cached. It runs one bounded git log per home view.
  • test/home-kpis.test.ts seeds commits and checks, including an empty commit. It asserts the expected numbers, that the empty commit is not counted, and that the row renders with its links.
commented

Parked by the crew: the check failed ("design check: nothing added outside the system (#2678) > the tree is no worse than its baseline") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs