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

The studio says what just changed: a live swap announces itself #93

shipped production is serving it opened this has it

Landed in pull #115 · run

opened this

Since #89 the app's studio page learns that a preview is serving the instant it serves — and says nothing. refreshApp (src/web/live.ts:139) fetches /app/state and replaces #app-head and #app-previews, then returns: onEvent takes the deploy branch first (live.ts:171) and never reaches the line that sets the polite status (live.ts:176). So the moment this whole direction is named for is the one moment the page is silent, while a stray comment on another page announces New activity on this page.

The parts are already there: liveMount renders <p id="live-status" role="status" aria-live="polite"> (live.ts:57-62), and the fragment knows exactly what changed.

Acceptance

Files I expect to change

src/web/live.ts, test/live-pages.test.ts, test/studio.test.ts.

Risks

refreshApp collapses a burst into one fetch; the announcement must collapse with it — three events for one push are one sentence, not three. Keep the string building in the client tiny: if the wording has to come from the server, put it in the fragment as a data attribute rather than growing the script.

Suggested: Juniper.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs