Repository navigation
Widget: draw the resting capsule chat circle at 58px - #499
Merged
Merged
Conversation
The capsule's chat circle is drawn 25% larger while the panel is closed (scale plus a 6px translate, so its box stays 46px and its bottom-right corner stays put) and settles to 46px as the panel opens. The collapsed label moves beside the larger circle. Reduced motion changes the size at once. Bubble communities are unchanged. Tested: bun frontend/test-widget-notebook-tab.js (164 passed), test-widget-capsule.js (133), test-widget-first-paint.js (82); seven mutations each caught and restored.
first-paint-check.mjs opens and closes NEMAR's panel and samples the chat circle on every frame: 58px to 46px and back through frames in between, its corner 20px from both edges in every frame, and the panel and indicator where they were. Tested: bun frontend/browser-harness/first-paint-check.mjs --serve (62 passed); removing the translate, moving it to another curve, and dropping the transition each fail it.
Tested: docs only.
Contributor
Preview Deployment
This preview will be updated automatically when you push new commits. |
Hovered at rest, the capsule's chat circle takes its 5% growth in its scale and translate instead of the shared transform: scale(1.05) around its center, so its bottom-right corner stays put, as it does through open and close. Rewords the 6px comment. Tested: bun frontend/test-widget-notebook-tab.js (168 passed); a wrong hover translate fails it.
first-paint-check.mjs now hovers the resting circle with a real pointer (corner held, 60.9px), presses it 3px inside the 58px circle and 9px outside its 46px box through Input.dispatchMouseEvent (the panel opens), and repeats the open and close sampling at 390px wide. Tested: bun frontend/browser-harness/first-paint-check.mjs --serve (102 passed); overflow: hidden on the capsule and dropping the hover rule each fail it.
Tested: docs only.
Member
Author
Review response
Also from a second review pass (Sonnet), both suggestions:
Reruns: |
14 of 24 tasks
…capsule-size # Conflicts: # CHANGELOG.md
This was referenced Sep 24, 2026
Merged
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.
Closes #490
With the panel closed, a capsule community's chat circle is drawn 25% larger (58px, its icon about 26px) so the launcher is easy to see; it settles to today's 46px as the panel opens, and grows back when it closes.
How
scale: 1.2609andtranslate: -6px -6pxunder.osa-chat-widget:not(.chat-open) .osa-launcher-capsule .osa-chat-button. The button's box stays 46px, so the indicator (positioned fromoffsetLeft/offsetTop), the pill, the notebook and HPC circles and the panel'sright: calc(20px + 46px + 7px + 12px)are identical open or closed, and nothing reflows while it shrinks.scale: 1.3239; translate: -7.45px -7.45px; transform: none) in place of the sharedtransform: scale(1.05), so its corner holds on hover too. The open state's hover is unchanged.right: 88px; bottom: 29px: the same 10px gap and vertical center the bubble's label has beside its 56px. It is hidden while the panel is open.prefers-reduced-motion: reduce: the capsule's chat button was already in the reduced-motion block, so the size changes at once; the comment there now says so, and a test holds it.scaleandtranslateproperties draws today's 46px. The pop-out has no launcher, so it is unaffected; a bubble community's selectors never match.Done when
frontend/test-widget-notebook-tab.js(closed:scale1.2609 andtranslate-6px -6px on a 46px box, 58/46 and 6px checked numerically, scale and translate on one timing, the other circles unscaled; open: no scale, the panel where it was; closed again; the bubble unscaled; under a reduced-motion device, 1ms transitions),frontend/test-widget-first-paint.js(drawn at 58px from the first frame of a remembered load),frontend/test-widget-capsule.js(the label's place for the capsule, and the bubble's unchanged 86px/28px).docs/community-widget.md"Launcher" section updated (the resting size, how it is drawn, the transition, reduced motion, the Chrome check); CHANGELOG entry under[Unreleased].Tests
frontend/browser-harness/first-paint-check.mjs --serve(in CI) now, on both devices: hovers the resting circle with a real pointer (to 60.9px, corner held in every frame); presses it throughInput.dispatchMouseEvent3px inside the 58px circle and 9px outside its 46px box, where the browser's hit test must find the button and the panel must open; and opens and closes the panel at 1440px and at 390px wide (the row layout), sampling the chat circle on every animation frame from just before the click: 58px to 46px and back through 7 frames in between, its corner 20px from both edges in all ~44 frames, the panel where it was (85px from the right edge, 20px at 390px) and the indicator exactly behind the circle. 102 checks pass (42 before).tests.ymlpasses (widget suites: tools 312, capsule 133, color scheme 126, notebook tab 168, first paint 82, dataset questions 60, pop-out 132);uv run pytest --ignore=tests/test_integration -m "not network"2924 passed, 21 skipped;uv run ruff check .clean;popout-check.mjs --serve49 passed;color-scheme-check.mjs --servepassed.Mutation checks
Each applied alone, the named test run, then restored and the restore confirmed by comparing
git diff --statbefore and after:translateat restscaleat rest:not(.chat-open).osa-launcher-capsuletranslateon another duration and curveoverflow: hiddenon the capsule (clips the overflow)