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

opened this

Merged 10d 15h ago, live in production

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

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
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"}]
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"}]
Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs