Skip to content

TigerButton: hosted busy spinner for the Google button — 1.6.4 - #267

Merged
WebTigers merged 1 commit into
mainfrom
fix/gsi-button-busy-state
Sep 14, 2026
Merged

WebTigers merged 1 commit into
mainfrom
fix/gsi-button-busy-state

Conversation

@WebTigers

Copy link
Copy Markdown
Owner

Summary

  • TigerButton.busy() prepended its injected spinner to the <button>; on the gsi-material-button that broke the flex layout and wrapped the label to a second line during the save (visible in the OAuth demo recording).
  • New opt-in data-tg-busy-host on a descendant: the spinner is appended there instead. All other buttons unchanged.
  • First tests for tiger.button.js (4, mutation-checked: reverting the fix fails the placement test), added to the javascript CI job.
  • Version 1.6.4.

Test plan

  • node tests/js/tiger.button.test.js → 4 pass; with the fix reverted → placement test fails.
  • Landed on tiger-dev; served /_theme/js/tiger.button.js carries the change.

🤖 Generated with Claude Code

https://claude.ai/code/session_01L8p9pLJ3DFstG3xZuh2QgZ

…ays inside its layout

busy() prepended the injected spinner to the <button>, which on the
gsi-material-button became a third child ahead of the flex content
wrapper and wrapped "Continue with Google" onto a second line for the
duration of the save. A descendant marked data-tg-busy-host now hosts
the spinner (appended after its label); default behaviour is unchanged
for every other button. tests/js/tiger.button.test.js covers both
placements, done(), and the FontAwesome swap path; wired into the
javascript CI job. Version 1.6.4.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01L8p9pLJ3DFstG3xZuh2QgZ
@WebTigers
WebTigers merged commit 136ef37 into main Sep 14, 2026
14 checks passed
@WebTigers
WebTigers deleted the fix/gsi-button-busy-state branch September 14, 2026 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant