Repository navigation
Pin staging to the widget's first-paint fix - #354
Merged
Merged
Conversation
Moves test.nemar.org's widget to osa 1a79aa8 (osa PR #476), which draws NEMAR's look on the first frame instead of the default blue bubble, and records the update in ADR 0018. Tested: SRI hash computed from the commit's file and matched against jsDelivr's bytes; bun run test (2409 pass), bun run lint.
Deploying nemar-website with
|
| Latest commit: |
f7d52f9
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://7655d03d.nemar-website.pages.dev |
| Branch Preview URL: | https://chore-pin-osa-first-paint.nemar-website.pages.dev |
Review of #354: semantic line breaks, one sentence per line, and the stored API endpoint named beside the widget block. Tested: text only; bun run lint unaffected (src only).
Contributor
Author
Review responseOne Sonnet review. It recomputed the SRI hash from jsDelivr's bytes (matches), confirmed both files carry the same URL and hash and that nothing else still names the old pin, and checked the ADR's claims against the widget at
|
This was referenced Sep 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Moves staging's OSA widget pin from
98ebf1dto1a79aa8(OpenScience-Collective/osa#475, osa PR #476), and records the update in ADR 0018.The widget drew its built-in look on every page load, a 56px bubble in OSA's default blue for about half a second, then shrank to NEMAR's capsule and faded to NEMAR's colors when the community config arrived. It now remembers the community's public widget block in
localStorageand draws it on the first frame of the next load; a first visit keeps the launcher hidden until the config arrives, for at most 1.5 seconds.Nothing on this site changes beyond the pin: the fix is inside the widget, and
localStorageis not governed by the Content Security Policy (CSP).Changes
.github/workflows/deploy-test.ymlandwrangler.test.toml:PUBLIC_OSA_WIDGET_SRCat1a79aa83ff9663b2de968e506968b1a15049cedb, with its SRI hash.Testing
frontend/osa-chat-widget.jsand matched against the bytes jsDelivr serves.bun run test: 2409 pass, 4 skipped.bun run lint: clean.first-paint-check.mjsin Chrome: no frame in the default look on a first visit or a reload, NEMAR light and dark (42/42).Production is unchanged.