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

Follow upstream's "last checked" speaks the UI's one clock: `time()`, not a hand-rolled HH:MM UTC #16902

Merged opened this

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

Merged

The About line and the settings card now say "last checked" using the UI's own time(), so it reads "5m ago" with the exact instant in datetime and title. The hand-rolled HH:MM UTC clock is gone. bun x tsc --noEmit is clean and test/upstreamfollow.test.ts passes (34 tests).

Notes

opened this

The About line and the settings card now say "last checked" using the UI's own time(), so it reads "5m ago" with the exact instant in datetime and title. The hand-rolled HH:MM UTC clock is gone.

bun x tsc --noEmit is clean and test/upstream_follow.test.ts passes (34 tests). I did not run the rest of the suite; the forge runs the full check on push.

  • Page: clock() is deleted from src/web/pages/upstream-follow.ts. All three of its uses now call time(): the About line, the settings card's standing line and the per-source "checked" line.
  • Action: clockWords is deleted from src/actions/upstream_follow.ts, since nothing else used it.
  • Terminal: the following row in src/tui/screens/about.ts already used ago(), so it needed no change and the two doors agree. The commit line says No door: for that reason.
  • Docs: docs/ORIGINS.md now says "last checked 5m ago".
  • Test: test/upstream_follow.test.ts checks that the About line says 5m ago and carries the exact instant in datetime, and that no HH:MM remains. It builds a full Ctx rather than casting.

I left the 5m-ago wording in docs/ORIGINS.md as the issue gave it. I added no dependency and no new egress.

An earlier try declined because the code lived in pull #3722; that code is on main now, so the issue was workable.

The pre-push hook wanted a Try: commit line, so there is an empty commit with one.

Try it: as an admin of a repository that follows an upstream, open its About card. It should say "last checked 5m ago", and hovering shows the exact time. The review block for this page change is not written.

🤖 Generated with Claude Code

Closes #4016

2 earlier comments
commented

The About line and the settings card now say "last checked" using the UI's own time(), so it reads "5m ago" with the exact instant in datetime and title. The hand-rolled HH:MM UTC clock is gone.

bun x tsc --noEmit is clean and test/upstream_follow.test.ts passes (34 tests). I did not run the rest of the suite; the forge runs the full check on push.

  • Page: clock() is deleted from src/web/pages/upstream-follow.ts. All three of its uses now call time(): the About line, the settings card's standing line and the per-source "checked" line.
  • Action: clockWords is deleted from src/actions/upstream_follow.ts, since nothing else used it.
  • Terminal: the following row in src/tui/screens/about.ts already used ago(), so it needed no change and the two doors agree. The commit line says No door: for that reason.
  • Docs: docs/ORIGINS.md now says "last checked 5m ago".
  • Test: test/upstream_follow.test.ts checks that the About line says 5m ago and carries the exact instant in datetime, and that no HH:MM remains. It builds a full Ctx rather than casting.

I left the 5m-ago wording in docs/ORIGINS.md as the issue gave it. I added no dependency and no new egress.

An earlier try declined because the code lived in pull #3722; that code is on main now, so the issue was workable.

The pre-push hook wanted a Try: commit line, so there is an empty commit with one.

Try it: as an admin of a repository that follows an upstream, open its About card. It should say "last checked 5m ago", and hovering shows the exact time. The review block for this page change is not written.

🤖 Generated with Claude Code

commented

<!-- look-pages f2d7832743a9 --> Look pages for f2d7832, from the gate:

  • look pages (inferred): this pull changes src/web/pages/upstream-follow.ts; the forge pictures /settings/crew (src/web/pages/upstream-follow.ts), /settings/crew?help (src/web/pages/upstream-follow.ts), /settings/captain (src/web/pages/upstream-follow.ts) and 4 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
commented

The gate's look-pages note is now answered with a No look: waiver, in an empty commit pushed to the same branch. No code changed in this round.

The gate inferred pictures of /settings/crew, /settings/captain and four more pages because their routes import src/web/pages/upstream-follow.ts. I did not run the picture pipeline or any tests for this commit.

The waiver stands because the "last checked" line only shows on a repository that follows an upstream. As far as I can tell, no page in app.looks seeds one, so the before/after pictures would not show the change. I did not open forge.json to confirm this. test/upstream_follow.test.ts reads the rendered About line instead and checks the relative text and the datetime attribute.

If you want a picture anyway, say which page to seed and I'll add a Looks: line.

The three other recurring refusals are already met. The commit lines carry (#4016) and say No door: because the terminal already uses ago(). The test builds a full Ctx rather than casting. clockWords is deleted rather than left unused, so the dead-code check has nothing to flag.

🤖 Generated with Claude Code

Sign in to join this conversation.

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

Keyboard shortcuts

Docs