Repository navigation
repo-age - Restore feature - #9888
Merged
fregante merged 3 commits intoJul 28, 2026
Merged
Conversation
GitHub replaced the repo sidebar with a React version and `.BorderGrid`
no longer exists on the page, so `elementReady('.BorderGrid
.octicon-repo-forked')` resolved to `undefined` and `closestElement`
threw "base element is null or undefined".
Re-scoping the lookup to the new pane isn't enough: the icon is already
present at DOMContentLoaded, but React replaces the whole pane subtree
during hydration and discards the element we inserted. Use the selector
observer so the age is re-added when the replacement icon appears.
Fixes refined-github#9886
The feature fetches the first commit through the GraphQL API, so it must wait for a personal token like the other `api.v4` features do; otherwise `init` fails midway on token-less installs. `deduplicate: 'has-rgh-inner'` is deprecated (refined-github#5871) and no longer needed: the selector observer now handles re-insertion after soft navigations and React hydration.
fregante
approved these changes
Jul 28, 2026
Member
|
Thank you! |
repo-age - Support latest sidebar layoutrepo-age - Restore feature
|
Any chance of a release? repo-age is silently broken for everyone on 26.7.26, and the fix has been on main since the 28th. |
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 #9886
GitHub replaced the repo sidebar with a React version and
.BorderGridno longerexists on the page, so
elementReady('.BorderGrid .octicon-repo-forked')resolvedto
undefinedandclosestElementthrew "base element is null or undefined".Re-scoping the lookup to the new pane isn't enough: the icon is already present at
DOMContentLoaded, but React replaces the whole pane subtree during hydration and
discards the element we inserted. Using the selector observer re-adds the age when
the replacement icon appears.
Tested with an unpacked build in a throwaway Chromium profile (logged out, seeded
first-commitcache):.BorderGrid(before)/tree/6619Not covered: logged-in state, empty repos, forks, narrow viewports.