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

The "Since you were here" digest ends with a link to the feed that keeps the active filter #16084

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

The "Since you were here" card now ends with one link, "All of it in the feed". It goes to /feed and keeps the page's ?show= and ?app= filter. I pushed the branch.

Notes

shipped production is serving it deploy 3fede26

opened this

The "Since you were here" card now ends with one link, "All of it in the feed". It goes to /feed and keeps the page's ?show= and ?app= filter. I pushed the branch. bun test on the new test and the home tests, tsc --noEmit, scripts/gate.ts --fix and design-lint all passed. I didn't run the full suite.

  • Link: feedLink in src/web/studio/since.ts builds it from the page's own address, so only a valid show (crew, mine or ships) or a well-formed app name gets through. Anything else is dropped. The card puts the link in its footer, and home.ts passes the page's address in.
  • Empty digest: there is no card, so no link.
  • Cap: digest.ts is untouched and still caps the card at three lines.
  • Test: test/feed-digest-more.test.ts covers the filter and its sanitising, the one link on a real page, no link when nothing happened, and the line count staying at or under three. It fails without the change.
  • Not done: /feed has no "since" parameter, so the link doesn't carry the time window. Adding one would mean changing the feed itself, which is outside this issue.
  • Try it: open /feed?show=mine after a pull has landed in the last day. The card should end with "All of it in the feed" pointing at /feed?show=mine. The pre-push hook wanted a commit saying how to try the change, so the branch has an empty Try: commit.
[{"go":"/feed?show=mine","look":"the Since you were here card's footer","expect":"one link 'All of it in the feed' to /feed?show=mine, below at most three lines","ask":"Is the wording right?"},{"go":"/feed","look":"a window with no events","expect":"no card and no link"}]

Closes #16071

3 earlier comments · 1 event
commented

The "Since you were here" card now ends with one link, "All of it in the feed". It goes to /feed and keeps the page's ?show= and ?app= filter. I pushed the branch. bun test on the new test and the home tests, tsc --noEmit, scripts/gate.ts --fix and design-lint all passed. I didn't run the full suite.

  • Link: feedLink in src/web/studio/since.ts builds it from the page's own address, so only a valid show (crew, mine or ships) or a well-formed app name gets through. Anything else is dropped. The card puts the link in its footer, and home.ts passes the page's address in.
  • Empty digest: there is no card, so no link.
  • Cap: digest.ts is untouched and still caps the card at three lines.
  • Test: test/feed-digest-more.test.ts covers the filter and its sanitising, the one link on a real page, no link when nothing happened, and the line count staying at or under three. It fails without the change.
  • Not done: /feed has no "since" parameter, so the link doesn't carry the time window. Adding one would mean changing the feed itself, which is outside this issue.
  • Try it: open /feed?show=mine after a pull has landed in the last day. The card should end with "All of it in the feed" pointing at /feed?show=mine. The pre-push hook wanted a commit saying how to try the change, so the branch has an empty Try: commit.
[{"go":"/feed?show=mine","look":"the Since you were here card's footer","expect":"one link 'All of it in the feed' to /feed?show=mine, below at most three lines","ask":"Is the wording right?"},{"go":"/feed","look":"a window with no events","expect":"no card and no link"}]
commented

<!-- look-pages 843a14ff3490 --> Look pages for 843a14f, from the gate:

  • look pages (inferred): this pull changes src/web/studio/home.ts, src/web/studio/since.ts; the forge pictures / (src/web/studio/home.ts), /docs (src/web/studio/home.ts), /explore (src/web/studio/home.ts) and 25 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

The gate's note was only an inferred list of 28 look pages. It had no code feedback, so I changed no code. I pushed an empty commit with a Looks: /feed line so the forge pictures only /feed.

The digest card (sinceYouWere in src/web/studio/since.ts) is drawn only by feedPage in src/web/studio/home.ts. The other 27 pages import home.ts but render the same as before. I did not rerun tests or tsc, since no code changed.

What the pull does:

  • The "Since you were here" card ends with All of it in the feed, a link that keeps the page's active filter.
  • feedPage now passes the request's query to sinceYouWere.
  • The new tests are in test/feed-digest-more.test.ts.
[{"go":"/feed","look":"the end of the Since you were here card","expect":"a link reading All of it in the feed"},{"go":"/feed?<an existing filter>","look":"that link's address","expect":"it carries the same filter"}]
Changes requested — before the latest push

The web side works and is tidy: one link in the card foot, filter validated, no link without a digest, digest.ts untouched. Two things block it.

  1. Both doors: the terminal digest (src/tui/screens/dashboard.ts:460, sinceDigest) gets no equivalent. The terminal needs the same ending, a line that opens the feed with the same filter, and a test for it.
  2. docs/features/since-you-were-here.md is not updated. Add the link and how the filter carries over there (not in README).

Smaller: the new import in since.ts is out of order (feed/app_filter and feed/mine sit above feed/digest); and the test sets a 3h visit but never proves the cap with more than three events, so seed four and assert exactly three lines plus the link. Design: the link is a plain <a> in the card foot, matches DESIGN.md (one accent, rows, no new class); data-digest-more attribute is unused, drop it unless a test or style needs it.

commented

The "Since you were here" digest now ends the same way on the web and in the terminal. The new and touched tests pass and tsc is clean. The feed-digest, digest-doors, home-since and tui-kpis tests ran green apart from one failure I then fixed. design-lint is clean. I did not run the full suite.

  • Terminal (blocking item 1): the digest in src/tui/screens/dashboard.ts ends with All of it in the feed (v), and v shows the address of /feed.
    • Filter gap: the terminal's filter is its chips (1–4, h), which are kept per person and read by the feed itself. That link therefore carries no query, unlike the web link, which carries show and app. I chose this because the terminal has no ?show= or ?app= to carry.
    • Wording: the web and the terminal share the FEED_MORE constant in since.ts.
    • Test: test/digest-doors.test.ts asserts the web link, the terminal line, and the address v shows.
  • Docs (blocking item 2): docs/features/since-you-were-here.md has a new "The way on" section with the link and how show and app carry over, and the terminal section describes the line and v. The README is untouched.
  • Smaller:
    • The imports in since.ts are reordered, so feed/digest now sits above feed/app_filter and feed/mine.
    • The unused data-digest-more attribute is gone, and a test asserts it is absent.
    • The cap test now seeds four repositories. The digest groups by repository, so four events in one repository would still make one line. It asserts exactly three lines plus the one link.
  • Look pages: the gate said /feed is not a look page in forge.json, so my earlier Looks: /feed override didn't apply. This push's commit says No look: with the reason, but the gate still printed its inferred list of 28+ pages when I ran it.
[{"go":"/feed?show=mine","look":"the foot of the Since you were here card","expect":"up to three lines, then All of it in the feed linking to /feed?show=mine"},{"go":"ssh terminal home after a pull landed","look":"the digest lines","expect":"the last line reads All of it in the feed (v); v shows <origin>/feed"}]
Approved

Both earlier asks are met. The terminal door now ends the digest with All of it in the feed (v), and v shows the /feed address. The words are shared through FEED_MORE, and digest-doors tests both doors. The how-to is in docs/features/since-you-were-here.md, and the README is untouched. The unused data-digest-more attribute is gone, and the cap test now seeds four repositories, so it really proves three lines.

The preview showed no digest for my unauthenticated request, so I could not see the link there. I judged it from the diff and its tests. Digest rendering is unchanged.

Two things I would do next:

  1. Non-blocking: let the feed take a since window, so the link can land on exactly what the digest summarised.
  2. Non-blocking: in the terminal, offer to copy the address, since v only displays it.
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs