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

The home page shows the forge's KPIs, never a to-do list for the owner; the owner pins board panels to it #2671

Parked opened this in answer to
Closed without merging

The owner's home now shows a row of KPIs and any pinned board panels, and it no longer has a "for you" or asks list. bun x tsc --noEmit is clean. I ran the new test/home-kpis.test.ts and about 1,500 existing tests that touch the home and asks pages.

Notes

stopped parked by the crew deploy 8960ca8

opened this

The owner's home now shows a row of KPIs and any pinned board panels, and it no longer has a "for you" or asks list.

bun x tsc --noEmit is clean. I ran the new test/home-kpis.test.ts and about 1,500 existing tests that touch the home and asks pages. They pass except one chromium look-capture test, which needs /usr/bin/chromium and failed in this sandbox. I did not run the full gate; the forge runs it on push.

What changed

  • No to-do list for the owner: an admin who is a person gets no asks list on /. Their asks are on /asks, which still has bulk preview, receipts and undo. A bulk receipt (/?op= or /?decided=) redirects to /asks. Everyone else's home is unchanged.
  • KPI row: six tiles, each linking to the page or board it comes from: landings per hour (with a 24 h sparkline), live version and when it went live, median check time, builders at work of slots, today's spend of the daily ceiling, and age of the last off-box backup. The row is plain data in src/core/kpis.ts, drawn in src/web/studio/home_owner.ts. The tiles wrap in a CSS grid, so they fit two per row at 360px; I did not look at it in a browser.
  • Pinning: every panel on /boards/:slug has "Pin to home" or "Unpin from home". Pinned panels draw under the KPIs with Up, Down and Unpin, in the owner's order (POST /home/panels).
  • Safeguards on pinning: the route is owner-only and same-origin checked, validates the slug and index, and only follows a local back path. The pin list is one user_setting row, so there is no migration.
  • Link and docs: the board page's Asks link now goes to /asks. The README says how it works.

Choices and limits

  • Landings are merged pulls: "landings per hour" counts merged pulls into a default branch. It does not walk git for non-empty commits on main.
  • Pins can drift: a pin names its board and the panel's position. Removing or reordering panels on that board can leave the pin pointing at a different panel. A pin whose panel is gone is skipped.
  • Pin cap: about five pins fit in the 200-character setting, and a pin past that is refused with a message.
  • Spend: the spend tile uses the viewing admin's account ceiling and spend. With no ceiling set it shows spend alone.
  • Tests I changed: the old tests read the admin's asks from /. I pointed those at /asks, in asks*, holds, review-wait, web-apps and studio-door. The old assertions were right for the old home. test/live-pages.test.ts needed no change in the end.
  • Dependencies: none added.

Try it Sign in as an admin and open /: the KPI row appears with no asks list. Open a board, click "Pin to home", and go back to /. Unpinning from either place removes the panel.

Closes #2665

commented

The owner's home now shows a row of KPIs and any pinned board panels, and it no longer has a "for you" or asks list.

bun x tsc --noEmit is clean. I ran the new test/home-kpis.test.ts and about 1,500 existing tests that touch the home and asks pages. They pass except one chromium look-capture test, which needs /usr/bin/chromium and failed in this sandbox. I did not run the full gate; the forge runs it on push.

What changed

  • No to-do list for the owner: an admin who is a person gets no asks list on /. Their asks are on /asks, which still has bulk preview, receipts and undo. A bulk receipt (/?op= or /?decided=) redirects to /asks. Everyone else's home is unchanged.
  • KPI row: six tiles, each linking to the page or board it comes from: landings per hour (with a 24 h sparkline), live version and when it went live, median check time, builders at work of slots, today's spend of the daily ceiling, and age of the last off-box backup. The row is plain data in src/core/kpis.ts, drawn in src/web/studio/home_owner.ts. The tiles wrap in a CSS grid, so they fit two per row at 360px; I did not look at it in a browser.
  • Pinning: every panel on /boards/:slug has "Pin to home" or "Unpin from home". Pinned panels draw under the KPIs with Up, Down and Unpin, in the owner's order (POST /home/panels).
  • Safeguards on pinning: the route is owner-only and same-origin checked, validates the slug and index, and only follows a local back path. The pin list is one user_setting row, so there is no migration.
  • Link and docs: the board page's Asks link now goes to /asks. The README says how it works.

Choices and limits

  • Landings are merged pulls: "landings per hour" counts merged pulls into a default branch. It does not walk git for non-empty commits on main.
  • Pins can drift: a pin names its board and the panel's position. Removing or reordering panels on that board can leave the pin pointing at a different panel. A pin whose panel is gone is skipped.
  • Pin cap: about five pins fit in the 200-character setting, and a pin past that is refused with a message.
  • Spend: the spend tile uses the viewing admin's account ceiling and spend. With no ceiling set it shows spend alone.
  • Tests I changed: the old tests read the admin's asks from /. I pointed those at /asks, in asks*, holds, review-wait, web-apps and studio-door. The old assertions were right for the old home. test/live-pages.test.ts needed no change in the end.
  • Dependencies: none added.

Try it Sign in as an admin and open /: the KPI row appears with no asks list. Open a board, click "Pin to home", and go back to /. Unpinning from either place removes the panel.

commented

Parked by the crew: the check failed ("a wave proposal is one inbox card > home shows the Redirect box on the card, and Later's way back") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs