Skip to content

Spin the refresh icon while a story refreshes - #1706

Merged
mockdeep merged 1 commit into
mainfrom
rf-refresh-spinner
Nov 28, 2026
Merged

mockdeep merged 1 commit into
mainfrom
rf-refresh-spinner

Conversation

@mockdeep

Copy link
Copy Markdown
Collaborator

What

Spin a story's refresh icon while its refresh request is in flight,
using the aria-busy attribute Turbo sets on the submitting form.

Add a system spec for it, with an optional delay on the test feed
server so the loading state lasts long enough to check.

Why

Refreshing gave no feedback until the new content appeared. This also
gives the tutorial page a refresh state it can imitate later.

Notes

Reorder the .story-refresh properties to match stylelint's expected
order, so the stylelint baseline's offense count is accurate again.

Pin the clock in the sample story component spec. It compared local
time with UTC and failed every evening.

**What**

Spin a story's refresh icon while its refresh request is in flight,
using the `aria-busy` attribute Turbo sets on the submitting form.

Add a system spec for it, with an optional `delay` on the test feed
server so the loading state lasts long enough to check.

**Why**

Refreshing gave no feedback until the new content appeared. This also
gives the tutorial page a refresh state it can imitate later.

**Notes**

Reorder the `.story-refresh` properties to match stylelint's expected
order, so the stylelint baseline's offense count is accurate again.

Pin the clock in the sample story component spec. It compared local
time with UTC and failed every evening.
@mockdeep mockdeep self-assigned this Nov 28, 2026
@mockdeep
mockdeep enabled auto-merge (squash) November 28, 2026 00:22
@mockdeep
mockdeep merged commit 895e096 into main Nov 28, 2026
4 checks passed
@mockdeep
mockdeep deleted the rf-refresh-spinner branch November 28, 2026 00:25
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