Repository navigation
fix(pad): show revision authors in the history banner - #8594
TomNewChao wants to merge 2 commits into
Conversation
Since in-pad history mode (ether#7659, implemented in ether#7710), the authors of the viewed revision are effectively invisible: the embedded slider bar collapses in embed mode, the #otheruserstable mirror lives in the closed users popup, and the banner showed only the version and date. This regressed from the classic timeslider page, which displayed an "Authors: ..." line under the slider. Mirror the embedded timeslider's localized authors label and list into a new #history-banner-authors span. syncAuthorsPanel now also runs on inner #authorsList / .authors-label mutations (MutationObserver, same pattern as the rev/date label bridge) so the banner stays current without a scrub; an equality guard keeps the banner's aria-live=polite region from re-announcing identical text during playback. Fixes ether#8593 Co-Authored-By: Claude Code <noreply@anthropic.com>
|
ⓘ Qodo reviews are paused because the subscription is no longer active. Ask your workspace admin to reactivate the subscription to resume reviews. Manage billing |
PR Summary by Qodofix(pad): show revision authors in the history banner
AI Description
Merge Risk
|
Code Review by Qodo
1.
|
At narrow widths the banner's single flex row squeezed the authors span to a sliver (55px at 390px viewport — just the ellipsized "Authors:" label) and wrapped the date internally across three lines. Let the banner wrap, keep the label/rev/date segments on one line, and give the authors their own full-width row below 600px. The new mobile spec asserts the page does not scroll horizontally and the authors span keeps a readable width. Co-Authored-By: Claude Code <noreply@anthropic.com>
Fixes #8593
Summary
#history-banner-authorsspan on every revision change, and clear it on exit. No new l10n keys — the label text comes from the inner timeslider's own localized.authors-label.syncAuthorsPanelnow also re-runs on inner#authorsList/.authors-labelDOM mutations (MutationObserver, same pattern as the rev/date label bridge), so the banner stays current without a scrub; an equality guard keeps thearia-live=politebanner from re-announcing identical text during playback.NEW_AUTHORDATA, so the embedded slider'sauthorDatais a load-time snapshot — authors who join/name themselves after load resolve toundefinedinsetAuthorsand are skipped. Same on the classic timeslider page; candidate upstream fix is to include revision-author data inNEW_CHANGESor revive the emission onUSERINFO_UPDATE.Banner now reads:
Viewing history | Version N | Saved <date> | Authors: <names>.Test plan
timeslider_banner_authors.spec.ts:#authorsListmutations without a slider callback (contract test; RED without the MutationObserver)pnpm run ts-checkclean🤖 Generated with Claude Code