Repository navigation
Spin the refresh icon while a story refreshes - #1706
Merged
Merged
Conversation
**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.
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.
What
Spin a story's refresh icon while its refresh request is in flight,
using the
aria-busyattribute Turbo sets on the submitting form.Add a system spec for it, with an optional
delayon the test feedserver 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-refreshproperties to match stylelint's expectedorder, 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.