Public: anyone can read this; the crew can change it.
A forge's people list ranks by ships and forks and says why, on the page and in a test #15787
Check · Review · Land · Live done — Landed and live in production.
The explorer's people list now ranks by ships and forks in the last 30 days, then by how lately they shipped. Each person row says its numbers in words. tsc, design-lint and 407 explore, front and people tests pass.
shipped production is serving it deploy 3fede26
7 earlier comments
The people view now says why it is ordered that way, and your four points are addressed. The pull covers four things: the ranking, the numbers on each row, the sentence above the list and the terminal line. The people-rank, front, explore-count, pages-budget and tui-dashboard-explore tests pass (60 tests, 5 files), and tsc is clean. scripts/fast.ts named 3,385 test files for this diff, so I ran those five and left the rest to the forge's check. design-lint ran clean.
What changed
- Why, on the page:
/explore?kind=personnow opens with "People are ranked by ships and forks in the last 30 days, then by how lately they shipped." It replaces the old "ranked by use, forks, deployments and recency" line, which was untrue for people, and the page's meta description changed with it. The sentence is one exported constant,PEOPLE_ORDER_WORDS, shared by the page and the terminal. The apps view and the all view keep their old subtitle. - Words: rows read "3 ships, 2 forks in 30 days, shipped 4 days ago", and "never shipped" returns for a person with no ship. The sentence replaces a subtitle rather than adding to the page, so I did not need to trim words elsewhere.
- Readability: the person row's signal has its own small piece (
peopleWords) instead of sitting inside the long ternary. - Terminal: the ranking does reach
src/tui/, so I was wrong to argue "no door". Person rows in the search results now usepeopleWordsplus their app count, and the line underkind:personshows the same sentence. I added this todocs/features/explore.md. The terminal change has no test of its own, because the row-numbers helper insrc/tui/screens/dashboard.tsis internal; the only tests that touch that code are the existingtui-dashboard-exploreones. - Tests (
test/people-rank.test.ts):- The stranger test now asserts
lately(2 ships, not 7) and cid's first place with five private ships behind it, instead ofnumbers.ships. - A new fixture user, dee, gives two more cases. A ship 40 days old is excluded, and the row still reads "shipped 40 days ago". Of two forks of bea's app, one made today and one made 60 days ago, only the recent one counts, which pins
recentForksfrom the SQL. - A tie between cid and bea breaks on freshness.
- The score test compares scores one at a time, with no
1e-9arithmetic. - A page test checks the sentence on
kind=personand its absence onkind=app.
- The stranger test now asserts
Review block: this time the page does contain the sentence, so the earlier review step is now accurate.
[{"go":"/explore?kind=person","look":"One sentence under the title: People are ranked by ships and forks in the last 30 days, then by how lately they shipped. Rows read 'N ships, N forks in 30 days, shipped … ago', or 'never shipped'.","expect":"No '30d' anywhere. The order matches the sentence."},{"go":"/explore?kind=app","look":"The old subtitle about use, forks, deployments and recency","expect":"The people sentence does not appear"}]
The gate also noted that the ship helper in my test is 0.89 similar to the merge helper in test/explore-since.test.ts. I left it, because folding the two into one shared helper would touch a test outside this pull.
The preview failed because commit 10d8d89 had unresolved merge-conflict markers in src/tui/screens/dashboard.ts and src/web/studio/explore.ts. I've resolved them and pushed ccd38bb, which keeps what both sides meant: main's quiet-app note and quiet-since figures, and this pull's people sentence and people row words.
bun x tsc --noEmit is clean and no conflict markers remain in the code. The people-rank, explore-count and TUI explore tests pass (38 tests in 3 files, then 5 more in the two quiet-rank files). I did not run the full suite; the forge's check does that on this push.
The pull's earlier description still applies and nothing in it changes: the /explore?kind=person sentence, "30 days" in the row words, and the terminal line.
<!-- look-pages ccd38bb455c8 --> Look pages for ccd38bb, from the gate:
look pages (inferred): "Looks: /explore?kind=person" is not a page of app.looks in forge.json; this pull changes src/web/studio/explore.ts; the forge pictures /explore (src/web/studio/explore.ts), the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
This push fixes the one failure the pull caused: /explore's word budget (docs/design/attention-budget.json). Two of the failing tests in the check log came from that same budget. I re-ran the three test files that were green on main and red on this pull, and they pass here. I did not re-run the other four.
- Cause: a person row now reads "0 ships, 0 forks in 30 days, never shipped". That is three words more than before, so the page measured 46 words against a budget of 43.
- Fix: I raised that budget from 43 to 46 at both widths. I did not shorten the sentence, because the 30-day figures are the reason for a person's place and the issue asks the page to say so. The budget's note records the rise and cites #15754.
- Not mine:
llms-budget,pages-budgetandpage-budgetare red on main at 2917693 too, so the check does not count them against this pull. fork-last-follow(#15787): it passed on the first local run and there is no code change for it. I take the check failure to have been load on the shard, but I have not confirmed that.- Before pushing:
bun scripts/gate.ts --fixandbun x tsc --noEmitran clean. Gate printed three notes and no errors:- Two comment lines in
src/actions/explore.tsandsrc/core/front.tsare over 100 columns. I left them for the nightly rewrap. - Gate noted that
/explore?kind=personis not among the looks inforge.json. - Gate noted that
test/people-rank.test.tsis 0.89 similar to a helper intest/explore-since.test.ts.
- Two comment lines in
To try it, open /explore?kind=person on the preview and check each person row's line against the sentence under the heading.
[{"go":"/explore?kind=person","look":"a person row's line and the sentence under the Explore heading","expect":"the row says its ships and forks in 30 days, and the sentence says people are ranked by those, then by how lately they shipped"}]The gate's look-pages note is addressed. I added /explore?kind=person to app.looks in forge.json, so the forge now pictures the people list as well as /explore. The gate now reads that page as named, because the commit also carries a Looks: /explore?kind=person line. bun x tsc --noEmit is clean. I did not run any tests this round, since only forge.json and a commit message changed.
Open /explore?kind=person on the preview: each person row should say its ships and forks in 30 days, and the sentence under the heading should say why people are ranked that way.
[{"go":"/explore?kind=person","look":"a person row's line and the sentence under the Explore heading","expect":"the row says its ships and forks in 30 days, and the sentence says people are ranked by those, then by how lately they shipped"}]The preview deploy was failing because app.looks in forge.json already held 32 paths, the maximum, and my last push made it 33. I took /explore?kind=person back out, so forge.json is back to the file the previous deployment served. I haven't seen a deploy of this push, so the preview is unconfirmed. I did not re-run bun test or bun x tsc --noEmit.
The gate still prints its look-pages note about /explore?kind=person not being in app.looks. That is the same note @trevato's feedback quoted, and the forge's own words say a Looks: or No look: line in a commit overrides it. This commit carries Looks: /explore?kind=person, which names the page for the picture. I can't tell from here whether the note counts as cleared.
Putting the people page in app.looks would mean dropping one of the existing 32 paths, and which one to drop is the owner's call. The people list is visible on the preview at /explore?kind=person.
[{"go":"/explore?kind=person","look":"a person row's line and the sentence under the Explore heading","expect":"the row says its ships and forks in 30 days, and the sentence says people are ranked by those, then by how lately they shipped"}]<!-- look-pages 4d296b6b55d0 --> Look pages for 4d296b6, from the gate:
look pages (inferred): "Looks: /explore?kind=person" is not a page of app.looks in forge.json; this pull changes src/web/studio/explore.ts; the forge pictures /explore (src/web/studio/explore.ts), the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
No code change this round, so nothing is pushed.
- Red on main too:
test/pages-budget.test.tsandtest/page-budget.test.tsare red at 80dc1f0, and the check log says they are not counted against this pull. - Passes here:
test/stranger-three-screens.test.ts(the first-reach-proof test) passes alone, 11 of 11.test/billing-webhook-keeps.test.tsandtest/media.test.tsalso pass, 25 of 25. - Unrelated to this pull: the three that failed on this pull's run don't touch this pull's code. The failed-run timings are 356 ms, 1.2 s and 17 ms. I read that as load on the check machine, though I only ran each file once, so I haven't ruled out something intermittent.
I'm not changing anything to make flaky tests pass. If the check fails again on those three files, send me the assertion text from the failure.
The preview at /explore?kind=person shows the sentence "People are ranked by ships and forks in the last 30 days, then by how lately they shipped." and rows like "0 ships, 0 forks in 30 days, never shipped". The apps view keeps its old subtitle. My earlier asks are met: the sentence on the page, the terminal door with its docs line in docs/features/explore.md (README untouched), the attention budget raised with a note, and tests that pin order, tie-break, the 30-day window and private work. Next, non-blocking: (1) add a TUI test for the person row words; (2) fold the ship helper in test/people-rank.test.ts with the merge helper in test/explore-since.test.ts. Non-blocking: /explore?kind=person is still not in app.looks, because the list is at its cap.
The explorer's people list now ranks by ships and forks in the last 30 days, then by how lately they shipped. Each person row says its numbers in words.
tsc,design-lintand 407 explore, front and people tests pass. The new test fails without the change. I did not run the full suite.What changed
personScoreinsrc/actions/explore.ts, and it replaces the oldMath.maxover their apps.frontSignalsinsrc/core/front.tsnow also reportsrecentForks, the forks made in the last 30 days.peopleWordsinsrc/actions/explore.tsand are rendered insrc/web/studio/explore.ts.explore.tsandfront.ts, notsrc/feed/rank.tsorsrc/web/pages/people.tsas the issue guessed./settings/peopleis the admin page, so I left it alone.Tests
test/people-rank.test.tsseeds three people who signed up in the opposite order to their use. Ranked cid (2 ships), ann (1 ship, 2 days ago), bea (1 ship, 10 days ago), the tie between ann and bea is broken by freshness. It also covers the row words and that a fork counts as much as a ship.I also added one empty "Try:" commit, because the forge's pre-push hook requires a commit saying how to try a page change.
To try it: open
/explore?kind=person.Closes #15754