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

The forge toolbar names the app's live version and its last deploy time, read from the running record #14528

opened this

Check · Review · Land · Live — Changes were asked on this head: sentinel asked for changes (review 01m7vdkfy2gbsdxx90fm9bvpas). Next: builder, changes were asked on this head: sentinel asked for changes (review 01m7vdkfy2gbsdxx90fm9bvpas).

A reviewer asked for changes

The /forge/ door now reads "Version · deployed ". The relative time sits in a element whose title is the exact UTC time. The door tests, tsc and bun scripts/design-lint.ts pass.

Notes · 3 files · +69 −30

look green — its preview answered, ready for a look deploy 2d211ae

Check passeddeploy 2d211ae

Website spec: 26 findings (report only)

This pull asks to reach lab--forge-trevato-apps.open-platform.sh. Its preview and check reach what main reaches; the new host opens when the pull lands.

Look

8 pages beside main · 2 new to this pull

/apps

main

at 81fb265 ·

this pull

In the dark

main

at 81fb265 ·

this pull

at 2d211ae ·

/docs

main

at 81fb265 ·

this pull

In the dark

main

at 81fb265 ·

this pull

at 2d211ae ·

/explore

main

at 81fb265 ·

this pull

In the dark

main

at 81fb265 ·

this pull

at 2d211ae ·

/looks/failed

main

at 81fb265 ·

this pull

In the dark

main

at 81fb265 ·

this pull

at 2d211ae ·

/looks/missing

main

at 81fb265 ·

this pull

In the dark

main

at 81fb265 ·

this pull

at 2d211ae ·

/nope/nothing

main has no picture of /nope/nothing yet.

In the dark

main has no picture of /nope/nothing yet.

at 2d211ae ·

/notes

main

at 81fb265 ·

this pull

In the dark

main

at 81fb265 ·

this pull

at 2d211ae ·

/releases

main has no picture of /releases yet.

In the dark

main has no picture of /releases yet.

at 2d211ae ·

/review

main

at 81fb265 ·

this pull

In the dark

main

at 81fb265 ·

this pull

at 2d211ae ·

/security

main

at 81fb265 ·

this pull

In the dark

main

at 81fb265 ·

this pull

at 2d211ae ·

opened this

The /__forge/ door now reads "Version <short commit> · deployed <relative time>". The relative time sits in a <time datetime> element whose title is the exact UTC time. The door tests, tsc and bun scripts/design-lint.ts pass. I did not run bun test on the whole suite. I ran the door, toolbar-where and door-scheme tests, and I did not run toolbar-size.

  • Which commit: the preview shows the pull's last-deployed commit and production shows the newest release.
  • Source: it reads the stored deploy record through the existing readServing. There is no new query and no external request.
  • Guests: someone who can't read the repository still sees no commit id. They get "Deployed 3 h ago", and the exact time in the title.
  • Never deployed: both production and a preview say "Not deployed yet". Production used to say "not released yet", so that wording changed.
  • Production history: the "Before it" list of earlier releases stays, with relative times.
  • Tests: test/toolbar-version.test.ts covers production, a preview, never deployed, and the relative-time wording. test/apps-door-serving.test.ts is updated to the new wording, because the old "Serving …" and "Preview of #N at …" lines are gone.

I did not change the injected toolbar script, so its byte ceiling is untouched. The pill already shows "Live since …", and I left it as it was.

Closes #14520

commented

The /__forge/ door now reads "Version <short commit> · deployed <relative time>". The relative time sits in a <time datetime> element whose title is the exact UTC time. The door tests, tsc and bun scripts/design-lint.ts pass. I did not run bun test on the whole suite. I ran the door, toolbar-where and door-scheme tests, and I did not run toolbar-size.

  • Which commit: the preview shows the pull's last-deployed commit and production shows the newest release.
  • Source: it reads the stored deploy record through the existing readServing. There is no new query and no external request.
  • Guests: someone who can't read the repository still sees no commit id. They get "Deployed 3 h ago", and the exact time in the title.
  • Never deployed: both production and a preview say "Not deployed yet". Production used to say "not released yet", so that wording changed.
  • Production history: the "Before it" list of earlier releases stays, with relative times.
  • Tests: test/toolbar-version.test.ts covers production, a preview, never deployed, and the relative-time wording. test/apps-door-serving.test.ts is updated to the new wording, because the old "Serving …" and "Preview of #N at …" lines are gone.

I did not change the injected toolbar script, so its byte ceiling is untouched. The pill already shows "Live since …", and I left it as it was.

Changes requested

The code reads well and uses the existing readServing, with no new query or host. One thing blocks it: the preview at this head does not show the change. GET /__forge/ on https://lab--14528--forge-trevato-apps.open-platform.sh still returns the old line "Preview of #14528, not deployed yet", not "Not deployed yet" or "Version <sha> · deployed <time>". Fix first: push so the preview redeploys from this head, then curl /__forge/ and confirm the new wording appears. If the preview is deployed but has no deploy record for its own pull, say so in the pull and show the commit line on another preview or on production. Smaller points: (1) the exact time now lives only in the title attribute, so touch and keyboard users cannot read it. Box 1 asks for the time element and the title, so this is acceptable, but consider a note. (2) The scout says it did not run the whole door suite or toolbar-size. Run the tests that cover the door before the next push.

2 earlier comments
commented

The preview at https://lab--14528--forge-trevato-apps.open-platform.sh still shows the old line, and I haven't changed anything since the last push, so there is nothing new to push. A curl just now of /__forge/ there returns "Preview of #14528, not deployed yet". The branch is level with origin at the commit I pushed, and that commit holds the new door code.

I think the preview is serving a build from before my push and has not redeployed from this head. That is a guess: my shell can only fetch pages, so I can't read the deploy record or the preview's build.

  • Preview not checked: I could not confirm the new wording live. The other previews and production run code from before this change, so they can't show the new line either. The wording is covered by test/toolbar-version.test.ts, which checks production, a preview, and "Not deployed yet".
  • Tests: I ran every toolbar-* test, the door tests and door-scheme: 148 pass, 5 skipped, 0 fail. scripts/fast.ts found the diff too broad to name tests, so I ran those by hand.
  • Exact time: it is only in the title attribute, as the issue's first box asks. Touch and keyboard users can't read it. A visible note is a small follow-up, and I left it out to keep to the issue.
  • Release hold: the note about production rolling does not affect this change. The branch is not main and I haven't touched production.

If the preview still shows the old line after it redeploys, that deploy record needs looking at.

commented

The preview at https://lab--14528--forge-trevato-apps.open-platform.sh can't show the new wording yet, and nothing on my side is left to fix. I made no changes this round and pushed nothing, because the branch already holds the change.

  • Preview state: the preview is deployed from this head. /__forge/ there links commit/2d211ae7c850b186f2d953ce5d24abcf208a804f and shows "deployed 2026-11-20 02:47 UTC", which is exactly my pushed commit. The deploy record for its own pull exists and is correct.
  • Why the wording is old: the door is rendered by the forge proxy (src/apps/door.ts), not by the previewed app. The proxy runs the forge's own deployed code, and that is main until this pull merges. So the preview's door shows the old "Preview of #14528 at …" line, and I expect the same on every preview and on production until the merge.
  • Where the change is checked: test/toolbar-version.test.ts covers this. In it, production and a preview each show their own commit with a <time datetime> and title, and a never-deployed app shows "Not deployed yet". I also updated test/apps-door-serving.test.ts. I ran the door and toolbar tests: 148 pass, 0 fail.
  • Exact time: I kept it in the title attribute only, as the issue's first box asks. A visible note for touch and keyboard users is a small follow-up that I left out.
commented

Handed to a person by the crew: two follow-up runs on the review's changes ended without a push, so no more start here until you say what to try. (The forge posts this under the reviewer's name; the reviewer did not write it.)

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs