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
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.
stopped parked by the crew deploy 8960ca8
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 insrc/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/:slughas "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
backpath. The pin list is oneuser_settingrow, 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, inasks*,holds,review-wait,web-appsandstudio-door. The old assertions were right for the old home.test/live-pages.test.tsneeded 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.
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
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 --noEmitis clean. I ran the newtest/home-kpis.test.tsand about 1,500 existing tests that touch the home and asks pages. They pass except one chromium look-capture test, which needs/usr/bin/chromiumand failed in this sandbox. I did not run the full gate; the forge runs it on push.What changed
/. 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.src/core/kpis.ts, drawn insrc/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./boards/:slughas "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).backpath. The pin list is oneuser_settingrow, so there is no migration./asks. The README says how it works.Choices and limits
/. I pointed those at/asks, inasks*,holds,review-wait,web-appsandstudio-door. The old assertions were right for the old home.test/live-pages.test.tsneeded no change in the end.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