You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Features are not being applied on page change #4567
After a bit of playing around, it seems to me most of the features would rely on has-rgh-inner anyway, so maybe this could become the new default? Then features modifying the repo header or tabs (e.g. more-dropdown, ci-link, etc.) would have to explicitly specify deduplicate: 'has-rgh'.
Yes, it's probable that I missed some features since I had to go manually through most of them. In most cases fixing it should be as simple as adding deduplicate: 'has-rgh-inner'.
Activity
fregante commentedon Jul 14, 2021
Frik. Yes, I saw the bug but I always assume that it's Safari’s fault. Maybe they changed the
pjax:*events? Every GitHub extension is broken if soyakov116 commentedon Jul 14, 2021
I think the
<has-rgh>is not getting removed on page change.makes sense?
fregante commentedon Jul 14, 2021
Uhhh this is the same bug as #3945. They started changing content inside
#repo-content-pjax-container, which is a sibling ofhas-rgh.It might be worth adding a secondary
has-rgh-innerelement inside#repo-content-pjax-containerand also track that.yakov116 commentedon Jul 14, 2021
I am not going to attempt this. How do we know what features need to look at the
#repo-content-pjax-containerand what needs the other ones?cheap-glitch commentedon Jul 14, 2021
I guess there's no choice but to manually check every feature and add
deduplicate: 'has-rgh-inner'where needed?yakov116 commentedon Jul 14, 2021
Very tricky but I guess
cheap-glitch commentedon Jul 14, 2021
After a bit of playing around, it seems to me most of the features would rely on
has-rgh-inneranyway, so maybe this could become the new default? Then features modifying the repo header or tabs (e.g.more-dropdown,ci-link, etc.) would have to explicitly specifydeduplicate: 'has-rgh'.yakov116 commentedon Jul 14, 2021
Most
isRepoyakov116 commentedon Jul 14, 2021
Even show names is broken 😢
fregante commentedon Jul 14, 2021
My concern is that:
I think the logic would be:
inner? deduplicate, returninner? addinner, run, returnhas-rgh? deduplicate, returnhas-rgh, run, returnfregante commentedon Jul 15, 2021
It looks like the current code doesn’t match my suggested flow. Maybe it’s:
deduplicateto undefined, which would be the auto-mode:yakov116 commentedon Jul 19, 2021
There are still more issues.
For example
dim-botscheap-glitch commentedon Jul 19, 2021
Yes, it's probable that I missed some features since I had to go manually through most of them. In most cases fixing it should be as simple as adding
deduplicate: 'has-rgh-inner'.yakov116 commentedon Jul 19, 2021
But that runs on pages that do not have inner. (Commit pages)
cheap-glitch commentedon Jul 19, 2021
I can't reproduce, can you describe the exact steps you took?
yakov116 commentedon Jul 19, 2021
Will try later to see if I have a n issue ang will let you know
yakov116 commentedon Jul 19, 2021
LOL I think we should wait a drop.
Github needs to figure themselves out.
Go to 21.7.18...main
Then go to the pull requests