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

Home: buttons never show a loading spinner at rest #3056

Parked opened this in answer to
Closed without merging

Buttons no longer spin at rest: the loader icon now turns inside a button only while that button is aria-busy="true". Cause: two resting buttons used the loader icon, and .ico-loader always animates. These were "Check again" on the pull page and the unblock button on the stalled-step card on Home.

Notes

stopped parked by the crew deploy 3cb9cfd

opened this

Buttons no longer spin at rest: the loader icon now turns inside a button only while that button is aria-busy="true".

  • Cause: two resting buttons used the loader icon, and .ico-loader always animates. These were "Check again" on the pull page and the unblock button on the stalled-step card on Home.
  • Fix:
    • Both buttons now use the play icon, which other buttons already use.
    • components.ts has a rule so any .btn .ico-loader sits still unless the button is busy. A future loader in a button can't spin at rest.
  • Test: test/button-rest.test.ts checks the stylesheet rule and that no source gives a button the loader as its resting icon.
  • Why it was parked: the earlier check failed on /map on the forge-sized fixture, warm, a timing test in test/map-cache.test.ts. This change touches no /map code. Here that suite passes, with p95 at 41.6 ms and 38.7 ms against what looks like a 50 ms limit, so it is flaky on a loaded machine. I left that test alone. If it fails again, the /map timing needs its own issue.
  • Checks run here: bun test test/button-rest.test.ts test/map-cache.test.ts passes (8 tests). I couldn't run the type check, because bun x tsc failed with a read-only tempdir error and tsc isn't installed in node_modules.
  • Left out: I didn't add a spinner to the busy state of any button. The CSS supports it once something sets aria-busy.
  • Push: I added an empty commit so the forge re-runs the check on the branch.

To try it, open Home or a pull with a stalled step and check that the button shows a play icon that stays still.

🤖 Generated with Claude Code

Closes #3039

commented

Buttons no longer spin at rest: the loader icon now turns inside a button only while that button is aria-busy="true".

  • Cause: two resting buttons used the loader icon, and .ico-loader always animates. These were "Check again" on the pull page and the unblock button on the stalled-step card on Home.
  • Fix:
    • Both buttons now use the play icon, which other buttons already use.
    • components.ts has a rule so any .btn .ico-loader sits still unless the button is busy. A future loader in a button can't spin at rest.
  • Test: test/button-rest.test.ts checks the stylesheet rule and that no source gives a button the loader as its resting icon.
  • Why it was parked: the earlier check failed on /map on the forge-sized fixture, warm, a timing test in test/map-cache.test.ts. This change touches no /map code. Here that suite passes, with p95 at 41.6 ms and 38.7 ms against what looks like a 50 ms limit, so it is flaky on a loaded machine. I left that test alone. If it fails again, the /map timing needs its own issue.
  • Checks run here: bun test test/button-rest.test.ts test/map-cache.test.ts passes (8 tests). I couldn't run the type check, because bun x tsc failed with a read-only tempdir error and tsc isn't installed in node_modules.
  • Left out: I didn't add a spinner to the busy state of any button. The CSS supports it once something sets aria-busy.
  • Push: I added an empty commit so the forge re-runs the check on the branch.

To try it, open Home or a pull with a stalled step and check that the button shows a play icon that stays still.

🤖 Generated with Claude Code

commented

Parked by the crew: the check failed ("design check: nothing added outside the system (#2678) > the tree is no worse than its baseline") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs