Skip to content

ci-link - Restore feature#8944

Merged
SunsetTechuila merged 5 commits intorefined-github:mainfrom
blzsaa:fix-broken-ci-link
Feb 5, 2026
Merged

ci-link - Restore feature#8944
SunsetTechuila merged 5 commits intorefined-github:mainfrom
blzsaa:fix-broken-ci-link

Conversation

@blzsaa
Copy link
Contributor

@blzsaa blzsaa commented Feb 4, 2026

Update the anchor according to the UI changes on GitHub.

closes #8943

Test URLs

https://github.com/refined-github/refined-github

Screenshot

Without this:
image
With this:
image

@github-actions github-actions bot added the bug label Feb 4, 2026
@github-actions github-actions bot changed the title fix broken ci-link fix broken ci-link Feb 4, 2026
@blzsaa blzsaa force-pushed the fix-broken-ci-link branch from fa23249 to 62660b6 Compare February 4, 2026 13:26
@blzsaa blzsaa marked this pull request as ready for review February 4, 2026 13:27
@SunsetTechuila SunsetTechuila changed the title fix broken ci-link ci-link - Restore feature Feb 4, 2026
@blzsaa blzsaa closed this Feb 5, 2026
@blzsaa blzsaa force-pushed the fix-broken-ci-link branch from 62660b6 to c75c0f7 Compare February 5, 2026 08:21
@blzsaa blzsaa reopened this Feb 5, 2026
Update the anchor according to the UI changes on GitHub.
@blzsaa blzsaa force-pushed the fix-broken-ci-link branch from c75c0f7 to 9d7f374 Compare February 5, 2026 08:29
@blzsaa blzsaa requested a review from SunsetTechuila February 5, 2026 08:38
@SunsetTechuila
Copy link
Member

Please do not force-push without good reason. This creates noise and makes review process harder

@SunsetTechuila
Copy link
Member

I decided it would be faster to commit the changes myself

await expectToken();

observe([
'div[data-testid="top-nav-center"] li[class^="prc-Breadcrumbs-ItemWrapper"]:last-child a[class*="prc-Breadcrumbs-Item"]',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How many breadcrumbs are on the page? The first part of the selector seems redundant.

Maybe even the second one. How about li:last-child > a[class*="prc-Breadcrumbs-Item"]. Note the additional > since li could be any parent otherwise

Copy link
Member

@SunsetTechuila SunsetTechuila Feb 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How many breadcrumbs are on the page?

Technically, these are breadcrumbs too, but yes, you can remove the div[data-testid="top-nav-center"] part - I just decided to play it safe

Image

li:last-child > a[class*="prc-Breadcrumbs-Item"]

I like that

Copy link
Member

@fregante fregante left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems ok as long as it works only in the desktop view and it doesn't duplicate/break when the viewport is too small.

@SunsetTechuila
Copy link
Member

msedge_pDZ5mkc3Yg

@SunsetTechuila SunsetTechuila merged commit f978f5e into refined-github:main Feb 5, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

ci-link is broken

3 participants