Repository navigation
fix: restore a feed's scroll when its refresh hadn't landed, and give the OP badge a screen-reader name - #359
Merged
Conversation
… the OP badge a screen-reader name - Feed: a cached list left before its refresh landed is saved as stale. Coming back restores its scroll and still runs the refresh, on desktop and in the mobile viewer. - OP badge: the visible "OP" is aria-hidden, with a screen-reader-only "Original poster" next to it, instead of aria-label on a plain span, which axe flags (aria-prohibited-attr). - Test: pin the second card's comment count in a StoryCard prefetch test. A random one like 142 also matched /42 comments/, failing about 1 run in 100.
therealsama
force-pushed
the
fix/followups-scroll-op-badge
branch
from
December 1, 2026 23:19
6612032 to
d4be78c
Compare
therealsama
enabled auto-merge
December 1, 2026 23:47
kplachkov
approved these changes
Dec 1, 2026
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.
Fixes the two known limitations left by #358, and a flaky unit test.
What changed
stale, so coming back restores your scroll and runs the refresh it never got. The mobile viewer reads the same saved state, so it refreshes too.aria-labelon a plainspanisn't read by all screen readers, and axe flags it (aria-prohibited-attr). The visible "OP" is nowaria-hidden, with a screen-reader-only "Original poster" next to it. It looks the same.StoryCardtest. One prefetch test gave a second card a random comment count, so its/42 comments/query also matched 142 or 242 and failed about 1 run in 100. The count is now fixed.Testing
npm run -s lint: passednpm run -s typecheck: passednpm run -s test:run: 1049 passednpx playwright test --project=chromium --project="Mobile Chrome": 433 passed, 9 skippedStoryListandSwipeStoryViewer, an updated one inuseInfiniteStories, plus updated OP assertions inCommentandCommentArticle. Each fails without its fix.Known limitations