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.
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.
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/stateand replaces#app-headand#app-previews, then returns:onEventtakes 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:
liveMountrenders<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
refreshAppcollapses 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.