Skip to content

dim-bots - Restore feature on new PR lists - #10300

Merged
fregante merged 12 commits into
mainfrom
claude/dim-bots
Nov 1, 2026
Merged

fregante merged 12 commits into
mainfrom
claude/dim-bots

Conversation

@fregante

@fregante fregante commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Created by Claude, will be reviewed by @fregante first.

Dims bot PRs in the new React PR lists, which don't have .opened-by, .labels or .Box-row anymore.

Fixes #9797.
Part of #10065.

Checked

  • Logged out, repo PR lists with the built extension: all 25 dependabot[bot] rows are dimmed on OctoLinker (0 before), 1 scala-steward row on spotify/scio (0 before), none on a list with only human authors.
  • Not checked: global PR search (/pulls/search, needs login) and the issue list. Reviewer: please check those.
  • Bot authors in the new list are a[data-testid="author-filter-link"] with aria-label="Filter by author <name>"; the bot label is a button[aria-label="Filter by label bot"].
  • Collapsed bot rows only show the title, like the legacy list (whose .d-block also hid the labels): the author/dates line, comments count and labels are hidden, and the title keeps the spacing align-issue-labels gives it. Checked in headless Chromium against the compiled CSS and the li markup from the list (without GitHub's own stylesheet): those parts get display: none, and everything comes back after .rgh-interacted is added. Not checked on the live page.
  • Clicking an empty area of a dimmed row undims it again: the new list li has tabindex="0", which the [tabindex] check treated as an interactive element, so it never undimmed. The row itself is now ignored by that check. Not tried in a browser.

Test URLs

@github-actions github-actions Bot added the bug label Oct 20, 2026
@fregante

Copy link
Copy Markdown
Member Author

Not fully restored: the meta rows are still visible

Screenshot 5

@fregante

Copy link
Copy Markdown
Member Author

wow, Claude can't figure this out at all :(

@fregante

Copy link
Copy Markdown
Member Author

Good enough maybe? Haven't tested everything

Screenshot 5

@fregante
fregante marked this pull request as ready for review October 25, 2026 16:59
@fregante

Copy link
Copy Markdown
Member Author

I almost YOLOed but sadly I saw it messes with commit pages:

https://github.com/rust-lang/rust/commits/main?after=c387f012b14a3d64e0d580b7ebe65e5325bcf822+34&branch=master&qualified_name=refs%2Fheads%2Fmaster

Screenshot 10
<li id="_R_5ej6l85_-list-view-node-_R_8ntej6l85_" class="listItem__X41oTe ListItem_0__wJY4ha rgh-seen-2340317026 rgh-seen-2340294923 rgh-dim-bots rgh-merge-commit" tabindex="-1" aria-label="Auto merge of #117582 - compiler-errors:uplift-canonical-var, r=jackh726. More information available below." data-testid="commit-row-item" data-commit-link="/rust-lang/rust/commit/739d55682659e4a81db6fd83f52b2491505030ea">
	<div class="container__mDVuhO ListItemTitle_0__lKl8y6" data-listview-item-title-container="true">
		<h4 class="heading__fzQskI ListItemTitle_0__lKl8y6">
SVG
			<span class="prc-Text-Text-9mHv3" data-component="Text">
				<a data-pjax="true" title="Auto merge of #117582 - compiler-errors:uplift-canonical-var, r=jackh726

				Uplift `CanonicalVarInfo` and friends into `rustc_type_ir`

				Depends on #117580 and #117578

				Uplift `CanonicalVarInfo` and friends into `rustc_type_ir` so they can be consumed by an interner-agnostic `Canonicalizer` implementation for the new trait solver ❤️

				r? `@ghost`" class="color-fg-default rgh-seen-2340229575" href="/rust-lang/rust/commit/739d55682659e4a81db6fd83f52b2491505030ea" tabindex="-1">Auto merge of</a>
				<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1977440718" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/117582" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/117582/hovercard" href="https://github.com/rust-lang/rust/pull/117582" aria-keyshortcuts="Alt+ArrowUp" tabindex="-1">#117582</a>
				<a data-pjax="true" title="Auto merge of #117582 - compiler-errors:uplift-canonical-var, r=jackh726

				Uplift `CanonicalVarInfo` and friends into `rustc_type_ir`

				Depends on #117580 and #117578

				Uplift `CanonicalVarInfo` and friends into `rustc_type_ir` so they can be consumed by an interner-agnostic `Canonicalizer` implementation for the new trait solver ❤️

				r? `@ghost`" class="color-fg-default" href="/rust-lang/rust/commit/739d55682659e4a81db6fd83f52b2491505030ea" tabindex="-1">- compiler-errors:uplift-canonical-var, r=jackh726</a>
			</span>
		</h4>
		<span class="trailingBadgesContainer__4AEjpg"></span>
		<button data-component="IconButton" type="button" data-testid="commit-row-show-description-button" aria-pressed="false" aria-expanded="false" class="prc-Button-ButtonBase-9n-Xk Button Button--iconOnly Button--invisible Button--small ml-1 prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="default" aria-labelledby="show-description-739d556" tabindex="-1">
SVG
		</button>
		<span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="s" data-component="Tooltip" aria-hidden="true" id="show-description-739d556" popover="auto">Show description for 739d556</span>
	</div>
	<div class="px-1"></div>
	<div class="container__VGL_Vt">
		<div class="inner__Rm1Enx">
			<div class="container__W45oI6">
				<div class="CommitAttributionContainer__AilSky">
					<div data-testid="author-avatar" class="AuthorAvatarContainer__vnSFNN">
						<a class="prc-Link-Link-9ZwDx rgh-seen-2340231497" data-component="Link" href="/bors" data-testid="avatar-icon-link" tabindex="-1" data-hovercard-url="/users/bors/hovercard" data-hovercard-type="user" octo-click="hovercard-link-click" octo-dimensions="link_type:self" aria-keyshortcuts="Alt+ArrowUp">
							<img data-component="Avatar" class="authorAvatarImage__5zYgDs prc-Avatar-Avatar-0xaUi" alt="bors" width="16" height="16" style="--avatarSize-regular:16px" src="https://avatars.githubusercontent.com/u/3372342?v=4&amp;size=32" data-testid="github-avatar" aria-label="bors">
						</a>
						<a class="authorHoverableLink__GBl1Aq prc-Link-Link-9ZwDx" data-component="Link" href="https://github.com/rust-lang/rust/commits/main?author=bors" aria-label="commits by bors" style="--author-font-weight:var(--base-text-weight-normal);--author-font-color:var(--fgColor-muted)" tabindex="-1" data-hovercard-url="/users/bors/hovercard" data-hovercard-type="user" octo-click="hovercard-link-click" octo-dimensions="link_type:self" aria-keyshortcuts="Alt+ArrowUp">bors</a>
					</div>
					<span class="pl-1">committed</span>
					<relative-time class="pl-1" data-component="RelativeTime" datetime="2023-11-22T02:43:23.000Z" title="Nov 22, 2023 at 9:43 AM GMT+7">Nov 22, 2023</relative-time>
					<div class="d-none d-sm-flex"></div>
				</div>
			</div>
		</div>
	</div>
	<div class="container__1MF1B1">
		<div class="metadata__lB1fsH secondary__A3WMMH"></div>
		<div class="metadata__lB1fsH secondary__A3WMMH ListItemMetadata_0__rlK6qk gap-2"></div>
		<div class="metadata__lB1fsH primary__8l2U1W d-none d-sm-flex px-0 gap-2">
			<div class="d-flex">
				<a data-component="Button" type="button" sx="[object Object]" class="prc-Button-ButtonBase-9n-Xk" data-loading="false" data-no-visuals="true" data-size="small" data-variant="invisible" aria-describedby="_R_bn8ntej6l85_" href="/rust-lang/rust/commit/739d55682659e4a81db6fd83f52b2491505030ea" data-discover="true" tabindex="-1">
					<span data-component="buttonContent" data-align="center" class="prc-Button-ButtonContent-Iohp5">
						<span data-component="text" class="prc-Button-Label-FWkx3">739d556</span>
					</span>
				</a>
				<span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="s" data-component="Tooltip" role="tooltip" aria-hidden="true" id="_R_bn8ntej6l85_" popover="auto">View commit details</span>
				<div>
					<button data-component="IconButton" type="button" class="prc-Button-ButtonBase-9n-Xk prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="small" data-variant="invisible" aria-labelledby="_R_jn8ntej6l85_" tabindex="-1">
SVG
					</button>
					<span class="tooltip__XwO6MO prc-TooltipV2-Tooltip-tLeuB" data-direction="s" data-component="Tooltip" aria-label="Copy full SHA for 739d556" aria-hidden="true" id="_R_jn8ntej6l85_" popover="auto">Copy full SHA for 739d556</span>
				</div>
			</div>
			<a aria-labelledby="browse-repo-739d556" href="/rust-lang/rust/tree/739d55682659e4a81db6fd83f52b2491505030ea" class="Button Button--iconOnly Button--invisible Button--small" data-testid="commit-row-browse-repo" tabindex="-1">
SVG
			</a>
			<span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="sw" data-component="Tooltip" aria-hidden="true" id="browse-repo-739d556" popover="auto">Browse repository at this point</span>
		</div>
	</div>
	<div class="container__xpAlyS ListItemActionBar_0__GuxJfY">
		<button data-component="IconButton" type="button" aria-haspopup="true" aria-expanded="false" tabindex="0" class="prc-Button-ButtonBase-9n-Xk toggle__ds22s_ prc-Button-IconButton-fyge7" data-loading="false" data-no-visuals="true" data-size="medium" data-variant="invisible" aria-labelledby="_r_25_" id="_r_22_" style="anchor-name: --anchored-overlay-anchor-_r_24_;">
SVG
		</button>
		<span class="prc-TooltipV2-Tooltip-tLeuB" data-direction="s" data-component="Tooltip" aria-hidden="true" id="_r_25_" popover="auto">More actions</span>
	</div>
</li>

@fregante

Copy link
Copy Markdown
Member Author

@copilot refer to my previous comment and avoid the conflict. Do not use :has() selectors

@fregante
fregante marked this pull request as draft October 25, 2026 17:23

Copilot AI commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

@copilot refer to my previous comment and avoid the conflict. Do not use :has() selectors

Scoped React PR/issue styling to exclude commit rows and replaced the :has() selector. Commit: 6d427a2.

@fregante

Copy link
Copy Markdown
Member Author

who needs developers when you got copilot making changes 😭

Screenshot 1

@fregante

fregante commented Nov 1, 2026

Copy link
Copy Markdown
Member Author

YOLO I see no issues

@fregante
fregante marked this pull request as ready for review November 1, 2026 10:42
@fregante
fregante merged commit 2d1c8f8 into main Nov 1, 2026
14 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.

dim-bots: Dim bot PRs on global PR search

2 participants